Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample.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.SuperSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|superSample.y",fileNamePrefix="Modelica_Synchronous_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_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001169/0.001169, allocations: 105.9 kB / 16.45 MB, free: 6.387 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.001099/0.001099, allocations: 192.9 kB / 17.39 MB, free: 5.672 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.722/1.722, allocations: 205.1 MB / 223.3 MB, free: 12.21 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.1021/0.1021, allocations: 12.59 MB / 283.2 MB, free: 15.4 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.002128/0.002128, allocations: 89.69 kB / 394.2 MB, free: 45.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1307, allocations: 49.4 MB / 443.6 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample): time 0.003567/0.1343, allocations: 1.876 MB / 445.4 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001891/0.1362, allocations: 0.9946 MB / 446.4 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001658/0.1364, allocations: 3.938 kB / 446.4 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007441/0.1372, allocations: 159.5 kB / 446.6 MB, free: 13.56 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0003234/0.1375, allocations: 111.6 kB / 446.7 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005347/0.138, allocations: 175.5 kB / 446.9 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000251/0.1383, allocations: 183.5 kB / 447.1 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001304/0.1384, allocations: 29.53 kB / 447.1 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001051/0.1386, allocations: 75.69 kB / 447.2 MB, free: 13 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001197/0.1387, allocations: 75.56 kB / 447.2 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.751e-05/0.1387, allocations: 12 kB / 447.2 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001438/0.1389, allocations: 55.98 kB / 447.3 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.86e-05/0.139, allocations: 39.89 kB / 447.3 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001022/0.1391, allocations: 71.48 kB / 447.4 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003314/0.1394, allocations: 203.3 kB / 447.6 MB, free: 12.55 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.1394, allocations: 0 / 447.6 MB, free: 12.55 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1394, allocations: 0 / 447.6 MB, free: 12.55 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.803e-06/0.1395, allocations: 0 / 447.6 MB, free: 12.55 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007787/0.1402, allocations: 0.5002 MB / 448.1 MB, free: 11.99 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/0.1403, allocations: 12.03 kB / 448.1 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.948e-05/0.1404, allocations: 20.66 kB / 448.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003648/0.1407, allocations: 270.8 kB / 448.4 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.557e-05/0.1408, allocations: 4.375 kB / 448.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.642e-05/0.1408, allocations: 16.06 kB / 448.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003494/0.1411, allocations: 150.7 kB / 448.6 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.1412, allocations: 0 / 448.6 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.729e-05/0.1412, allocations: 4 kB / 448.6 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.1412, allocations: 0 / 448.6 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001071/0.1413, allocations: 35.92 kB / 448.6 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005577/0.1419, allocations: 374.2 kB / 449 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002188/0.1421, allocations: 103.9 kB / 449.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.968e-05/0.1422, allocations: 46.56 kB / 449.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.08e-05/0.1422, allocations: 8.062 kB / 449.1 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001613/0.1424, allocations: 71.38 kB / 449.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.452e-06/0.1424, allocations: 0 / 449.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004842/0.1429, allocations: 145.4 kB / 449.3 MB, free: 10.58 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.146e-05/0.143, allocations: 132.5 kB / 449.5 MB, free: 10.42 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002909/0.1433, allocations: 261 kB / 449.7 MB, free: 10.16 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.472e-05/0.1433, allocations: 33.64 kB / 449.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.1435, allocations: 116 kB / 449.9 MB, free: 10 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.179e-05/0.1435, allocations: 15.81 kB / 449.9 MB, free: 9.984 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.607e-05/0.1436, allocations: 29.7 kB / 449.9 MB, free: 9.949 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001717/0.1438, allocations: 334.9 kB / 450.2 MB, free: 9.613 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.784e-05/0.1438, allocations: 23.98 kB / 450.3 MB, free: 9.59 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001068/0.1439, allocations: 73.88 kB / 450.3 MB, free: 9.496 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001436/0.1441, allocations: 76.25 kB / 450.4 MB, free: 9.406 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1441, allocations: 0 / 450.4 MB, free: 9.406 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002006/0.1443, allocations: 109.4 kB / 450.5 MB, free: 9.293 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.1443, allocations: 8 kB / 450.5 MB, free: 9.285 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.1443, allocations: 0 / 450.5 MB, free: 9.285 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.227e-05/0.1444, allocations: 4.125 kB / 450.5 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.863e-05/0.1445, allocations: 23.92 kB / 450.6 MB, free: 9.258 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.091e-05/0.1445, allocations: 7.938 kB / 450.6 MB, free: 9.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.142e-05/0.1446, allocations: 15.78 kB / 450.6 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.098e-05/0.1446, allocations: 4.312 kB / 450.6 MB, free: 9.23 MB / 334.1 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 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001482/0.1447, allocations: 141.8 kB / 450.7 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.943e-05/0.1448, allocations: 61.44 kB / 450.8 MB, free: 9.016 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.511e-05/0.1449, allocations: 21.72 kB / 450.8 MB, free: 8.992 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-06/0.1449, allocations: 8.062 kB / 450.8 MB, free: 8.984 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.486e-05/0.1449, allocations: 3.984 kB / 450.8 MB, free: 8.98 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.1449, allocations: 3.938 kB / 450.8 MB, free: 8.977 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001961/0.1451, allocations: 217.6 kB / 451 MB, free: 8.715 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.1451, allocations: 0 / 451 MB, free: 8.715 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.594e-05/0.1452, allocations: 11.94 kB / 451 MB, free: 8.703 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.1452, allocations: 0 / 451 MB, free: 8.703 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.1452, allocations: 0 / 451 MB, free: 8.703 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.1452, allocations: 7.984 kB / 451 MB, free: 8.695 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1452, allocations: 0 / 451 MB, free: 8.695 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002492/0.1455, allocations: 158.4 kB / 451.2 MB, free: 8.516 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.918e-05/0.1456, allocations: 104.9 kB / 451.3 MB, free: 8.395 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.032e-05/0.1456, allocations: 7.984 kB / 451.3 MB, free: 8.387 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.598e-05/0.1457, allocations: 4 kB / 451.3 MB, free: 8.383 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.026e-05/0.1457, allocations: 4 kB / 451.3 MB, free: 8.379 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.833e-05/0.1457, allocations: 11.92 kB / 451.3 MB, free: 8.367 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001861/0.1459, allocations: 192.6 kB / 451.5 MB, free: 8.184 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1459, allocations: 3.938 kB / 451.5 MB, free: 8.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002515/0.1462, allocations: 31.98 kB / 451.6 MB, free: 8.148 MB / 334.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: 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 (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.0009479/0.1472, allocations: 412.5 kB / 452 MB, free: 7.734 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002129/0.1474, allocations: 71.84 kB / 452 MB, free: 7.664 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.1474, allocations: 4.25 kB / 452 MB, free: 7.66 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.438e-05/0.1475, allocations: 27.98 kB / 452.1 MB, free: 7.633 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003856/0.1479, allocations: 66.23 kB / 452.1 MB, free: 7.57 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005001/0.1484, allocations: 300.8 kB / 452.4 MB, free: 7.246 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000286/0.1487, allocations: 0.736 MB / 453.2 MB, free: 6.484 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.734e-05/0.1488, allocations: 21.53 kB / 453.2 MB, free: 6.461 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.836e-05/0.1488, allocations: 15.44 kB / 453.2 MB, free: 6.445 MB / 334.1 MB Notification: Performance of SimCode: time 2e-07/0.1488, allocations: 0 / 453.2 MB, free: 6.445 MB / 334.1 MB Notification: Performance of Templates: time 0.006103/0.1549, allocations: 2.415 MB / 455.6 MB, free: 4.031 MB / 334.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches