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.001601/0.001601, allocations: 174.9 kB / 16.45 MB, free: 5.684 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.55/1.55, allocations: 205.4 MB / 222.6 MB, free: 9.109 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.0007783/0.0007783, allocations: 85.02 kB / 270.9 MB, free: 8.355 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.07697/0.07697, allocations: 12.6 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003788/0.0003789, allocations: 16 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07708/0.07748, allocations: 50.37 MB / 442.4 MB, free: 16.47 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample): time 0.001613/0.07912, allocations: 1.555 MB / 443.9 MB, free: 14.9 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001032/0.08017, allocations: 0.9331 MB / 444.9 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.589e-05/0.08027, allocations: 0 / 444.9 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004291/0.08071, allocations: 135.6 kB / 445 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001875/0.0809, allocations: 95.69 kB / 445.1 MB, free: 13.73 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003767/0.08129, allocations: 163.6 kB / 445.2 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001441/0.08145, allocations: 163.5 kB / 445.4 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.18e-05/0.08154, allocations: 25.55 kB / 445.4 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.375e-05/0.08162, allocations: 59.72 kB / 445.5 MB, free: 13.33 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.547e-05/0.0817, allocations: 59.69 kB / 445.5 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.874e-05/0.08172, allocations: 4 kB / 445.5 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.005e-05/0.08182, allocations: 47.92 kB / 445.6 MB, free: 13.22 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.287e-05/0.08187, allocations: 43.88 kB / 445.6 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.517e-05/0.08191, allocations: 53.58 kB / 445.7 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001382/0.08206, allocations: 140 kB / 445.8 MB, free: 12.98 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.08207, allocations: 0 / 445.8 MB, free: 12.98 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.91e-07/0.08207, allocations: 0 / 445.8 MB, free: 12.98 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.637e-06/0.08208, allocations: 0 / 445.8 MB, free: 12.98 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.0004868/0.08257, allocations: 492.1 kB / 446.3 MB, free: 12.45 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.692e-05/0.08261, allocations: 12.03 kB / 446.3 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.165e-05/0.08266, allocations: 19.81 kB / 446.3 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002186/0.08288, allocations: 261.5 kB / 446.6 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.497e-05/0.08291, allocations: 4 kB / 446.6 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.4e-05/0.08292, allocations: 8 kB / 446.6 MB, free: 12.1 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002363/0.08317, allocations: 142.7 kB / 446.7 MB, free: 11.94 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.094e-06/0.08318, allocations: 0 / 446.7 MB, free: 11.94 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.0832, allocations: 4 kB / 446.7 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.429e-06/0.08321, allocations: 0 / 446.7 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.822e-05/0.08331, allocations: 39.8 kB / 446.8 MB, free: 11.89 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003328/0.08365, allocations: 362.5 kB / 447.1 MB, free: 11.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001632/0.08382, allocations: 111.8 kB / 447.2 MB, free: 11.35 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.34e-05/0.08389, allocations: 46.56 kB / 447.3 MB, free: 11.29 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.26e-05/0.08393, allocations: 4 kB / 447.3 MB, free: 11.29 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000118/0.08405, allocations: 79.38 kB / 447.4 MB, free: 11.2 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.483e-06/0.08406, allocations: 0 / 447.4 MB, free: 11.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002733/0.08434, allocations: 141.2 kB / 447.5 MB, free: 11.05 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.289e-05/0.08439, allocations: 140.7 kB / 447.7 MB, free: 10.89 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001851/0.08458, allocations: 257 kB / 447.9 MB, free: 10.62 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.145e-05/0.0846, allocations: 33.7 kB / 447.9 MB, free: 10.59 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.659e-05/0.08466, allocations: 116.1 kB / 448 MB, free: 10.47 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.721e-05/0.08468, allocations: 23.73 kB / 448.1 MB, free: 10.45 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.047e-06/0.08469, allocations: 0 / 448.1 MB, free: 10.45 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.602e-05/0.08474, allocations: 326.8 kB / 448.4 MB, free: 10.12 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.16e-05/0.0848, allocations: 23.98 kB / 448.4 MB, free: 10.09 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.145e-05/0.08487, allocations: 66 kB / 448.5 MB, free: 10.01 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.833e-05/0.08493, allocations: 31.92 kB / 448.5 MB, free: 9.977 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.08494, allocations: 4.031 kB / 448.5 MB, free: 9.973 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001576/0.0851, allocations: 109.4 kB / 448.6 MB, free: 9.859 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.154e-05/0.08512, allocations: 7.984 kB / 448.6 MB, free: 9.852 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.08513, allocations: 0 / 448.6 MB, free: 9.852 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.084e-05/0.08515, allocations: 4 kB / 448.6 MB, free: 9.848 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.883e-05/0.08522, allocations: 12 kB / 448.6 MB, free: 9.836 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.08523, allocations: 4 kB / 448.6 MB, free: 9.832 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.434e-05/0.0853, allocations: 15.97 kB / 448.7 MB, free: 9.816 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.604e-06/0.08532, allocations: 8 kB / 448.7 MB, free: 9.809 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 8.196e-05/0.08541, allocations: 145.5 kB / 448.8 MB, free: 9.656 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.534e-05/0.08547, allocations: 57.52 kB / 448.9 MB, free: 9.594 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.981e-05/0.08551, allocations: 25.7 kB / 448.9 MB, free: 9.57 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.08552, allocations: 3.938 kB / 448.9 MB, free: 9.566 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.08553, allocations: 0 / 448.9 MB, free: 9.566 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.08554, allocations: 0 / 448.9 MB, free: 9.566 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000115/0.08566, allocations: 233.5 kB / 449.1 MB, free: 9.289 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.08567, allocations: 4.062 kB / 449.1 MB, free: 9.285 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.441e-05/0.0857, allocations: 12.23 kB / 449.1 MB, free: 9.273 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.0857, allocations: 0 / 449.1 MB, free: 9.273 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.297e-06/0.08572, allocations: 4 kB / 449.1 MB, free: 9.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.08572, allocations: 4 kB / 449.2 MB, free: 9.266 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.08573, allocations: 0 / 449.2 MB, free: 9.266 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001741/0.08591, allocations: 170.4 kB / 449.3 MB, free: 9.074 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.629e-05/0.08597, allocations: 104.9 kB / 449.4 MB, free: 8.953 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.505e-05/0.08601, allocations: 4 kB / 449.4 MB, free: 8.949 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.014e-05/0.08607, allocations: 7.984 kB / 449.4 MB, free: 8.941 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.331e-05/0.08611, allocations: 4 kB / 449.4 MB, free: 8.938 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.164e-05/0.08613, allocations: 4 kB / 449.4 MB, free: 8.934 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001286/0.08626, allocations: 196.5 kB / 449.6 MB, free: 8.742 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.08627, allocations: 0 / 449.6 MB, free: 8.742 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002115/0.08648, allocations: 31.98 kB / 449.7 MB, free: 8.711 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.0006849/0.08718, allocations: 417.1 kB / 450.1 MB, free: 8.293 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001865/0.08737, allocations: 71.84 kB / 450.1 MB, free: 8.223 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.08739, allocations: 4 kB / 450.1 MB, free: 8.219 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.577e-05/0.08745, allocations: 23.98 kB / 450.2 MB, free: 8.195 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003198/0.08777, allocations: 56.7 kB / 450.2 MB, free: 8.141 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003831/0.08817, allocations: 373.5 kB / 450.6 MB, free: 7.738 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001204/0.0883, allocations: 0.7244 MB / 451.3 MB, free: 6.988 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.248e-05/0.08834, allocations: 23.44 kB / 451.3 MB, free: 6.965 MB / 298.7 MB Notification: Performance of SimCode: time 2.51e-07/0.08835, allocations: 0 / 451.3 MB, free: 6.965 MB / 298.7 MB Notification: Performance of Templates: time 0.003323/0.09167, allocations: 2.563 MB / 453.9 MB, free: 4.398 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