Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001467/0.001467, allocations: 105.8 kB / 16.45 MB, free: 6.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001661/0.001661, allocations: 189.5 kB / 17.39 MB, free: 5.668 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.636/1.636, allocations: 205.1 MB / 223.3 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07637/0.07637, allocations: 12.59 MB / 283.2 MB, free: 15.4 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.001814/0.001814, allocations: 85.91 kB / 394.1 MB, free: 45.36 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1079, allocations: 49.41 MB / 443.6 MB, free: 500 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003687/0.1116, allocations: 2.02 MB / 445.6 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00137/0.113, allocations: 0.6086 MB / 446.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002165/0.1133, allocations: 0 / 446.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001539/0.1135, allocations: 19.8 kB / 446.2 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002615/0.1138, allocations: 35.7 kB / 446.2 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003912/0.1142, allocations: 63.81 kB / 446.3 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002579/0.1144, allocations: 127.6 kB / 446.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001971/0.1146, allocations: 69.75 kB / 446.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001314/0.1148, allocations: 55.73 kB / 446.5 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000128/0.1149, allocations: 59.7 kB / 446.6 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.399e-05/0.115, allocations: 12 kB / 446.6 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.665e-05/0.115, allocations: 8 kB / 446.6 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.394e-05/0.1151, allocations: 43.83 kB / 446.7 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001223/0.1152, allocations: 67.61 kB / 446.7 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002608/0.1155, allocations: 131.5 kB / 446.9 MB, free: 13.15 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.1155, allocations: 0 / 446.9 MB, free: 13.15 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.686e-06/0.1155, allocations: 0 / 446.9 MB, free: 13.15 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.798e-06/0.1155, allocations: 4 kB / 446.9 MB, free: 13.15 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0007703/0.1163, allocations: 454.8 kB / 447.3 MB, free: 12.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.1164, allocations: 12.03 kB / 447.3 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.379e-05/0.1164, allocations: 24.75 kB / 447.3 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004212/0.1169, allocations: 218 kB / 447.6 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.03e-05/0.1169, allocations: 12.38 kB / 447.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.254e-05/0.1169, allocations: 12.38 kB / 447.6 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005651/0.1175, allocations: 254.8 kB / 447.8 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.059e-05/0.1175, allocations: 0 / 447.8 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.473e-05/0.1176, allocations: 4 kB / 447.8 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.286e-05/0.1176, allocations: 7.938 kB / 447.8 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002772/0.1179, allocations: 87.88 kB / 447.9 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008085/0.1187, allocations: 0.6037 MB / 448.5 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003488/0.1191, allocations: 151.8 kB / 448.7 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001816/0.1193, allocations: 74.64 kB / 448.8 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.907e-05/0.1193, allocations: 7.969 kB / 448.8 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.931e-05/0.1193, allocations: 42.56 kB / 448.8 MB, free: 10.98 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.223e-06/0.1193, allocations: 0 / 448.8 MB, free: 10.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005345/0.1199, allocations: 189.2 kB / 449 MB, free: 10.79 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.142e-05/0.12, allocations: 114.8 kB / 449.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001476/0.1201, allocations: 151.1 kB / 449.2 MB, free: 10.5 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.679e-05/0.1201, allocations: 25.7 kB / 449.3 MB, free: 10.47 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.256e-05/0.1202, allocations: 128.5 kB / 449.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.365e-05/0.1203, allocations: 19.75 kB / 449.4 MB, free: 10.32 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.771e-05/0.1203, allocations: 41.61 kB / 449.5 MB, free: 10.27 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.1205, allocations: 326.8 kB / 449.8 MB, free: 9.945 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001112/0.1206, allocations: 35.97 kB / 449.8 MB, free: 9.91 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001689/0.1208, allocations: 133.7 kB / 449.9 MB, free: 9.73 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002978/0.1211, allocations: 189.5 kB / 450.1 MB, free: 9.496 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.1211, allocations: 4 kB / 450.1 MB, free: 9.492 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003769/0.1215, allocations: 193.2 kB / 450.3 MB, free: 9.297 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.1215, allocations: 4 kB / 450.3 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.1215, allocations: 4.469 kB / 450.3 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.891e-05/0.1215, allocations: 4 kB / 450.3 MB, free: 9.285 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001483/0.1217, allocations: 51.91 kB / 450.4 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.24e-05/0.1217, allocations: 7.938 kB / 450.4 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001167/0.1218, allocations: 19.89 kB / 450.4 MB, free: 9.207 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.361e-05/0.1218, allocations: 8 kB / 450.4 MB, free: 9.199 MB / 334.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.0001136/0.122, allocations: 141.7 kB / 450.6 MB, free: 9.051 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000161/0.1221, allocations: 93.86 kB / 450.6 MB, free: 8.953 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.158e-05/0.1222, allocations: 16.72 kB / 450.7 MB, free: 8.934 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.1222, allocations: 4.094 kB / 450.7 MB, free: 8.93 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.1222, allocations: 7.938 kB / 450.7 MB, free: 8.922 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.1222, allocations: 0 / 450.7 MB, free: 8.922 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002935/0.1225, allocations: 221.5 kB / 450.9 MB, free: 8.656 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.1226, allocations: 0 / 450.9 MB, free: 8.656 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001743/0.1227, allocations: 39.86 kB / 450.9 MB, free: 8.617 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.192e-06/0.1227, allocations: 7.984 kB / 450.9 MB, free: 8.609 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.482e-05/0.1228, allocations: 4 kB / 450.9 MB, free: 8.605 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.1228, allocations: 0 / 450.9 MB, free: 8.605 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/0.1228, allocations: 8 kB / 451 MB, free: 8.598 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006307/0.1234, allocations: 383.3 kB / 451.3 MB, free: 8.203 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.197e-05/0.1235, allocations: 108.8 kB / 451.4 MB, free: 8.078 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.315e-05/0.1235, allocations: 0 / 451.4 MB, free: 8.078 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001365/0.1237, allocations: 16.05 kB / 451.4 MB, free: 8.062 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.733e-05/0.1237, allocations: 4 kB / 451.5 MB, free: 8.059 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.578e-06/0.1237, allocations: 4 kB / 451.5 MB, free: 8.055 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001049/0.1239, allocations: 124.7 kB / 451.6 MB, free: 7.934 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1239, allocations: 0 / 451.6 MB, free: 7.934 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003367/0.1242, allocations: 28 kB / 451.6 MB, free: 7.906 MB / 334.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.0002134/0.1244, allocations: 103.2 kB / 451.7 MB, free: 7.797 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003761/0.1248, allocations: 127.8 kB / 451.8 MB, free: 7.672 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.1248, allocations: 0 / 451.8 MB, free: 7.672 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.703e-05/0.1249, allocations: 31.91 kB / 451.9 MB, free: 7.641 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005573/0.1255, allocations: 65.31 kB / 451.9 MB, free: 7.578 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007874/0.1263, allocations: 405.9 kB / 452.3 MB, free: 7.152 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003486/0.1267, allocations: 0.724 MB / 453 MB, free: 6.402 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.896e-05/0.1267, allocations: 13.42 kB / 453.1 MB, free: 6.387 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.419e-05/0.1268, allocations: 19.44 kB / 453.1 MB, free: 6.367 MB / 334.1 MB Notification: Performance of SimCode: time 1.9e-07/0.1268, allocations: 0 / 453.1 MB, free: 6.367 MB / 334.1 MB Notification: Performance of Templates: time 0.005065/0.1319, allocations: 1.394 MB / 454.5 MB, free: 4.973 MB / 334.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches