Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.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.Elementary.RealSignals.Sample3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|feedback.y|hold.y|sample1.y|sample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|feedback.y|hold.y|sample1.y|sample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001604/0.001604, allocations: 104.6 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.00157/0.001571, allocations: 192.7 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.697/1.697, allocations: 205.1 MB / 223.3 MB, free: 12.23 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.0772/0.0772, 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.001944/0.001944, allocations: 90.86 kB / 394.2 MB, free: 45.38 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1184, allocations: 49.4 MB / 443.6 MB, free: 484 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3): time 0.003337/0.1218, allocations: 1.674 MB / 445.2 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004675/0.1222, allocations: 163.4 kB / 445.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001048/0.1224, allocations: 4 kB / 445.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.211e-05/0.1224, allocations: 7.875 kB / 445.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000234/0.1227, allocations: 15.92 kB / 445.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002748/0.123, allocations: 51.83 kB / 445.5 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001337/0.1231, allocations: 51.84 kB / 445.5 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001395/0.1232, allocations: 43.89 kB / 445.6 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.04e-05/0.1233, allocations: 19.94 kB / 445.6 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.174e-05/0.1234, allocations: 23.86 kB / 445.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.695e-05/0.1234, allocations: 4 kB / 445.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.518e-05/0.1234, allocations: 4 kB / 445.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.803e-05/0.1235, allocations: 19.92 kB / 445.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.15e-05/0.1236, allocations: 39.72 kB / 445.7 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001525/0.1237, allocations: 63.75 kB / 445.7 MB, free: 14.29 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.1237, allocations: 0 / 445.7 MB, free: 14.29 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1237, allocations: 3.938 kB / 445.8 MB, free: 14.28 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.1238, allocations: 4 kB / 445.8 MB, free: 14.28 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006391/0.1244, allocations: 399 kB / 446.1 MB, free: 13.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.1244, allocations: 8.031 kB / 446.2 MB, free: 13.83 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.188e-05/0.1245, allocations: 8.844 kB / 446.2 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002746/0.1248, allocations: 196.1 kB / 446.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.1248, allocations: 4.375 kB / 446.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.604e-05/0.1248, allocations: 8.375 kB / 446.4 MB, free: 13.58 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003647/0.1252, allocations: 170.2 kB / 446.5 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.1252, allocations: 4.172 kB / 446.5 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.129e-05/0.1252, allocations: 7.938 kB / 446.5 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.1252, allocations: 0 / 446.5 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001087/0.1254, allocations: 39.92 kB / 446.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004264/0.1258, allocations: 358 kB / 446.9 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002401/0.126, allocations: 127.7 kB / 447.1 MB, free: 12.78 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/0.1261, allocations: 58.69 kB / 447.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.999e-05/0.1262, allocations: 4.141 kB / 447.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.893e-05/0.1262, allocations: 38.56 kB / 447.2 MB, free: 12.66 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.272e-06/0.1262, allocations: 0 / 447.2 MB, free: 12.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003584/0.1266, allocations: 121.4 kB / 447.3 MB, free: 12.54 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/0.1267, allocations: 114.8 kB / 447.4 MB, free: 12.4 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001773/0.1269, allocations: 145.7 kB / 447.5 MB, free: 12.25 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.17e-05/0.1269, allocations: 25.7 kB / 447.6 MB, free: 12.22 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.621e-05/0.127, allocations: 88.39 kB / 447.6 MB, free: 12.13 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.252e-05/0.1271, allocations: 19.83 kB / 447.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.022e-05/0.1271, allocations: 25.72 kB / 447.7 MB, free: 12.08 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001939/0.1273, allocations: 314.8 kB / 448 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.729e-05/0.1274, allocations: 12 kB / 448 MB, free: 11.75 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.858e-05/0.1275, allocations: 75.66 kB / 448.1 MB, free: 11.65 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001778/0.1277, allocations: 95.58 kB / 448.2 MB, free: 11.53 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.1277, allocations: 7.938 kB / 448.2 MB, free: 11.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001922/0.1279, allocations: 101.6 kB / 448.3 MB, free: 11.41 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.716e-05/0.1279, allocations: 12.03 kB / 448.3 MB, free: 11.4 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.1279, allocations: 0 / 448.3 MB, free: 11.4 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.424e-05/0.128, allocations: 4 kB / 448.3 MB, free: 11.4 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.286e-05/0.1281, allocations: 19.98 kB / 448.3 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/0.1281, allocations: 4.312 kB / 448.3 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.212e-05/0.1281, allocations: 8 kB / 448.3 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.025e-05/0.1281, allocations: 4 kB / 448.3 MB, free: 11.36 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (10): * Single equations (assignments): 10 * 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.0001302/0.1283, allocations: 129.7 kB / 448.5 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001269/0.1284, allocations: 81.56 kB / 448.5 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.992e-05/0.1285, allocations: 16.72 kB / 448.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.1285, allocations: 0 / 448.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.1285, allocations: 4 kB / 448.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.1285, allocations: 0 / 448.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002899/0.1288, allocations: 189.4 kB / 448.7 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.603e-06/0.1288, allocations: 7.984 kB / 448.7 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.228e-05/0.1289, allocations: 15.94 kB / 448.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.199e-06/0.1289, allocations: 4 kB / 448.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.217e-05/0.1289, allocations: 192 / 448.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.1289, allocations: 3.984 kB / 448.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/0.129, allocations: 11.94 kB / 448.8 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005439/0.1295, allocations: 308.2 kB / 449.1 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000109/0.1296, allocations: 97 kB / 449.2 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.203e-05/0.1297, allocations: 7.938 kB / 449.2 MB, free: 10.4 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.962e-05/0.1298, allocations: 7.984 kB / 449.2 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.802e-05/0.1298, allocations: 0 / 449.2 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.039e-05/0.1298, allocations: 11.94 kB / 449.2 MB, free: 10.38 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.597e-05/0.13, allocations: 103.3 kB / 449.3 MB, free: 10.28 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.13, allocations: 0 / 449.3 MB, free: 10.28 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002885/0.1303, allocations: 12 kB / 449.3 MB, free: 10.27 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 simulation (10): * Single equations (assignments): 10 * 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.0001858/0.1304, allocations: 95.23 kB / 449.4 MB, free: 10.16 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002333/0.1307, allocations: 67.84 kB / 449.5 MB, free: 10.1 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.214e-06/0.1307, allocations: 4 kB / 449.5 MB, free: 10.09 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.067e-05/0.1308, allocations: 4 kB / 449.5 MB, free: 10.09 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005202/0.1313, allocations: 43.95 kB / 449.5 MB, free: 10.05 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000574/0.1319, allocations: 205 kB / 449.7 MB, free: 9.816 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005341/0.1324, allocations: 0.7002 MB / 450.4 MB, free: 9.09 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.955e-05/0.1325, allocations: 4.672 kB / 450.4 MB, free: 9.086 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.732e-05/0.1325, allocations: 15.38 kB / 450.4 MB, free: 9.07 MB / 334.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1325, allocations: 0 / 450.4 MB, free: 9.07 MB / 334.1 MB Notification: Performance of Templates: time 0.003935/0.1365, allocations: 0.7265 MB / 451.2 MB, free: 8.344 MB / 334.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches