Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|superSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|superSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009815/0.0009815, allocations: 175.3 kB / 16.77 MB, free: 5.016 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.506/1.506, allocations: 205.4 MB / 222.9 MB, free: 8.945 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008797/0.0008798, allocations: 88.78 kB / 271.3 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09186/0.09186, allocations: 12.6 MB / 332.2 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004514/0.0004515, allocations: 16 kB / 392.6 MB, free: 66.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1228, allocations: 50.38 MB / 443 MB, free: 16.13 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample): time 0.003504/0.1264, allocations: 1.556 MB / 444.5 MB, free: 14.56 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002514/0.1289, allocations: 0.9175 MB / 445.4 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002073/0.1292, allocations: 4 kB / 445.4 MB, free: 13.63 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000882/0.1301, allocations: 139.6 kB / 445.6 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004669/0.1306, allocations: 91.69 kB / 445.7 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009015/0.1315, allocations: 151.7 kB / 445.8 MB, free: 13.26 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003367/0.1319, allocations: 167.4 kB / 446 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000185/0.1321, allocations: 29.55 kB / 446 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002045/0.1323, allocations: 67.69 kB / 446.1 MB, free: 13 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001724/0.1325, allocations: 63.69 kB / 446.1 MB, free: 12.94 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.755e-05/0.1325, allocations: 4 kB / 446.1 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001939/0.1328, allocations: 39.92 kB / 446.2 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.037e-05/0.1329, allocations: 35.91 kB / 446.2 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001519/0.133, allocations: 81.3 kB / 446.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003294/0.1334, allocations: 155.9 kB / 446.4 MB, free: 12.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.688e-06/0.1334, allocations: 0 / 446.4 MB, free: 12.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.755e-06/0.1334, allocations: 0 / 446.4 MB, free: 12.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.688e-06/0.1335, allocations: 0 / 446.4 MB, free: 12.62 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001057/0.1345, allocations: 488.3 kB / 446.9 MB, free: 12.09 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.843e-05/0.1346, allocations: 8.031 kB / 446.9 MB, free: 12.08 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.662e-05/0.1347, allocations: 20.75 kB / 446.9 MB, free: 12.06 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005031/0.1352, allocations: 254.9 kB / 447.2 MB, free: 11.77 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.085e-05/0.1353, allocations: 16.31 kB / 447.2 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.841e-05/0.1353, allocations: 12.06 kB / 447.2 MB, free: 11.74 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004838/0.1358, allocations: 146.7 kB / 447.4 MB, free: 11.57 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.1359, allocations: 0 / 447.4 MB, free: 11.57 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.07e-05/0.1359, allocations: 0 / 447.4 MB, free: 11.57 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.198e-05/0.1359, allocations: 4 kB / 447.4 MB, free: 11.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001612/0.1361, allocations: 39.92 kB / 447.4 MB, free: 11.53 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006697/0.1368, allocations: 358.4 kB / 447.8 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000331/0.1371, allocations: 115.8 kB / 447.9 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001495/0.1373, allocations: 42.56 kB / 447.9 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.808e-05/0.1373, allocations: 4 kB / 447.9 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002201/0.1376, allocations: 79.31 kB / 448 MB, free: 10.84 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 2.765e-06/0.1376, allocations: 0 / 448 MB, free: 10.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0005562/0.1382, allocations: 141.3 kB / 448.1 MB, free: 10.7 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.119e-05/0.1383, allocations: 132.5 kB / 448.3 MB, free: 10.54 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004116/0.1387, allocations: 265.2 kB / 448.5 MB, free: 10.27 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.51e-05/0.1387, allocations: 29.7 kB / 448.6 MB, free: 10.23 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.636e-05/0.1389, allocations: 120.1 kB / 448.7 MB, free: 10.11 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.915e-05/0.1389, allocations: 19.75 kB / 448.7 MB, free: 10.09 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.165e-06/0.1389, allocations: 0 / 448.7 MB, free: 10.09 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.485e-05/0.139, allocations: 334.8 kB / 449 MB, free: 9.754 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001028/0.1392, allocations: 12 kB / 449 MB, free: 9.742 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001461/0.1393, allocations: 81.98 kB / 449.1 MB, free: 9.641 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002467/0.1396, allocations: 72.22 kB / 449.2 MB, free: 9.555 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.1396, allocations: 0 / 449.2 MB, free: 9.555 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003663/0.14, allocations: 113.4 kB / 449.3 MB, free: 9.438 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.494e-05/0.1401, allocations: 8 kB / 449.3 MB, free: 9.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.1401, allocations: 0 / 449.3 MB, free: 9.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.915e-05/0.1401, allocations: 3.984 kB / 449.3 MB, free: 9.426 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001571/0.1403, allocations: 12 kB / 449.3 MB, free: 9.414 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.391e-05/0.1403, allocations: 3.938 kB / 449.3 MB, free: 9.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001464/0.1405, allocations: 19.84 kB / 449.3 MB, free: 9.391 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.688e-05/0.1405, allocations: 4.125 kB / 449.3 MB, free: 9.387 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,superSample.y,superSample.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001741/0.1407, allocations: 146.5 kB / 449.5 MB, free: 9.234 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001109/0.1408, allocations: 65.73 kB / 449.5 MB, free: 9.164 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.002e-05/0.1409, allocations: 25.7 kB / 449.6 MB, free: 9.141 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.141, allocations: 4 kB / 449.6 MB, free: 9.137 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.159e-05/0.141, allocations: 4 kB / 449.6 MB, free: 9.133 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.141, allocations: 7.875 kB / 449.6 MB, free: 9.125 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002715/0.1413, allocations: 225.6 kB / 449.8 MB, free: 8.855 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.459e-06/0.1413, allocations: 4.062 kB / 449.8 MB, free: 8.852 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.462e-05/0.1414, allocations: 11.98 kB / 449.8 MB, free: 8.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.03e-06/0.1414, allocations: 0 / 449.8 MB, free: 8.84 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.835e-05/0.1414, allocations: 7.938 kB / 449.8 MB, free: 8.832 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.1414, allocations: 0 / 449.8 MB, free: 8.832 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.1414, allocations: 0 / 449.8 MB, free: 8.832 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003464/0.1418, allocations: 158.4 kB / 450 MB, free: 8.652 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001037/0.1419, allocations: 112.9 kB / 450.1 MB, free: 8.523 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.41e-05/0.142, allocations: 0 / 450.1 MB, free: 8.523 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001022/0.1421, allocations: 7.984 kB / 450.1 MB, free: 8.516 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.702e-05/0.1422, allocations: 4 kB / 450.1 MB, free: 8.512 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.758e-05/0.1422, allocations: 11.94 kB / 450.1 MB, free: 8.5 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002854/0.1425, allocations: 196.4 kB / 450.3 MB, free: 8.309 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.1425, allocations: 0 / 450.3 MB, free: 8.309 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004816/0.143, allocations: 35.98 kB / 450.3 MB, free: 8.273 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,superSample.y,sample.y,superSample.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001531/0.1446, allocations: 417.1 kB / 450.8 MB, free: 7.855 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003184/0.1449, allocations: 63.91 kB / 450.8 MB, free: 7.793 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/0.1449, allocations: 4 kB / 450.8 MB, free: 7.789 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001122/0.1451, allocations: 23.94 kB / 450.8 MB, free: 7.766 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006898/0.1458, allocations: 60.34 kB / 450.9 MB, free: 7.707 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008727/0.1467, allocations: 366.1 kB / 451.3 MB, free: 7.312 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002414/0.1469, allocations: 0.7244 MB / 452 MB, free: 6.562 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.797e-05/0.147, allocations: 23.42 kB / 452 MB, free: 6.539 MB / 298.7 MB Notification: Performance of SimCode: time 1.022e-06/0.147, allocations: 0 / 452 MB, free: 6.539 MB / 298.7 MB Notification: Performance of Templates: time 0.007843/0.1549, allocations: 2.547 MB / 454.6 MB, free: 3.988 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches