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.001397/0.001397, allocations: 108.5 kB / 16.45 MB, free: 6.43 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.001688/0.001688, allocations: 189.6 kB / 17.39 MB, free: 5.691 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.621/1.621, allocations: 205.1 MB / 223.3 MB, free: 12.21 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.07798/0.07798, allocations: 12.58 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.001839/0.001839, allocations: 81.92 kB / 394.1 MB, free: 45.4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1145, allocations: 49.41 MB / 443.5 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous): time 0.00389/0.1185, allocations: 1.86 MB / 445.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00084/0.1193, allocations: 491.7 kB / 445.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.496e-05/0.1195, allocations: 7.938 kB / 445.9 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001146/0.1196, allocations: 11.86 kB / 445.9 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.329e-05/0.1197, allocations: 31.72 kB / 445.9 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001652/0.1198, allocations: 31.95 kB / 446 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001779/0.12, allocations: 107.6 kB / 446.1 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001583/0.1202, allocations: 41.36 kB / 446.1 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.956e-05/0.1203, allocations: 39.91 kB / 446.2 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.454e-05/0.1204, allocations: 43.78 kB / 446.2 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.885e-05/0.1204, allocations: 8 kB / 446.2 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.888e-05/0.1204, allocations: 8 kB / 446.2 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.133e-05/0.1205, allocations: 23.92 kB / 446.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.668e-05/0.1205, allocations: 47.73 kB / 446.3 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001703/0.1207, allocations: 103.6 kB / 446.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1207, allocations: 0 / 446.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.71e-07/0.1207, allocations: 0 / 446.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.1208, allocations: 0 / 446.4 MB, free: 13.64 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0006405/0.1214, allocations: 411.2 kB / 446.8 MB, free: 13.2 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.1214, allocations: 8.031 kB / 446.8 MB, free: 13.19 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.32e-05/0.1215, allocations: 16.84 kB / 446.8 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002733/0.1218, allocations: 192.1 kB / 447 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.642e-05/0.1218, allocations: 12.56 kB / 447 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.26e-05/0.1218, allocations: 12.38 kB / 447 MB, free: 12.92 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002746/0.1221, allocations: 115.3 kB / 447.1 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.1221, allocations: 4 kB / 447.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.483e-05/0.1222, allocations: 4 kB / 447.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.1222, allocations: 4 kB / 447.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002016/0.1224, allocations: 75.88 kB / 447.2 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006771/0.1231, allocations: 0.5245 MB / 447.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001886/0.1233, allocations: 78.61 kB / 447.8 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001032/0.1234, allocations: 40.77 kB / 447.9 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.598e-05/0.1234, allocations: 4 kB / 447.9 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.44e-05/0.1234, allocations: 30.56 kB / 447.9 MB, free: 11.95 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 2.805e-06/0.1235, allocations: 0 / 447.9 MB, free: 11.95 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.000393/0.1239, allocations: 133.6 kB / 448 MB, free: 11.81 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.534e-05/0.1239, allocations: 55.41 kB / 448.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001221/0.124, allocations: 129.7 kB / 448.2 MB, free: 11.61 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.053e-05/0.1241, allocations: 25.7 kB / 448.2 MB, free: 11.58 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.46e-05/0.1242, allocations: 111.9 kB / 448.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.116e-05/0.1242, allocations: 31.56 kB / 448.4 MB, free: 11.43 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.342e-05/0.1242, allocations: 25.7 kB / 448.4 MB, free: 11.4 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.1244, allocations: 326.8 kB / 448.7 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001081/0.1245, allocations: 31.98 kB / 448.7 MB, free: 11.04 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001254/0.1246, allocations: 68.2 kB / 448.8 MB, free: 10.96 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002209/0.1249, allocations: 104.2 kB / 448.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.1249, allocations: 0 / 448.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003079/0.1252, allocations: 137.5 kB / 449 MB, free: 10.7 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.1252, allocations: 4 kB / 449 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.1252, allocations: 0 / 449 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.1253, allocations: 4 kB / 449.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001612/0.1254, allocations: 31.98 kB / 449.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.1254, allocations: 3.938 kB / 449.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.156e-05/0.1255, allocations: 15.89 kB / 449.1 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.508e-06/0.1255, allocations: 4 kB / 449.1 MB, free: 10.64 MB / 334.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.0001153/0.1257, allocations: 125.8 kB / 449.2 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.953e-05/0.1257, allocations: 7.906 kB / 449.2 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.275e-05/0.1257, allocations: 16.45 kB / 449.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.1257, allocations: 3.938 kB / 449.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.1258, allocations: 0 / 449.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.1258, allocations: 3.984 kB / 449.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002243/0.126, allocations: 205.5 kB / 449.5 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.126, allocations: 0 / 449.5 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001336/0.1261, allocations: 19.98 kB / 449.5 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.929e-06/0.1262, allocations: 0 / 449.5 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.417e-05/0.1262, allocations: 11.94 kB / 449.5 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.1262, allocations: 3.938 kB / 449.5 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.1262, allocations: 4 kB / 449.5 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004098/0.1266, allocations: 231.4 kB / 449.7 MB, free: 9.945 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.485e-05/0.1267, allocations: 81.02 kB / 449.8 MB, free: 9.848 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.784e-05/0.1267, allocations: 4 kB / 449.8 MB, free: 9.844 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.644e-05/0.1268, allocations: 12.03 kB / 449.8 MB, free: 9.832 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.133e-05/0.1268, allocations: 3.984 kB / 449.8 MB, free: 9.828 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.155e-06/0.1269, allocations: 8 kB / 449.8 MB, free: 9.82 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.451e-05/0.1269, allocations: 95.27 kB / 449.9 MB, free: 9.727 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1269, allocations: 0 / 449.9 MB, free: 9.727 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002513/0.1272, allocations: 20 kB / 449.9 MB, free: 9.707 MB / 334.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.0001096/0.1273, allocations: 95.19 kB / 450 MB, free: 9.605 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002796/0.1276, allocations: 88.28 kB / 450.1 MB, free: 9.52 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.1276, allocations: 0 / 450.1 MB, free: 9.52 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.992e-05/0.1277, allocations: 31.97 kB / 450.2 MB, free: 9.488 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003379/0.1281, allocations: 28.25 kB / 450.2 MB, free: 9.461 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000764/0.1288, allocations: 372.9 kB / 450.5 MB, free: 9.066 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003978/0.1292, allocations: 0.7002 MB / 451.2 MB, free: 8.34 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.567e-05/0.1293, allocations: 12.41 kB / 451.3 MB, free: 8.328 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.807e-05/0.1294, allocations: 19.44 kB / 451.3 MB, free: 8.309 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1294, allocations: 0 / 451.3 MB, free: 8.309 MB / 334.1 MB Notification: Performance of Templates: time 0.004083/0.1334, allocations: 0.9915 MB / 452.3 MB, free: 7.316 MB / 334.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches