Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009465/0.0009464, allocations: 96.86 kB / 15.74 MB, free: 424 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001259/0.001259, allocations: 175.7 kB / 16.62 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.822/1.822, allocations: 205.4 MB / 222.8 MB, free: 5.824 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1066/0.1066, allocations: 12.59 MB / 283.7 MB, free: 8.918 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0007096/0.0007096, allocations: 20 kB / 344.5 MB, free: 21.3 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1182, allocations: 50.38 MB / 394.9 MB, free: 2.824 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.002824/0.121, allocations: 1.709 MB / 396.6 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001039/0.1221, allocations: 0.5194 MB / 397.1 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001155/0.1222, allocations: 7.938 kB / 397.1 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001175/0.1224, allocations: 7.922 kB / 397.2 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.3e-05/0.1224, allocations: 23.8 kB / 397.2 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002934/0.1227, allocations: 47.95 kB / 397.2 MB, free: 500 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001931/0.1229, allocations: 127.5 kB / 397.3 MB, free: 372 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001639/0.1231, allocations: 41.47 kB / 397.4 MB, free: 328 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.94e-05/0.1232, allocations: 35.84 kB / 397.4 MB, free: 292 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.767e-05/0.1233, allocations: 47.72 kB / 397.5 MB, free: 244 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.823e-05/0.1233, allocations: 8 kB / 397.5 MB, free: 236 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.713e-05/0.1233, allocations: 4 kB / 397.5 MB, free: 232 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.138e-05/0.1234, allocations: 15.94 kB / 397.5 MB, free: 216 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.363e-05/0.1234, allocations: 45.62 kB / 397.5 MB, free: 164 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001336/0.1236, allocations: 84.05 kB / 397.6 MB, free: 80 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.044e-06/0.1236, allocations: 0 / 397.6 MB, free: 80 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1236, allocations: 3.938 kB / 397.6 MB, free: 76 kB / 286.1 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.1236, allocations: 4 kB / 397.6 MB, free: 72 kB / 286.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.0007348/0.1243, allocations: 418.9 kB / 398 MB, free: 15.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.431e-05/0.1244, allocations: 12.03 kB / 398 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.204e-05/0.1245, allocations: 15.75 kB / 398.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002848/0.1248, allocations: 210.7 kB / 398.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.077e-05/0.1248, allocations: 8 kB / 398.3 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.8e-05/0.1248, allocations: 12 kB / 398.3 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005372/0.1254, allocations: 242.5 kB / 398.5 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.787e-05/0.1254, allocations: 3.906 kB / 398.5 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.778e-05/0.1254, allocations: 8 kB / 398.5 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.328e-05/0.1254, allocations: 4 kB / 398.5 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002927/0.1257, allocations: 99.8 kB / 398.6 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009993/0.1268, allocations: 0.5998 MB / 399.2 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003509/0.1271, allocations: 155.9 kB / 399.4 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001642/0.1273, allocations: 78.64 kB / 399.5 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.653e-05/0.1273, allocations: 7.984 kB / 399.5 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.635e-05/0.1274, allocations: 34.5 kB / 399.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.402e-06/0.1274, allocations: 0 / 399.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005281/0.1279, allocations: 193.4 kB / 399.7 MB, free: 13.76 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.235e-05/0.128, allocations: 110.8 kB / 399.8 MB, free: 13.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001361/0.1282, allocations: 142 kB / 399.9 MB, free: 13.47 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.208e-05/0.1282, allocations: 25.7 kB / 400 MB, free: 13.44 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001736/0.1284, allocations: 112.1 kB / 400.1 MB, free: 13.33 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.484e-05/0.1284, allocations: 31.64 kB / 400.1 MB, free: 13.3 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.232e-05/0.1284, allocations: 4 kB / 400.1 MB, free: 13.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.1286, allocations: 330.7 kB / 400.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001214/0.1287, allocations: 44.34 kB / 400.5 MB, free: 12.92 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000247/0.129, allocations: 146.4 kB / 400.6 MB, free: 12.73 MB / 302.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = 0.0 (PI.y_start = 0.0) Notification: Performance of analyzeInitialSystem (initialization): time 0.0004319/0.1294, allocations: 153.1 kB / 400.8 MB, free: 12.56 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.1294, allocations: 384 / 400.8 MB, free: 12.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004522/0.1299, allocations: 205.2 kB / 401 MB, free: 12.35 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.1299, allocations: 8 kB / 401 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.1299, allocations: 4 kB / 401 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.13, allocations: 8.406 kB / 401 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001753/0.1301, allocations: 51.92 kB / 401 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.262e-05/0.1302, allocations: 7.984 kB / 401.1 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001061/0.1303, allocations: 23.84 kB / 401.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.506e-05/0.1303, allocations: 8 kB / 401.1 MB, free: 12.24 MB / 302.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: PI.y = 0.0. 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001377/0.1304, allocations: 137.7 kB / 401.2 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001538/0.1306, allocations: 89.44 kB / 401.3 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.826e-05/0.1307, allocations: 20.72 kB / 401.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.648e-06/0.1307, allocations: 4.234 kB / 401.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.1307, allocations: 0 / 401.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.1307, allocations: 3.984 kB / 401.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002662/0.131, allocations: 213.5 kB / 401.5 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.131, allocations: 0 / 401.5 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000197/0.1312, allocations: 43.91 kB / 401.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.1312, allocations: 4 kB / 401.6 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.022e-05/0.1312, allocations: 4 kB / 401.6 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/0.1312, allocations: 8 kB / 401.6 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.1312, allocations: 0 / 401.6 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005149/0.1318, allocations: 395.3 kB / 402 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.043e-05/0.1318, allocations: 92.94 kB / 402.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.423e-05/0.1319, allocations: 8 kB / 402.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000127/0.132, allocations: 7.984 kB / 402.1 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.343e-05/0.132, allocations: 4 kB / 402.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.013e-05/0.1321, allocations: 12.05 kB / 402.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.067e-05/0.1321, allocations: 99.27 kB / 402.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1321, allocations: 4 kB / 402.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003266/0.1325, allocations: 31.91 kB / 402.2 MB, free: 10.98 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001198/0.1326, allocations: 91.25 kB / 402.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003546/0.133, allocations: 143.6 kB / 402.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.133, allocations: 0 / 402.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.166e-05/0.1331, allocations: 32.86 kB / 402.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000501/0.1336, allocations: 72.7 kB / 402.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009067/0.1345, allocations: 0.4958 MB / 403.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003066/0.1348, allocations: 0.7206 MB / 403.8 MB, free: 9.359 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.718e-05/0.1349, allocations: 5.094 kB / 403.8 MB, free: 9.355 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.043e-05/0.1349, allocations: 15.44 kB / 403.8 MB, free: 9.34 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1349, allocations: 0 / 403.8 MB, free: 9.34 MB / 302.1 MB Notification: Performance of Templates: time 0.004506/0.1394, allocations: 1.14 MB / 405 MB, free: 8.203 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches