Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001369/0.001369, allocations: 84.3 kB / 20.68 MB, free: 1.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001604/0.001604, allocations: 168.8 kB / 23.95 MB, free: 4.172 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.49/1.49, allocations: 177.1 MB / 204.3 MB, free: 9.168 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.304e-06/2.304e-06, allocations: 0 / 325 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.447e-05/3.677e-05, allocations: 5.656 kB / 325 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003914/0.00395, allocations: 2.035 MB / 327.1 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001123/0.005073, allocations: 0.5188 MB / 327.6 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001215/0.005195, allocations: 3.469 kB / 327.6 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001372/0.005332, allocations: 19.42 kB / 327.6 MB, free: 14.83 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.353e-05/0.005426, allocations: 34.11 kB / 327.7 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003113/0.005737, allocations: 62.81 kB / 327.7 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000229/0.005966, allocations: 127.7 kB / 327.8 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001707/0.006137, allocations: 38.53 kB / 327.9 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001524/0.006289, allocations: 74.31 kB / 328 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000103/0.006392, allocations: 40.52 kB / 328 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.178e-05/0.006424, allocations: 11.5 kB / 328 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.585e-05/0.00645, allocations: 9.781 kB / 328 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.494e-05/0.006495, allocations: 32.16 kB / 328 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.759e-05/0.006562, allocations: 37.59 kB / 328.1 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002877/0.00685, allocations: 137.9 kB / 328.2 MB, free: 14.53 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.006856, allocations: 1.344 kB / 328.2 MB, free: 14.53 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.006857, allocations: 0 / 328.2 MB, free: 14.53 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.995e-06/0.006865, allocations: 0 / 328.2 MB, free: 14.53 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0007763/0.007641, allocations: 358.2 kB / 328.6 MB, free: 14.21 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.864e-05/0.00769, allocations: 8.969 kB / 328.6 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.152e-05/0.007751, allocations: 17.67 kB / 328.6 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002862/0.008037, allocations: 144.9 kB / 328.7 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.738e-05/0.008055, allocations: 13.53 kB / 328.7 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.852e-05/0.008093, allocations: 13.62 kB / 328.8 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005545/0.008648, allocations: 227.3 kB / 329 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/0.008663, allocations: 0.7969 kB / 329 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.658e-05/0.00868, allocations: 5.875 kB / 329 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/0.008688, allocations: 6.906 kB / 329 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002683/0.008956, allocations: 85.22 kB / 329.1 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007263/0.009683, allocations: 0.4889 MB / 329.6 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000397/0.01008, allocations: 146.5 kB / 329.7 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001872/0.01027, allocations: 68.92 kB / 329.8 MB, free: 13.28 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.858e-05/0.0103, allocations: 3.766 kB / 329.8 MB, free: 13.28 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.593e-05/0.01033, allocations: 37.62 kB / 329.8 MB, free: 13.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.673e-06/0.01033, allocations: 4 kB / 329.8 MB, free: 13.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0006008/0.01093, allocations: 180 kB / 330 MB, free: 13.15 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001176/0.01105, allocations: 120.9 kB / 330.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000161/0.01121, allocations: 141 kB / 330.3 MB, free: 12.9 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.334e-05/0.01124, allocations: 26.8 kB / 330.3 MB, free: 12.87 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001047/0.01134, allocations: 118.1 kB / 330.4 MB, free: 12.76 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.91e-05/0.01137, allocations: 26.05 kB / 330.4 MB, free: 12.74 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.741e-05/0.01143, allocations: 31.08 kB / 330.4 MB, free: 12.71 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.01159, allocations: 324.3 kB / 330.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001164/0.01171, allocations: 30.98 kB / 330.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001747/0.01188, allocations: 85.17 kB / 330.9 MB, free: 12.31 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002686/0.01215, allocations: 117.1 kB / 331 MB, free: 12.22 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.01216, allocations: 0 / 331 MB, free: 12.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003252/0.01248, allocations: 137.5 kB / 331.1 MB, free: 12.15 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.0125, allocations: 5.562 kB / 331.1 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.01251, allocations: 9.469 kB / 331.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.234e-05/0.01253, allocations: 3.531 kB / 331.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000127/0.01266, allocations: 27.22 kB / 331.2 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.327e-05/0.01267, allocations: 6.391 kB / 331.2 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.346e-05/0.01276, allocations: 20.97 kB / 331.2 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.244e-05/0.01278, allocations: 4.562 kB / 331.2 MB, free: 12.13 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001414/0.01292, allocations: 121.4 kB / 331.3 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001758/0.01309, allocations: 92.41 kB / 331.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.774e-05/0.01314, allocations: 21.98 kB / 331.4 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.01315, allocations: 2.156 kB / 331.4 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.01315, allocations: 1.062 kB / 331.4 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.01316, allocations: 2.266 kB / 331.4 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002512/0.01341, allocations: 144 kB / 331.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.01341, allocations: 5.062 kB / 331.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002283/0.01364, allocations: 45.81 kB / 331.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.928e-06/0.01364, allocations: 1.156 kB / 331.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.874e-05/0.01366, allocations: 5.703 kB / 331.6 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.01366, allocations: 3.219 kB / 331.6 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.01367, allocations: 0 / 331.6 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006276/0.01429, allocations: 384.6 kB / 332 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.158e-05/0.01432, allocations: 13.47 kB / 332 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.747e-05/0.01434, allocations: 5.188 kB / 332 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001475/0.01449, allocations: 10.92 kB / 332 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.713e-05/0.01454, allocations: 9.078 kB / 332.1 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.062e-05/0.01455, allocations: 5.703 kB / 332.1 MB, free: 11.49 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.84e-05/0.01464, allocations: 103.3 kB / 332.2 MB, free: 11.41 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.01464, allocations: 4.062 kB / 332.2 MB, free: 11.4 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003066/0.01494, allocations: 34.45 kB / 332.2 MB, free: 11.39 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001293/0.01507, allocations: 98.58 kB / 332.3 MB, free: 11.3 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003307/0.0154, allocations: 94.17 kB / 332.4 MB, free: 11.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.01541, allocations: 0 / 332.4 MB, free: 11.27 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001071/0.01551, allocations: 34.42 kB / 332.4 MB, free: 11.26 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005581/0.01607, allocations: 57.75 kB / 332.5 MB, free: 11.24 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008789/0.01695, allocations: 365.6 kB / 332.8 MB, free: 10.95 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001095/0.01706, allocations: 101.3 kB / 332.9 MB, free: 10.86 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.139e-05/0.0171, allocations: 8.922 kB / 332.9 MB, free: 10.85 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.23e-05/0.01714, allocations: 14.91 kB / 333 MB, free: 10.84 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.01714, allocations: 0 / 333 MB, free: 10.84 MB / 302.1 MB Notification: Performance of Templates: time 0.0048/0.02194, allocations: 1.323 MB / 334.3 MB, free: 10.21 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.371570270508528]