Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001344/0.001344, allocations: 120 kB / 18.5 MB, free: 4.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001599/0.001599, allocations: 213.6 kB / 21.46 MB, free: 1.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.623/1.623, allocations: 230.2 MB / 254.5 MB, free: 15.23 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001944/0.001944, allocations: 63.88 kB / 373.8 MB, free: 9.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1418/0.1438, allocations: 53.31 MB / 427.1 MB, free: 4.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.004244/0.148, allocations: 2.039 MB / 429.2 MB, free: 2.453 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001294/0.1493, allocations: 0.5648 MB / 429.7 MB, free: 1.883 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001282/0.1494, allocations: 4 kB / 429.7 MB, free: 1.879 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001407/0.1496, allocations: 15.8 kB / 429.7 MB, free: 1.863 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002018/0.1498, allocations: 31.73 kB / 429.8 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002745/0.1501, allocations: 59.81 kB / 429.8 MB, free: 1.773 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002156/0.1503, allocations: 123.5 kB / 430 MB, free: 1.652 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001732/0.1504, allocations: 41.42 kB / 430 MB, free: 1.609 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.694e-05/0.1505, allocations: 43.86 kB / 430 MB, free: 1.566 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001161/0.1507, allocations: 67.69 kB / 430.1 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.793e-05/0.1507, allocations: 8 kB / 430.1 MB, free: 1.492 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.258e-05/0.1507, allocations: 12 kB / 430.1 MB, free: 1.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.002e-05/0.1507, allocations: 23.92 kB / 430.1 MB, free: 1.457 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.062e-05/0.1508, allocations: 55.67 kB / 430.2 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002489/0.1511, allocations: 135.4 kB / 430.3 MB, free: 1.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.1511, allocations: 0 / 430.3 MB, free: 1.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1511, allocations: 0 / 430.3 MB, free: 1.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.016e-05/0.1511, allocations: 0 / 430.3 MB, free: 1.27 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0007609/0.1519, allocations: 441.6 kB / 430.8 MB, free: 0.793 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.934e-05/0.1519, allocations: 12.03 kB / 430.8 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.832e-05/0.152, allocations: 12.84 kB / 430.8 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003202/0.1523, allocations: 212.1 kB / 431 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.909e-05/0.1523, allocations: 12.31 kB / 431 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.262e-05/0.1523, allocations: 12.38 kB / 431 MB, free: 0.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005607/0.1529, allocations: 251.4 kB / 431.3 MB, free: 236 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.717e-05/0.1529, allocations: 3.984 kB / 431.3 MB, free: 232 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.449e-05/0.1529, allocations: 8 kB / 431.3 MB, free: 224 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.324e-05/0.153, allocations: 4 kB / 431.3 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002716/0.1532, allocations: 87.88 kB / 431.4 MB, free: 132 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008078/0.154, allocations: 0.5961 MB / 432 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003899/0.1544, allocations: 139.9 kB / 432.1 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001652/0.1546, allocations: 70.62 kB / 432.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.169e-05/0.1546, allocations: 4 kB / 432.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.702e-05/0.1547, allocations: 42.56 kB / 432.2 MB, free: 15.16 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 3.627e-06/0.1547, allocations: 3.984 kB / 432.2 MB, free: 15.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005613/0.1552, allocations: 181.4 kB / 432.4 MB, free: 14.97 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/0.1553, allocations: 114.8 kB / 432.5 MB, free: 14.84 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001302/0.1555, allocations: 136 kB / 432.6 MB, free: 14.69 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.487e-05/0.1555, allocations: 29.7 kB / 432.7 MB, free: 14.66 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/0.1556, allocations: 111.9 kB / 432.8 MB, free: 14.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.718e-05/0.1556, allocations: 23.84 kB / 432.8 MB, free: 14.52 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.074e-05/0.1557, allocations: 37.7 kB / 432.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001734/0.1558, allocations: 322.8 kB / 433.2 MB, free: 14.15 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001282/0.156, allocations: 35.97 kB / 433.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002026/0.1562, allocations: 132.5 kB / 433.3 MB, free: 13.94 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003408/0.1565, allocations: 193.4 kB / 433.5 MB, free: 13.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.1565, allocations: 8 kB / 433.5 MB, free: 13.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004028/0.1569, allocations: 197.2 kB / 433.7 MB, free: 13.5 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.1569, allocations: 4.469 kB / 433.7 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.157, allocations: 8 kB / 433.7 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.383e-05/0.157, allocations: 8 kB / 433.7 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001727/0.1571, allocations: 43.91 kB / 433.8 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.502e-05/0.1572, allocations: 8.312 kB / 433.8 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001166/0.1573, allocations: 27.88 kB / 433.8 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.658e-05/0.1573, allocations: 8 kB / 433.8 MB, free: 13.39 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (21): * Single equations (assignments): 21 * 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.0001706/0.1575, allocations: 133.7 kB / 433.9 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001673/0.1576, allocations: 93.52 kB / 434 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.677e-05/0.1577, allocations: 16.72 kB / 434.1 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.567e-06/0.1577, allocations: 7.984 kB / 434.1 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.1577, allocations: 0 / 434.1 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.1577, allocations: 0 / 434.1 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003253/0.1581, allocations: 213.5 kB / 434.3 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1581, allocations: 0 / 434.3 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000181/0.1582, allocations: 35.92 kB / 434.3 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.1583, allocations: 4 kB / 434.3 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.676e-05/0.1583, allocations: 7.984 kB / 434.3 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.1583, allocations: 4 kB / 434.3 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.1583, allocations: 4 kB / 434.3 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006084/0.1589, allocations: 372.8 kB / 434.7 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.954e-05/0.159, allocations: 92.98 kB / 434.8 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.362e-05/0.159, allocations: 16.05 kB / 434.8 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001311/0.1591, allocations: 4 kB / 434.8 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.094e-05/0.1592, allocations: 11.98 kB / 434.8 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.117e-06/0.1592, allocations: 4 kB / 434.8 MB, free: 12.28 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.041e-05/0.1593, allocations: 101.1 kB / 434.9 MB, free: 12.18 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1593, allocations: 0 / 434.9 MB, free: 12.18 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003208/0.1596, allocations: 24 kB / 434.9 MB, free: 12.16 MB / 366.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.0001447/0.1597, allocations: 103.2 kB / 435 MB, free: 12.05 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000365/0.1601, allocations: 115.8 kB / 435.2 MB, free: 11.94 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1601, allocations: 0 / 435.2 MB, free: 11.94 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001009/0.1602, allocations: 28.86 kB / 435.2 MB, free: 11.91 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005244/0.1607, allocations: 72.66 kB / 435.3 MB, free: 11.84 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008035/0.1615, allocations: 381.1 kB / 435.6 MB, free: 11.44 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004355/0.162, allocations: 0.7279 MB / 436.4 MB, free: 10.68 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.513e-05/0.162, allocations: 9.078 kB / 436.4 MB, free: 10.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.537e-05/0.1621, allocations: 15.44 kB / 436.4 MB, free: 10.66 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1621, allocations: 0 / 436.4 MB, free: 10.66 MB / 366.1 MB Notification: Performance of Templates: time 0.004657/0.1667, allocations: 1.236 MB / 437.6 MB, free: 9.438 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.865231025032699]