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/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/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: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SuperSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SuperSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009802/0.0009803, allocations: 178.6 kB / 16.77 MB, free: 4.926 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.176/1.176, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.0006573/0.0006573, allocations: 88.94 kB / 271.3 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.05776/0.05776, allocations: 12.2 MB / 331.8 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003494/0.0003495, allocations: 19.98 kB / 392.2 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06017/0.06054, allocations: 50.28 MB / 442.5 MB, free: 16.56 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample): time 0.001586/0.06215, allocations: 1.544 MB / 444 MB, free: 15 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001057/0.06323, allocations: 0.9253 MB / 445 MB, free: 14.07 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001087/0.06336, allocations: 3.938 kB / 445 MB, free: 14.07 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004332/0.0638, allocations: 127.7 kB / 445.1 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000207/0.06402, allocations: 95.69 kB / 445.2 MB, free: 13.85 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000397/0.06443, allocations: 167.5 kB / 445.4 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000165/0.0646, allocations: 163.5 kB / 445.5 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.834e-05/0.06469, allocations: 29.55 kB / 445.5 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001205/0.06482, allocations: 75.62 kB / 445.6 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.283e-05/0.06491, allocations: 63.69 kB / 445.7 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.975e-05/0.06494, allocations: 4 kB / 445.7 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001003/0.06505, allocations: 35.98 kB / 445.7 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.624e-05/0.0651, allocations: 35.84 kB / 445.8 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.101e-05/0.06517, allocations: 85.3 kB / 445.8 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001496/0.06532, allocations: 144 kB / 446 MB, free: 13.05 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.06533, allocations: 0 / 446 MB, free: 13.05 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.06534, allocations: 0 / 446 MB, free: 13.05 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.606e-06/0.06535, allocations: 0 / 446 MB, free: 13.05 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.0004929/0.06585, allocations: 0.4885 MB / 446.5 MB, free: 12.51 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.164e-05/0.06589, allocations: 12.03 kB / 446.5 MB, free: 12.5 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.141e-05/0.06592, allocations: 34.73 kB / 446.5 MB, free: 12.46 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.658e-05/0.06596, allocations: 20.75 kB / 446.5 MB, free: 12.44 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002278/0.0662, allocations: 258.9 kB / 446.8 MB, free: 12.14 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.282e-05/0.06622, allocations: 4.375 kB / 446.8 MB, free: 12.14 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.54e-05/0.06624, allocations: 11.88 kB / 446.8 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000244/0.06649, allocations: 162.6 kB / 447 MB, free: 11.94 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.565e-06/0.06651, allocations: 0 / 447 MB, free: 11.94 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.051e-05/0.06652, allocations: 3.938 kB / 447 MB, free: 11.94 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.06654, allocations: 11.98 kB / 447 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.189e-05/0.06662, allocations: 39.84 kB / 447 MB, free: 11.89 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003324/0.06696, allocations: 358.4 kB / 447.4 MB, free: 11.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001572/0.06713, allocations: 111.9 kB / 447.5 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.148e-05/0.0672, allocations: 42.56 kB / 447.5 MB, free: 11.29 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.198e-05/0.06723, allocations: 0 / 447.5 MB, free: 11.29 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001248/0.06736, allocations: 75.33 kB / 447.6 MB, free: 11.21 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.242e-06/0.06737, allocations: 4 kB / 447.6 MB, free: 11.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002695/0.06765, allocations: 137.3 kB / 447.7 MB, free: 11.06 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.955e-05/0.06769, allocations: 144.4 kB / 447.9 MB, free: 10.89 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000182/0.06788, allocations: 260.9 kB / 448.1 MB, free: 10.62 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.126e-05/0.0679, allocations: 29.7 kB / 448.1 MB, free: 10.59 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.272e-05/0.06795, allocations: 116.4 kB / 448.3 MB, free: 10.47 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.686e-05/0.06797, allocations: 19.81 kB / 448.3 MB, free: 10.45 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.268e-06/0.06798, allocations: 0 / 448.3 MB, free: 10.45 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.988e-05/0.06803, allocations: 334.8 kB / 448.6 MB, free: 10.12 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.056e-05/0.06808, allocations: 20 kB / 448.6 MB, free: 10.1 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.968e-05/0.06815, allocations: 65.98 kB / 448.7 MB, free: 10.01 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.319e-05/0.06825, allocations: 76.27 kB / 448.8 MB, free: 9.922 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.06826, allocations: 4 kB / 448.8 MB, free: 9.918 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001542/0.06842, allocations: 113.4 kB / 448.9 MB, free: 9.801 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.06844, allocations: 8.75 kB / 448.9 MB, free: 9.793 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.06845, allocations: 4 kB / 448.9 MB, free: 9.789 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.046e-05/0.06846, allocations: 0 / 448.9 MB, free: 9.789 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.341e-05/0.06853, allocations: 15.98 kB / 448.9 MB, free: 9.773 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.06854, allocations: 3.938 kB / 448.9 MB, free: 9.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.117e-05/0.06861, allocations: 11.84 kB / 448.9 MB, free: 9.758 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.535e-06/0.06862, allocations: 4 kB / 448.9 MB, free: 9.754 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 7.956e-05/0.06871, allocations: 146.7 kB / 449.1 MB, free: 9.602 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.251e-05/0.06877, allocations: 69.44 kB / 449.1 MB, free: 9.527 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.838e-05/0.06882, allocations: 25.7 kB / 449.2 MB, free: 9.504 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.06883, allocations: 3.938 kB / 449.2 MB, free: 9.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.06884, allocations: 8 kB / 449.2 MB, free: 9.492 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.06884, allocations: 3.938 kB / 449.2 MB, free: 9.488 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001124/0.06896, allocations: 221.7 kB / 449.4 MB, free: 9.223 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.06897, allocations: 0 / 449.4 MB, free: 9.223 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.315e-05/0.069, allocations: 4 kB / 449.4 MB, free: 9.219 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.237e-06/0.069, allocations: 7.984 kB / 449.4 MB, free: 9.211 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.087e-06/0.06902, allocations: 4 kB / 449.4 MB, free: 9.207 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.06902, allocations: 4.062 kB / 449.4 MB, free: 9.203 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.06903, allocations: 4 kB / 449.4 MB, free: 9.199 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001678/0.0692, allocations: 154.4 kB / 449.6 MB, free: 9.023 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.487e-05/0.06927, allocations: 108.9 kB / 449.7 MB, free: 8.898 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.415e-05/0.0693, allocations: 4 kB / 449.7 MB, free: 8.895 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.8e-05/0.06936, allocations: 15.98 kB / 449.7 MB, free: 8.879 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.115e-05/0.0694, allocations: 11.88 kB / 449.7 MB, free: 8.867 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.099e-05/0.06941, allocations: 4 kB / 449.7 MB, free: 8.863 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001223/0.06954, allocations: 192.5 kB / 449.9 MB, free: 8.676 MB / 298.7 MB Notification: Performance of sort global known variables: time 2e-07/0.06955, allocations: 0 / 449.9 MB, free: 8.676 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000213/0.06977, allocations: 24 kB / 449.9 MB, free: 8.652 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.0009128/0.07068, allocations: 1.004 MB / 450.9 MB, free: 7.613 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001539/0.07085, allocations: 67.91 kB / 451 MB, free: 7.547 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.07086, allocations: 0 / 451 MB, free: 7.547 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.433e-05/0.07092, allocations: 24.17 kB / 451 MB, free: 7.523 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003255/0.07125, allocations: 60.31 kB / 451.1 MB, free: 7.465 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00106/0.07232, allocations: 1.001 MB / 452.1 MB, free: 6.391 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001112/0.07245, allocations: 0.7283 MB / 452.8 MB, free: 5.637 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.028e-05/0.07251, allocations: 47.42 kB / 452.9 MB, free: 5.594 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.07252, allocations: 0 / 452.9 MB, free: 5.594 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.816/2.889, allocations: 2.99 MB / 455.8 MB, free: 2.598 MB / 298.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SuperSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SuperSample.fmu > 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/jenkins1/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) "" Variables in the reference:Time,sample.y,superSample.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.u,sample.y,superSample.factor,superSample.inferFactor,superSample.u,superSample.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nout,table.combiTimeTable.offset[1],table.combiTimeTable.p_offset[1],table.combiTimeTable.shiftTime,table.combiTimeTable.smoothness,table.combiTimeTable.startTime,table.combiTimeTable.t_max,table.combiTimeTable.t_maxScaled,table.combiTimeTable.t_min,table.combiTimeTable.t_minScaled,table.combiTimeTable.tableOnFile,table.combiTimeTable.table[1,1],table.combiTimeTable.table[1,2],table.combiTimeTable.table[2,1],table.combiTimeTable.table[2,2],table.combiTimeTable.table[3,1],table.combiTimeTable.table[3,2],table.combiTimeTable.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.timeScaled,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.combiTimeTable.y[1],table.extrapolation,table.n,table.realToBoolean.threshold,table.realToBoolean.u,table.realToBoolean.y,table.shiftTime,table.startTime,table.startValue,table.table[1],table.table[2],table.y,time