Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.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.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00121/0.00121, allocations: 109.9 kB / 16.46 MB, free: 6.449 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.001256/0.001256, allocations: 189.5 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.555/1.555, allocations: 205.1 MB / 223.3 MB, free: 12.22 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.07752/0.07752, allocations: 12.6 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.001917/0.001917, allocations: 90.58 kB / 394.2 MB, free: 45.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1322, allocations: 49.4 MB / 443.6 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2): time 0.002878/0.1351, allocations: 1.536 MB / 445.1 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004415/0.1356, allocations: 139.5 kB / 445.2 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.863e-05/0.1357, allocations: 4 kB / 445.2 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.732e-05/0.1358, allocations: 7.922 kB / 445.3 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001416/0.1359, allocations: 7.938 kB / 445.3 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002621/0.1362, allocations: 35.84 kB / 445.3 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001224/0.1363, allocations: 39.91 kB / 445.3 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001525/0.1365, allocations: 23.84 kB / 445.4 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.876e-05/0.1365, allocations: 11.92 kB / 445.4 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.392e-05/0.1366, allocations: 11.94 kB / 445.4 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.042e-05/0.1366, allocations: 8 kB / 445.4 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.26e-05/0.1367, allocations: 4 kB / 445.4 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.965e-05/0.1367, allocations: 15.92 kB / 445.4 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.397e-05/0.1368, allocations: 23.81 kB / 445.4 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001129/0.1369, allocations: 47.81 kB / 445.5 MB, free: 14.68 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.1369, allocations: 0 / 445.5 MB, free: 14.68 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1369, allocations: 0 / 445.5 MB, free: 14.68 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.1369, allocations: 0 / 445.5 MB, free: 14.68 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.000589/0.1375, allocations: 367.2 kB / 445.8 MB, free: 14.27 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.1376, allocations: 12.03 kB / 445.8 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.205e-05/0.1376, allocations: 8.844 kB / 445.9 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002555/0.1379, allocations: 204 kB / 446.1 MB, free: 14.01 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.352e-05/0.1379, allocations: 4.359 kB / 446.1 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.83e-05/0.1379, allocations: 4.375 kB / 446.1 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002882/0.1382, allocations: 121.4 kB / 446.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.116e-06/0.1382, allocations: 192 / 446.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.39e-05/0.1382, allocations: 3.938 kB / 446.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.75e-06/0.1382, allocations: 0 / 446.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.646e-05/0.1383, allocations: 23.92 kB / 446.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003226/0.1387, allocations: 265.8 kB / 446.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002106/0.1389, allocations: 138.2 kB / 446.6 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.767e-05/0.139, allocations: 33.77 kB / 446.6 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.679e-05/0.139, allocations: 0 / 446.6 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.435e-05/0.139, allocations: 38.56 kB / 446.7 MB, free: 13.27 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 9.71e-07/0.139, allocations: 0 / 446.7 MB, free: 13.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002728/0.1393, allocations: 77.52 kB / 446.8 MB, free: 13.18 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.118e-05/0.1394, allocations: 81.11 kB / 446.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001652/0.1395, allocations: 134.1 kB / 447 MB, free: 12.94 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.324e-05/0.1396, allocations: 25.7 kB / 447 MB, free: 12.91 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.952e-05/0.1396, allocations: 84.14 kB / 447.1 MB, free: 12.82 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.732e-05/0.1396, allocations: 8.125 kB / 447.1 MB, free: 12.82 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.377e-05/0.1397, allocations: 21.62 kB / 447.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.1398, allocations: 314.8 kB / 447.4 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.054e-05/0.1398, allocations: 8 kB / 447.4 MB, free: 12.46 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.264e-05/0.1399, allocations: 35.36 kB / 447.4 MB, free: 12.42 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.629e-05/0.14, allocations: 47.42 kB / 447.5 MB, free: 12.36 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.14, allocations: 4 kB / 447.5 MB, free: 12.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001295/0.1401, allocations: 69.5 kB / 447.6 MB, free: 12.28 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.1402, allocations: 8.109 kB / 447.6 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.1402, allocations: 8 kB / 447.6 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.1402, allocations: 0 / 447.6 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.497e-05/0.1402, allocations: 8 kB / 447.6 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.1403, allocations: 0 / 447.6 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.34e-05/0.1403, allocations: 4 kB / 447.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.791e-06/0.1403, allocations: 3.938 kB / 447.6 MB, free: 12.25 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * 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 8.425e-05/0.1404, allocations: 125.8 kB / 447.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.975e-05/0.1405, allocations: 49.53 kB / 447.8 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.994e-05/0.1405, allocations: 16.25 kB / 447.8 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.1405, allocations: 0 / 447.8 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.1406, allocations: 4 kB / 447.8 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.1406, allocations: 336 / 447.8 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001696/0.1407, allocations: 169.6 kB / 448 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.1407, allocations: 0 / 448 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.488e-05/0.1408, allocations: 11.94 kB / 448 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5e-06/0.1408, allocations: 7.969 kB / 448 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.799e-06/0.1408, allocations: 4 kB / 448 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.1408, allocations: 0 / 448 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1408, allocations: 0 / 448 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001604/0.141, allocations: 172.2 kB / 448.1 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.031e-05/0.1411, allocations: 96.95 kB / 448.2 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.448e-05/0.1411, allocations: 3.984 kB / 448.2 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.43e-05/0.1412, allocations: 0 / 448.2 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.9e-05/0.1412, allocations: 4 kB / 448.2 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.336e-06/0.1412, allocations: 0 / 448.2 MB, free: 11.49 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.327e-05/0.1413, allocations: 107.3 kB / 448.4 MB, free: 11.39 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1413, allocations: 0 / 448.4 MB, free: 11.39 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002141/0.1415, allocations: 7.984 kB / 448.4 MB, free: 11.38 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (4): * Single equations (assignments): 4 * 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 9.394e-05/0.1416, allocations: 91.25 kB / 448.5 MB, free: 11.28 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001451/0.1417, allocations: 31.92 kB / 448.5 MB, free: 11.25 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.1417, allocations: 0 / 448.5 MB, free: 11.25 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.629e-05/0.1418, allocations: 16.23 kB / 448.5 MB, free: 11.23 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003283/0.1421, allocations: 23.91 kB / 448.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003215/0.1425, allocations: 142.5 kB / 448.7 MB, free: 11.04 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003136/0.1428, allocations: 0.6885 MB / 449.3 MB, free: 10.33 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.715e-05/0.1428, allocations: 0 / 449.3 MB, free: 10.33 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.519e-05/0.1428, allocations: 11.44 kB / 449.4 MB, free: 10.32 MB / 334.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1429, allocations: 4.062 kB / 449.4 MB, free: 10.31 MB / 334.1 MB Notification: Performance of Templates: time 0.003163/0.146, allocations: 0.4926 MB / 449.9 MB, free: 9.82 MB / 334.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches