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.007505/0.007505, allocations: 92.75 kB / 15.91 MB, free: 6.273 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.001742/0.001742, allocations: 201.1 kB / 16.84 MB, free: 6.188 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.484/1.484, allocations: 205.1 MB / 222.7 MB, free: 4.699 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.08616/0.08616, allocations: 12.6 MB / 282.6 MB, free: 8.852 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.001579/0.001579, allocations: 83.89 kB / 342.8 MB, free: 21.2 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1161, allocations: 49.4 MB / 392.2 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3): time 0.00411/0.1203, allocations: 1.748 MB / 393.9 MB, free: 1.949 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004624/0.1208, allocations: 159.5 kB / 394.1 MB, free: 1.793 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001063/0.1209, allocations: 7.938 kB / 394.1 MB, free: 1.785 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.453e-05/0.1209, allocations: 3.938 kB / 394.1 MB, free: 1.781 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001436/0.1211, allocations: 0 / 394.1 MB, free: 1.781 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002969/0.1214, allocations: 47.89 kB / 394.2 MB, free: 1.734 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.773e-05/0.1215, allocations: 47.86 kB / 394.2 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001798/0.1217, allocations: 27.98 kB / 394.2 MB, free: 1.66 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.312e-05/0.1217, allocations: 23.86 kB / 394.2 MB, free: 1.637 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.686e-05/0.1218, allocations: 27.84 kB / 394.3 MB, free: 1.609 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.195e-05/0.1218, allocations: 4 kB / 394.3 MB, free: 1.605 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.103e-05/0.1219, allocations: 4 kB / 394.3 MB, free: 1.602 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.5e-05/0.1219, allocations: 19.92 kB / 394.3 MB, free: 1.582 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.902e-05/0.122, allocations: 31.75 kB / 394.3 MB, free: 1.551 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001298/0.1221, allocations: 64 kB / 394.4 MB, free: 1.488 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.1221, allocations: 0 / 394.4 MB, free: 1.488 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.1222, allocations: 0 / 394.4 MB, free: 1.488 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.416e-06/0.1222, allocations: 0 / 394.4 MB, free: 1.488 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005914/0.1228, allocations: 387.1 kB / 394.8 MB, free: 1.059 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.1228, allocations: 12.03 kB / 394.8 MB, free: 1.047 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.404e-05/0.1229, allocations: 16.83 kB / 394.8 MB, free: 1.031 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000231/0.1231, allocations: 196.1 kB / 395 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.727e-06/0.1231, allocations: 4.375 kB / 395 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.933e-05/0.1231, allocations: 8.375 kB / 395 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003873/0.1235, allocations: 158.4 kB / 395.2 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.569e-05/0.1236, allocations: 8.188 kB / 395.2 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.454e-05/0.1236, allocations: 3.938 kB / 395.2 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.1236, allocations: 0 / 395.2 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000127/0.1237, allocations: 39.91 kB / 395.2 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005413/0.1243, allocations: 377.7 kB / 395.6 MB, free: 140 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003002/0.1246, allocations: 111.8 kB / 395.7 MB, free: 0 / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001229/0.1247, allocations: 54.69 kB / 395.7 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.505e-05/0.1248, allocations: 11.98 kB / 395.8 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.231e-05/0.1248, allocations: 38.56 kB / 395.8 MB, free: 15.88 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 4.689e-06/0.1248, allocations: 0 / 395.8 MB, free: 15.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003727/0.1252, allocations: 121.4 kB / 395.9 MB, free: 15.75 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.421e-05/0.1253, allocations: 107.1 kB / 396 MB, free: 15.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001654/0.1255, allocations: 146 kB / 396.2 MB, free: 15.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.154e-05/0.1255, allocations: 29.7 kB / 396.2 MB, free: 15.44 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.011e-05/0.1256, allocations: 92.3 kB / 396.3 MB, free: 15.35 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.502e-05/0.1257, allocations: 11.88 kB / 396.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.514e-05/0.1257, allocations: 25.72 kB / 396.3 MB, free: 15.3 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.1259, allocations: 318.8 kB / 396.6 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.562e-05/0.1259, allocations: 15.98 kB / 396.6 MB, free: 14.97 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001011/0.1261, allocations: 75.66 kB / 396.7 MB, free: 14.87 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001459/0.1262, allocations: 95.53 kB / 396.8 MB, free: 14.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1262, allocations: 0 / 396.8 MB, free: 14.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002099/0.1264, allocations: 109.4 kB / 396.9 MB, free: 14.63 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.209e-05/0.1265, allocations: 8 kB / 396.9 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.1265, allocations: 0 / 396.9 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.154e-05/0.1265, allocations: 7.938 kB / 396.9 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.869e-05/0.1266, allocations: 19.98 kB / 397 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.376e-05/0.1266, allocations: 7.938 kB / 397 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.37e-05/0.1267, allocations: 16.11 kB / 397 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.129e-05/0.1267, allocations: 8 kB / 397 MB, free: 14.57 MB / 302.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.0001283/0.1268, allocations: 125.8 kB / 397.1 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001361/0.127, allocations: 73.53 kB / 397.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.555e-05/0.127, allocations: 12.72 kB / 397.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.127, allocations: 4 kB / 397.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.1271, allocations: 0 / 397.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/0.1271, allocations: 3.984 kB / 397.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002903/0.1274, allocations: 181.6 kB / 397.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.1274, allocations: 4 kB / 397.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.42e-05/0.1275, allocations: 19.98 kB / 397.4 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.1275, allocations: 4 kB / 397.4 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/0.1275, allocations: 4 kB / 397.4 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.1275, allocations: 0 / 397.4 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.92e-06/0.1275, allocations: 4 kB / 397.4 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005384/0.128, allocations: 320.3 kB / 397.7 MB, free: 13.74 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.854e-05/0.1282, allocations: 104.9 kB / 397.8 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.571e-05/0.1282, allocations: 3.938 kB / 397.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.574e-05/0.1283, allocations: 8 kB / 397.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.594e-05/0.1283, allocations: 0 / 397.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.308e-06/0.1284, allocations: 4 kB / 397.8 MB, free: 13.6 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.862e-05/0.1285, allocations: 111.2 kB / 397.9 MB, free: 13.49 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1285, allocations: 0 / 397.9 MB, free: 13.49 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002835/0.1288, allocations: 12 kB / 398 MB, free: 13.48 MB / 302.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.0001375/0.1289, allocations: 103.2 kB / 398.1 MB, free: 13.37 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001774/0.1291, allocations: 51.91 kB / 398.1 MB, free: 13.32 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1291, allocations: 0 / 398.1 MB, free: 13.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.662e-05/0.1291, allocations: 16.5 kB / 398.1 MB, free: 13.3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005726/0.1297, allocations: 40.14 kB / 398.2 MB, free: 13.26 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004602/0.1302, allocations: 241.9 kB / 398.4 MB, free: 12.99 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003776/0.1306, allocations: 0.7083 MB / 399.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.234e-05/0.1306, allocations: 0.6719 kB / 399.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.267e-05/0.1307, allocations: 11.44 kB / 399.1 MB, free: 12.24 MB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1307, allocations: 0 / 399.1 MB, free: 12.24 MB / 302.1 MB Notification: Performance of Templates: time 0.003365/0.134, allocations: 0.6341 MB / 399.8 MB, free: 11.61 MB / 302.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","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches