Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006722/0.006723, allocations: 88.56 kB / 15.91 MB, free: 6.301 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.00142/0.001419, allocations: 199.6 kB / 16.83 MB, free: 6.234 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.595/1.595, allocations: 205.1 MB / 222.7 MB, free: 4.785 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.07823/0.07823, allocations: 12.59 MB / 282.6 MB, free: 8.898 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.001652/0.001652, allocations: 84.83 kB / 342.8 MB, free: 21.21 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1103, allocations: 49.39 MB / 392.2 MB, free: 3.742 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003965/0.1144, allocations: 2.051 MB / 394.2 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008454/0.1152, allocations: 0.5307 MB / 394.8 MB, free: 1.133 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001037/0.1154, allocations: 7.938 kB / 394.8 MB, free: 1.125 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001105/0.1155, allocations: 11.88 kB / 394.8 MB, free: 1.113 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.824e-05/0.1156, allocations: 23.84 kB / 394.8 MB, free: 1.09 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002837/0.1159, allocations: 47.89 kB / 394.8 MB, free: 1.043 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001605/0.116, allocations: 119.6 kB / 395 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001537/0.1162, allocations: 56.86 kB / 395 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.784e-05/0.1163, allocations: 35.86 kB / 395.1 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001047/0.1164, allocations: 59.7 kB / 395.1 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.734e-05/0.1164, allocations: 8 kB / 395.1 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.482e-05/0.1164, allocations: 4 kB / 395.1 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.827e-05/0.1165, allocations: 27.91 kB / 395.1 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.167e-05/0.1166, allocations: 55.67 kB / 395.2 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001948/0.1168, allocations: 111.9 kB / 395.3 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.1168, allocations: 3.938 kB / 395.3 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1168, allocations: 0 / 395.3 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.895e-06/0.1168, allocations: 0 / 395.3 MB, free: 0.5703 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0006731/0.1175, allocations: 427 kB / 395.7 MB, free: 108 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.057e-05/0.1176, allocations: 12.03 kB / 395.7 MB, free: 96 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.909e-05/0.1176, allocations: 16.84 kB / 395.8 MB, free: 80 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002483/0.1179, allocations: 212.1 kB / 396 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.671e-05/0.1179, allocations: 8.375 kB / 396 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.809e-05/0.1179, allocations: 16.28 kB / 396 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005476/0.1185, allocations: 238.9 kB / 396.2 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.1185, allocations: 0 / 396.2 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.521e-05/0.1185, allocations: 7.938 kB / 396.2 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.1185, allocations: 8 kB / 396.2 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002393/0.1188, allocations: 79.92 kB / 396.3 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006536/0.1195, allocations: 0.5921 MB / 396.9 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002738/0.1197, allocations: 147.9 kB / 397.1 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001492/0.1199, allocations: 74.58 kB / 397.1 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.447e-05/0.1199, allocations: 3.984 kB / 397.1 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.853e-05/0.12, allocations: 34.56 kB / 397.2 MB, free: 14.49 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.533e-06/0.12, allocations: 0 / 397.2 MB, free: 14.49 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005201/0.1205, allocations: 189.2 kB / 397.4 MB, free: 14.3 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/0.1206, allocations: 110.8 kB / 397.5 MB, free: 14.16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001235/0.1208, allocations: 134.1 kB / 397.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.134e-05/0.1208, allocations: 29.7 kB / 397.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.429e-05/0.1209, allocations: 115.9 kB / 397.7 MB, free: 13.87 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.151e-05/0.1209, allocations: 23.7 kB / 397.8 MB, free: 13.85 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.363e-05/0.121, allocations: 33.84 kB / 397.8 MB, free: 13.81 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001805/0.1212, allocations: 322.8 kB / 398.1 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001144/0.1213, allocations: 35.97 kB / 398.1 MB, free: 13.45 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001706/0.1215, allocations: 140.7 kB / 398.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002716/0.1217, allocations: 180.8 kB / 398.5 MB, free: 13.04 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.1218, allocations: 0 / 398.5 MB, free: 13.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003857/0.1222, allocations: 197.2 kB / 398.6 MB, free: 12.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.1222, allocations: 8 kB / 398.7 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.1222, allocations: 4 kB / 398.7 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.1222, allocations: 7.938 kB / 398.7 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001773/0.1224, allocations: 43.91 kB / 398.7 MB, free: 12.78 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/0.1224, allocations: 7.938 kB / 398.7 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001/0.1225, allocations: 23.92 kB / 398.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.463e-05/0.1226, allocations: 12.31 kB / 398.8 MB, free: 12.74 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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.0001225/0.1227, allocations: 121.8 kB / 398.9 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001412/0.1228, allocations: 89.44 kB / 399 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.31e-05/0.1229, allocations: 20.66 kB / 399 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.1229, allocations: 3.984 kB / 399 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.276e-06/0.1229, allocations: 4 kB / 399 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.1229, allocations: 0 / 399 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000264/0.1232, allocations: 197.6 kB / 399.2 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.1232, allocations: 0 / 399.2 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001645/0.1234, allocations: 39.92 kB / 399.2 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.1234, allocations: 480 / 399.2 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.014e-05/0.1234, allocations: 15.94 kB / 399.2 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.1234, allocations: 0 / 399.2 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1234, allocations: 0 / 399.2 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005384/0.124, allocations: 379.3 kB / 399.6 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.294e-05/0.124, allocations: 88.98 kB / 399.7 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.524e-05/0.1241, allocations: 7.938 kB / 399.7 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002133/0.1243, allocations: 7.984 kB / 399.7 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.932e-05/0.1243, allocations: 4 kB / 399.7 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.277e-06/0.1243, allocations: 8 kB / 399.7 MB, free: 11.67 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.981e-05/0.1244, allocations: 99.25 kB / 399.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1244, allocations: 4.062 kB / 399.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003094/0.1247, allocations: 24 kB / 399.8 MB, free: 11.54 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 (14): * Single equations (assignments): 14 * 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.0001033/0.1248, allocations: 95.25 kB / 399.9 MB, free: 11.44 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003029/0.1251, allocations: 116.6 kB / 400 MB, free: 11.32 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1252, allocations: 64 / 400 MB, free: 11.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.657e-05/0.1253, allocations: 35.91 kB / 400.1 MB, free: 11.29 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005565/0.1258, allocations: 55.95 kB / 400.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007558/0.1266, allocations: 435.6 kB / 400.6 MB, free: 10.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002928/0.1269, allocations: 0.7204 MB / 401.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.785e-05/0.127, allocations: 8.641 kB / 401.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.094e-05/0.127, allocations: 15.44 kB / 401.3 MB, free: 10 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.127, allocations: 3.938 kB / 401.3 MB, free: 10 MB / 302.1 MB Notification: Performance of Templates: time 0.003983/0.131, allocations: 1.055 MB / 402.4 MB, free: 8.949 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches