Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.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.IntegerSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001499/0.001499, allocations: 103.4 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.001459/0.001459, allocations: 186.4 kB / 17.38 MB, free: 5.691 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.686/1.686, 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.09201/0.09201, allocations: 12.59 MB / 283.2 MB, free: 15.41 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.002242/0.002242, allocations: 90.12 kB / 394.2 MB, free: 45.35 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1223, allocations: 49.41 MB / 443.6 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1): time 0.003254/0.1256, allocations: 1.496 MB / 445.1 MB, free: 15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004357/0.126, allocations: 139.5 kB / 445.2 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001071/0.1262, allocations: 4 kB / 445.2 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.982e-05/0.1263, allocations: 3.938 kB / 445.2 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001475/0.1264, allocations: 7.922 kB / 445.2 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002816/0.1267, allocations: 43.84 kB / 445.3 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001076/0.1268, allocations: 27.92 kB / 445.3 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001207/0.1269, allocations: 31.84 kB / 445.3 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.156e-05/0.127, allocations: 11.94 kB / 445.3 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.598e-05/0.127, allocations: 15.92 kB / 445.3 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.104e-05/0.1271, allocations: 4 kB / 445.3 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.999e-06/0.1271, allocations: 0 / 445.3 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.655e-05/0.1272, allocations: 15.92 kB / 445.4 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.532e-05/0.1272, allocations: 23.8 kB / 445.4 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001413/0.1274, allocations: 43.83 kB / 445.4 MB, free: 14.64 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.1274, allocations: 0 / 445.4 MB, free: 14.64 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.1274, allocations: 0 / 445.4 MB, free: 14.64 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.957e-06/0.1274, allocations: 0 / 445.4 MB, free: 14.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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006094/0.128, allocations: 375.2 kB / 445.8 MB, free: 14.22 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.728e-05/0.1281, allocations: 8.031 kB / 445.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.81e-05/0.1281, allocations: 8.844 kB / 445.8 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003852/0.1285, allocations: 200.1 kB / 446 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.072e-05/0.1286, allocations: 4.375 kB / 446 MB, free: 13.96 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.248e-05/0.1286, allocations: 4.375 kB / 446 MB, free: 13.96 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004057/0.129, allocations: 125.4 kB / 446.1 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.129, allocations: 192 / 446.1 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.769e-05/0.1291, allocations: 3.938 kB / 446.1 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.029e-05/0.1291, allocations: 3.938 kB / 446.1 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.899e-05/0.1292, allocations: 23.92 kB / 446.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003841/0.1296, allocations: 257.8 kB / 446.4 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002487/0.1298, allocations: 146.2 kB / 446.6 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.94e-05/0.1299, allocations: 25.77 kB / 446.6 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.926e-05/0.1299, allocations: 11.98 kB / 446.6 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.13, allocations: 34.56 kB / 446.6 MB, free: 13.22 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.803e-06/0.13, allocations: 0 / 446.6 MB, free: 13.22 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002998/0.1303, allocations: 77.52 kB / 446.7 MB, free: 13.14 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.607e-05/0.1304, allocations: 81.11 kB / 446.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001608/0.1305, allocations: 134.2 kB / 446.9 MB, free: 12.89 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.798e-05/0.1306, allocations: 29.7 kB / 446.9 MB, free: 12.86 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.889e-05/0.1306, allocations: 88.12 kB / 447 MB, free: 12.77 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.416e-05/0.1307, allocations: 4 kB / 447 MB, free: 12.77 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.216e-05/0.1307, allocations: 21.62 kB / 447.1 MB, free: 12.74 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.1309, allocations: 310.8 kB / 447.4 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.199e-05/0.1309, allocations: 11.98 kB / 447.4 MB, free: 12.41 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.648e-05/0.131, allocations: 39.36 kB / 447.4 MB, free: 12.36 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.861e-05/0.1311, allocations: 39.42 kB / 447.4 MB, free: 12.31 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.03e-06/0.1311, allocations: 4 kB / 447.5 MB, free: 12.31 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001506/0.1312, allocations: 73.5 kB / 447.5 MB, free: 12.23 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.1313, allocations: 4 kB / 447.5 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.1313, allocations: 4 kB / 447.5 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/0.1313, allocations: 0 / 447.5 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.823e-05/0.1314, allocations: 11.98 kB / 447.5 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.347e-06/0.1314, allocations: 0 / 447.5 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.563e-05/0.1314, allocations: 4 kB / 447.5 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.684e-06/0.1315, allocations: 0 / 447.5 MB, free: 12.21 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: 4 (step.y,sample.y,assignClock.y,assignClock.u) * 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 0.0001011/0.1316, allocations: 129.9 kB / 447.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.342e-05/0.1317, allocations: 49.55 kB / 447.7 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.569e-05/0.1317, allocations: 12.23 kB / 447.7 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.1317, allocations: 4 kB / 447.7 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.1317, allocations: 0 / 447.7 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.1317, allocations: 3.938 kB / 447.7 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002144/0.132, allocations: 169.5 kB / 447.9 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.132, allocations: 0 / 447.9 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.281e-05/0.132, allocations: 12 kB / 447.9 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.132, allocations: 0 / 447.9 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.815e-06/0.1321, allocations: 8 kB / 447.9 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.1321, allocations: 0 / 447.9 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.634e-06/0.1321, allocations: 0 / 447.9 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002038/0.1323, allocations: 172.2 kB / 448.1 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.696e-05/0.1324, allocations: 89 kB / 448.2 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.555e-05/0.1324, allocations: 4 kB / 448.2 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.198e-05/0.1325, allocations: 11.98 kB / 448.2 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.809e-05/0.1325, allocations: 4 kB / 448.2 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.977e-06/0.1325, allocations: 0 / 448.2 MB, free: 11.45 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.796e-05/0.1326, allocations: 107.2 kB / 448.3 MB, free: 11.34 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1326, allocations: 0 / 448.3 MB, free: 11.34 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002269/0.1328, allocations: 4 kB / 448.3 MB, free: 11.34 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: 4 (step.y,assignClock.u,assignClock.y,sample.y) * 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 0.0001305/0.133, allocations: 95.23 kB / 448.4 MB, free: 11.23 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002019/0.1332, allocations: 35.98 kB / 448.4 MB, free: 11.2 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.1332, allocations: 0 / 448.4 MB, free: 11.2 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.002e-05/0.1332, allocations: 8 kB / 448.4 MB, free: 11.19 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004161/0.1337, allocations: 28.27 kB / 448.5 MB, free: 11.16 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005389/0.1342, allocations: 146.6 kB / 448.6 MB, free: 10.99 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005368/0.1348, allocations: 0.6885 MB / 449.3 MB, free: 10.28 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.738e-05/0.1348, allocations: 12.23 kB / 449.3 MB, free: 10.27 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.919e-05/0.1349, allocations: 7.438 kB / 449.3 MB, free: 10.26 MB / 334.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1349, allocations: 0 / 449.3 MB, free: 10.26 MB / 334.1 MB Notification: Performance of Templates: time 0.003025/0.1379, allocations: 0.4924 MB / 449.8 MB, free: 9.766 MB / 334.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches