Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.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.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008224/0.008225, allocations: 91.42 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.001579/0.001579, allocations: 199.7 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.603/1.603, allocations: 205.1 MB / 222.7 MB, free: 4.578 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.08432/0.08432, allocations: 12.58 MB / 282.6 MB, free: 8.762 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.001846/0.001845, allocations: 80.64 kB / 342.8 MB, free: 21.2 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1141, allocations: 49.4 MB / 392.2 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous): time 0.003865/0.118, allocations: 1.918 MB / 394.1 MB, free: 1.777 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001027/0.1191, allocations: 499.7 kB / 394.6 MB, free: 1.281 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000154/0.1193, allocations: 0 / 394.6 MB, free: 1.281 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001515/0.1195, allocations: 11.92 kB / 394.6 MB, free: 1.27 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001105/0.1196, allocations: 15.84 kB / 394.6 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002231/0.1199, allocations: 31.92 kB / 394.6 MB, free: 1.223 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001952/0.1201, allocations: 91.66 kB / 394.7 MB, free: 1.133 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001859/0.1203, allocations: 49.56 kB / 394.8 MB, free: 1.086 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001032/0.1204, allocations: 31.86 kB / 394.8 MB, free: 1.055 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001257/0.1205, allocations: 43.78 kB / 394.9 MB, free: 1.012 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.887e-05/0.1205, allocations: 11.94 kB / 394.9 MB, free: 1 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.297e-05/0.1206, allocations: 4 kB / 394.9 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.403e-05/0.1206, allocations: 19.92 kB / 394.9 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.897e-05/0.1207, allocations: 47.72 kB / 394.9 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000175/0.1209, allocations: 95.62 kB / 395 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.1209, allocations: 0 / 395 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1209, allocations: 0 / 395 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.1209, allocations: 0 / 395 MB, free: 0.8359 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0006703/0.1216, allocations: 403.3 kB / 395.4 MB, free: 404 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.1216, allocations: 15.97 kB / 395.4 MB, free: 388 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.14e-05/0.1217, allocations: 8.844 kB / 395.4 MB, free: 380 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002516/0.1219, allocations: 192.2 kB / 395.6 MB, free: 148 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.103e-05/0.122, allocations: 8.562 kB / 395.6 MB, free: 140 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.544e-05/0.122, allocations: 16.28 kB / 395.7 MB, free: 124 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003652/0.1224, allocations: 131.2 kB / 395.8 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.1224, allocations: 0 / 395.8 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.62e-05/0.1224, allocations: 4 kB / 395.8 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.336e-06/0.1224, allocations: 4 kB / 395.8 MB, free: 15.97 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002274/0.1227, allocations: 67.94 kB / 395.9 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007445/0.1234, allocations: 0.5285 MB / 396.4 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002024/0.1236, allocations: 78.55 kB / 396.5 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001138/0.1238, allocations: 44.83 kB / 396.5 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.341e-05/0.1238, allocations: 0 / 396.5 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.919e-05/0.1238, allocations: 30.56 kB / 396.5 MB, free: 15.14 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.262e-06/0.1238, allocations: 0 / 396.5 MB, free: 15.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004168/0.1243, allocations: 129.5 kB / 396.7 MB, free: 15 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.17e-05/0.1243, allocations: 51.41 kB / 396.7 MB, free: 14.94 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001138/0.1244, allocations: 133.8 kB / 396.8 MB, free: 14.8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.1245, allocations: 25.7 kB / 396.9 MB, free: 14.77 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.251e-05/0.1245, allocations: 119.7 kB / 397 MB, free: 14.65 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.463e-05/0.1246, allocations: 27.84 kB / 397 MB, free: 14.62 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.518e-05/0.1246, allocations: 25.72 kB / 397 MB, free: 14.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.1248, allocations: 330.8 kB / 397.4 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001126/0.1249, allocations: 27.98 kB / 397.4 MB, free: 14.23 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00013/0.1251, allocations: 64.2 kB / 397.5 MB, free: 14.15 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002312/0.1253, allocations: 108.1 kB / 397.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.1253, allocations: 0 / 397.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003222/0.1256, allocations: 141.5 kB / 397.7 MB, free: 13.89 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.137e-05/0.1257, allocations: 8 kB / 397.7 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.1257, allocations: 3.938 kB / 397.7 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.1257, allocations: 0 / 397.7 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000166/0.1259, allocations: 27.98 kB / 397.7 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.569e-05/0.1259, allocations: 7.984 kB / 397.7 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.294e-05/0.126, allocations: 19.84 kB / 397.8 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.081e-05/0.126, allocations: 4 kB / 397.8 MB, free: 13.82 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001263/0.1261, allocations: 125.8 kB / 397.9 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.459e-05/0.1262, allocations: 7.906 kB / 397.9 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.084e-05/0.1262, allocations: 20.36 kB / 397.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.1263, allocations: 3.984 kB / 397.9 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.1263, allocations: 0 / 397.9 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.1263, allocations: 0 / 397.9 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002524/0.1265, allocations: 197.6 kB / 398.1 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.1265, allocations: 0 / 398.1 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001475/0.1267, allocations: 23.98 kB / 398.1 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.1267, allocations: 0 / 398.1 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.422e-05/0.1267, allocations: 4 kB / 398.1 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.1267, allocations: 0 / 398.1 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.1267, allocations: 0 / 398.1 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004623/0.1272, allocations: 235.2 kB / 398.4 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.303e-05/0.1273, allocations: 88.95 kB / 398.5 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.202e-05/0.1273, allocations: 8.031 kB / 398.5 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.985e-05/0.1274, allocations: 8 kB / 398.5 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.3e-05/0.1275, allocations: 7.984 kB / 398.5 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.711e-06/0.1275, allocations: 0 / 398.5 MB, free: 13.01 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001003/0.1276, allocations: 99.27 kB / 398.6 MB, free: 12.91 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1276, allocations: 0 / 398.6 MB, free: 12.91 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002794/0.1279, allocations: 20 kB / 398.6 MB, free: 12.89 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.0001685/0.1281, allocations: 99.19 kB / 398.7 MB, free: 12.78 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003203/0.1284, allocations: 83.88 kB / 398.8 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.1285, allocations: 0 / 398.8 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001141/0.1286, allocations: 43.86 kB / 398.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005201/0.1291, allocations: 23.88 kB / 398.8 MB, free: 12.63 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008949/0.13, allocations: 386.7 kB / 399.2 MB, free: 12.23 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003816/0.1304, allocations: 0.7043 MB / 399.9 MB, free: 11.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.076e-05/0.1305, allocations: 12.41 kB / 399.9 MB, free: 11.49 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.627e-05/0.1305, allocations: 11.44 kB / 399.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1305, allocations: 0 / 399.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of Templates: time 0.003984/0.1345, allocations: 0.8869 MB / 400.8 MB, free: 10.59 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches