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.001224/0.001224, allocations: 107.2 kB / 16.45 MB, free: 6.434 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.001343/0.001343, allocations: 186.9 kB / 17.38 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.586/1.586, allocations: 205.1 MB / 223.3 MB, free: 12.2 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.08664/0.08664, allocations: 12.59 MB / 283.2 MB, free: 15.39 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.002313/0.002313, allocations: 86.34 kB / 394.1 MB, free: 45.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1152, allocations: 49.41 MB / 443.5 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous): time 0.003678/0.1189, allocations: 1.852 MB / 445.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001094/0.1201, allocations: 0.4996 MB / 445.9 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001613/0.1203, allocations: 4 kB / 445.9 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001343/0.1204, allocations: 11.81 kB / 445.9 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001081/0.1205, allocations: 23.78 kB / 445.9 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002033/0.1208, allocations: 27.97 kB / 446 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002243/0.121, allocations: 111.6 kB / 446.1 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001828/0.1212, allocations: 37.38 kB / 446.1 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001051/0.1213, allocations: 35.91 kB / 446.1 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.217e-05/0.1214, allocations: 43.78 kB / 446.2 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.059e-05/0.1214, allocations: 15.98 kB / 446.2 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.104e-05/0.1215, allocations: 8 kB / 446.2 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.378e-05/0.1215, allocations: 15.92 kB / 446.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.77e-05/0.1216, allocations: 55.73 kB / 446.3 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002221/0.1218, allocations: 95.62 kB / 446.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.1218, allocations: 0 / 446.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.1218, allocations: 0 / 446.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.546e-06/0.1218, 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.0006585/0.1225, allocations: 415.2 kB / 446.8 MB, free: 13.19 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/0.1226, allocations: 12.02 kB / 446.8 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.315e-05/0.1226, allocations: 8.844 kB / 446.8 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002958/0.1229, allocations: 196.2 kB / 447 MB, free: 12.94 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.721e-05/0.123, allocations: 12.55 kB / 447 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.313e-05/0.123, allocations: 8.375 kB / 447 MB, free: 12.92 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000299/0.1233, allocations: 119.3 kB / 447.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.6e-05/0.1233, allocations: 0 / 447.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.381e-05/0.1233, allocations: 0 / 447.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.977e-06/0.1234, allocations: 4 kB / 447.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002453/0.1236, allocations: 75.88 kB / 447.2 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008392/0.1245, allocations: 0.5323 MB / 447.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000204/0.1247, allocations: 78.59 kB / 447.8 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001246/0.1248, allocations: 36.84 kB / 447.9 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.81e-05/0.1248, allocations: 0 / 447.9 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.95e-05/0.1249, allocations: 46.48 kB / 447.9 MB, free: 11.94 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.223e-06/0.1249, allocations: 4 kB / 447.9 MB, free: 11.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004787/0.1254, allocations: 121.7 kB / 448 MB, free: 11.81 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.775e-05/0.1254, allocations: 51.41 kB / 448.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001355/0.1256, allocations: 141.6 kB / 448.2 MB, free: 11.6 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.892e-05/0.1256, allocations: 25.7 kB / 448.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.907e-05/0.1257, allocations: 107.9 kB / 448.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.019e-05/0.1258, allocations: 31.55 kB / 448.4 MB, free: 11.43 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.601e-05/0.1258, allocations: 25.72 kB / 448.4 MB, free: 11.39 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.126, allocations: 330.8 kB / 448.7 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001203/0.1261, allocations: 27.97 kB / 448.7 MB, free: 11.04 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001325/0.1263, allocations: 72.2 kB / 448.8 MB, free: 10.95 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002829/0.1266, allocations: 100.2 kB / 448.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.1266, allocations: 4 kB / 448.9 MB, free: 10.83 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003144/0.1269, allocations: 133.4 kB / 449 MB, free: 10.7 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/0.1269, allocations: 12.12 kB / 449.1 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.1269, allocations: 0 / 449.1 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.061e-05/0.127, allocations: 0 / 449.1 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001774/0.1271, allocations: 35.91 kB / 449.1 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.1272, allocations: 4 kB / 449.1 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.395e-05/0.1273, allocations: 7.906 kB / 449.1 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.487e-05/0.1273, allocations: 8 kB / 449.1 MB, free: 10.63 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.0001236/0.1274, allocations: 125.8 kB / 449.2 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.681e-05/0.1275, allocations: 11.91 kB / 449.2 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.493e-05/0.1275, allocations: 8.375 kB / 449.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.1275, allocations: 0 / 449.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.1275, allocations: 0 / 449.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.1275, allocations: 0 / 449.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002483/0.1278, allocations: 201.5 kB / 449.5 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.1278, allocations: 0 / 449.5 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001476/0.128, allocations: 32.02 kB / 449.5 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.128, allocations: 7.875 kB / 449.5 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.293e-05/0.128, allocations: 0 / 449.5 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.128, allocations: 4 kB / 449.5 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.128, allocations: 0 / 449.5 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004949/0.1285, allocations: 235.4 kB / 449.7 MB, free: 9.941 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.21e-05/0.1286, allocations: 85.02 kB / 449.8 MB, free: 9.84 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.142e-05/0.1286, allocations: 0 / 449.8 MB, free: 9.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.03e-05/0.1287, allocations: 12 kB / 449.8 MB, free: 9.828 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.686e-05/0.1288, allocations: 7.984 kB / 449.8 MB, free: 9.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.278e-06/0.1288, allocations: 0 / 449.8 MB, free: 9.82 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.124e-05/0.1289, allocations: 95.27 kB / 449.9 MB, free: 9.727 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1289, allocations: 0 / 449.9 MB, free: 9.727 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002633/0.1292, 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.0001206/0.1293, allocations: 99.19 kB / 450 MB, free: 9.602 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000293/0.1296, allocations: 87.94 kB / 450.1 MB, free: 9.516 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1296, allocations: 0 / 450.1 MB, free: 9.516 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001076/0.1297, allocations: 35.98 kB / 450.2 MB, free: 9.48 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003466/0.1301, allocations: 23.92 kB / 450.2 MB, free: 9.457 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008348/0.1309, allocations: 381.3 kB / 450.6 MB, free: 9.055 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003202/0.1312, allocations: 0.6924 MB / 451.2 MB, free: 8.336 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.655e-05/0.1313, allocations: 8.422 kB / 451.3 MB, free: 8.328 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.601e-05/0.1313, allocations: 11.44 kB / 451.3 MB, free: 8.316 MB / 334.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1314, allocations: 8 kB / 451.3 MB, free: 8.309 MB / 334.1 MB Notification: Performance of Templates: time 0.004599/0.136, allocations: 1.011 MB / 452.3 MB, free: 7.297 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