Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.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.BooleanSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|step.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|step.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001395/0.001395, allocations: 100.6 kB / 16.45 MB, free: 6.441 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.0015/0.0015, allocations: 190 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.579/1.579, 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.08311/0.08311, allocations: 12.58 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.003494/0.003494, allocations: 84.52 kB / 394.2 MB, free: 45.36 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1362/0.1397, allocations: 49.41 MB / 443.6 MB, free: 492 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked): time 0.003805/0.1436, allocations: 1.479 MB / 445 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004675/0.1441, allocations: 137.2 kB / 445.2 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001124/0.1442, allocations: 4 kB / 445.2 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.455e-05/0.1443, allocations: 3.938 kB / 445.2 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000167/0.1445, allocations: 11.94 kB / 445.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00036/0.1448, allocations: 35.91 kB / 445.2 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001456/0.145, allocations: 31.86 kB / 445.3 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001547/0.1452, allocations: 7.984 kB / 445.3 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.65e-05/0.1452, allocations: 8 kB / 445.3 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.99e-05/0.1453, allocations: 19.86 kB / 445.3 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.151e-05/0.1453, allocations: 4 kB / 445.3 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.899e-06/0.1453, allocations: 4 kB / 445.3 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.79e-05/0.1454, allocations: 4 kB / 445.3 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.777e-05/0.1454, allocations: 27.8 kB / 445.3 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001532/0.1456, allocations: 35.77 kB / 445.4 MB, free: 14.66 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.1456, allocations: 0 / 445.4 MB, free: 14.66 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.1456, allocations: 4 kB / 445.4 MB, free: 14.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.895e-06/0.1456, allocations: 0 / 445.4 MB, free: 14.66 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0006858/0.1463, allocations: 359.2 kB / 445.7 MB, free: 14.25 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.91e-05/0.1464, allocations: 8.031 kB / 445.7 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.317e-05/0.1465, allocations: 8.938 kB / 445.7 MB, free: 14.24 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004503/0.1469, allocations: 184.2 kB / 445.9 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.929e-05/0.147, allocations: 384 / 445.9 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.02e-05/0.147, allocations: 4.375 kB / 445.9 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003329/0.1473, allocations: 89.61 kB / 446 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.1474, allocations: 8.188 kB / 446 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.975e-05/0.1474, allocations: 3.938 kB / 446 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.1474, allocations: 0 / 446 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.778e-05/0.1475, allocations: 15.92 kB / 446 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000516/0.148, allocations: 261.8 kB / 446.3 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001142/0.1481, allocations: 49.14 kB / 446.3 MB, free: 13.51 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.734e-05/0.1482, allocations: 17.72 kB / 446.4 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.003e-05/0.1482, allocations: 3.938 kB / 446.4 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.269e-05/0.1483, allocations: 34.56 kB / 446.4 MB, free: 13.44 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 4.379e-06/0.1483, allocations: 0 / 446.4 MB, free: 13.44 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003232/0.1486, allocations: 61.72 kB / 446.5 MB, free: 13.37 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.908e-05/0.1487, allocations: 81.11 kB / 446.5 MB, free: 13.27 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000189/0.1489, allocations: 133.8 kB / 446.7 MB, free: 13.13 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.173e-05/0.1489, allocations: 25.7 kB / 446.7 MB, free: 13.1 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.68e-05/0.149, allocations: 92.12 kB / 446.8 MB, free: 13.01 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.338e-05/0.149, allocations: 0 / 446.8 MB, free: 13.01 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.742e-05/0.1491, allocations: 25.62 kB / 446.8 MB, free: 12.98 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.1493, allocations: 310.8 kB / 447.1 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.555e-05/0.1493, allocations: 11.98 kB / 447.1 MB, free: 12.65 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.695e-05/0.1494, allocations: 17.72 kB / 447.1 MB, free: 12.63 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.838e-05/0.1494, allocations: 21.66 kB / 447.2 MB, free: 12.6 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.1494, allocations: 0 / 447.2 MB, free: 12.6 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001126/0.1496, allocations: 57.66 kB / 447.2 MB, free: 12.54 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.1496, allocations: 4 kB / 447.2 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.946e-06/0.1496, allocations: 4 kB / 447.2 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.1496, allocations: 0 / 447.2 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.248e-05/0.1496, allocations: 3.984 kB / 447.2 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.1497, allocations: 0 / 447.2 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.105e-05/0.1497, allocations: 4 kB / 447.2 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.571e-06/0.1497, allocations: 0 / 447.2 MB, free: 12.52 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sample.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.0001319/0.1498, allocations: 117.8 kB / 447.4 MB, free: 12.4 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.421e-05/0.1499, allocations: 45.62 kB / 447.4 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.345e-05/0.15, allocations: 15.47 kB / 447.4 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.15, allocations: 0 / 447.4 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.15, allocations: 4 kB / 447.4 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.15, allocations: 0 / 447.4 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002164/0.1502, allocations: 165.6 kB / 447.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1502, allocations: 3.938 kB / 447.6 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.263e-06/0.1503, allocations: 0 / 447.6 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.1503, allocations: 0 / 447.6 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/0.1503, allocations: 4 kB / 447.6 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.1503, allocations: 0 / 447.6 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.1503, allocations: 4.031 kB / 447.6 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001713/0.1505, allocations: 152.3 kB / 447.7 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.66e-05/0.1506, allocations: 89 kB / 447.8 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.146e-05/0.1506, allocations: 4 kB / 447.8 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.738e-05/0.1507, allocations: 7.938 kB / 447.8 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.46e-05/0.1507, allocations: 8.031 kB / 447.8 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.767e-06/0.1507, allocations: 0 / 447.8 MB, free: 11.81 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.447e-05/0.1508, allocations: 107.1 kB / 448 MB, free: 11.71 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1508, allocations: 4 kB / 448 MB, free: 11.7 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002511/0.1511, allocations: 4 kB / 448 MB, free: 11.7 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: 2 (sample.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001131/0.1512, allocations: 95.25 kB / 448.1 MB, free: 11.6 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001325/0.1513, allocations: 15.98 kB / 448.1 MB, free: 11.58 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1513, allocations: 128 / 448.1 MB, free: 11.58 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 2.879e-05/0.1514, allocations: 12 kB / 448.1 MB, free: 11.57 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003532/0.1517, allocations: 19.89 kB / 448.1 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003773/0.1521, allocations: 134.4 kB / 448.2 MB, free: 11.39 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002635/0.1524, allocations: 0.6884 MB / 448.9 MB, free: 10.68 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.664e-05/0.1524, allocations: 4 kB / 448.9 MB, free: 10.67 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.765e-05/0.1525, allocations: 7.438 kB / 448.9 MB, free: 10.66 MB / 334.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1525, allocations: 4.156 kB / 448.9 MB, free: 10.66 MB / 334.1 MB Notification: Performance of Templates: time 0.002911/0.1554, allocations: 440.5 kB / 449.4 MB, free: 10.23 MB / 334.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches