Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001021/0.001021, allocations: 192.3 kB / 17.38 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 226.5 MB / 244.7 MB, free: 8.191 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007865/0.0007867, allocations: 97.28 kB / 296.7 MB, free: 6.871 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002608/0.0002609, allocations: 4 kB / 356.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3383/0.3386, allocations: 51.3 MB / 408.1 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.002161/0.3409, allocations: 1.588 MB / 409.7 MB, free: 26.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001487/0.3424, allocations: 1.094 MB / 410.8 MB, free: 24.97 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001191/0.3425, allocations: 8.469 kB / 410.8 MB, free: 24.96 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005928/0.3431, allocations: 137.5 kB / 411 MB, free: 24.83 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000286/0.3434, allocations: 127.6 kB / 411.1 MB, free: 24.71 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004405/0.3438, allocations: 176 kB / 411.3 MB, free: 24.54 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001841/0.344, allocations: 164.3 kB / 411.4 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001237/0.3442, allocations: 39.84 kB / 411.5 MB, free: 24.34 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.837e-05/0.3443, allocations: 63.66 kB / 411.5 MB, free: 24.28 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.34e-05/0.3444, allocations: 63.69 kB / 411.6 MB, free: 24.22 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.867e-05/0.3444, allocations: 0 / 411.6 MB, free: 24.22 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001335/0.3445, allocations: 44.75 kB / 411.6 MB, free: 24.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.011e-05/0.3446, allocations: 39.83 kB / 411.7 MB, free: 24.14 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.56e-05/0.3447, allocations: 82 kB / 411.7 MB, free: 24.05 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001901/0.3449, allocations: 160.8 kB / 411.9 MB, free: 23.89 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.857e-06/0.3449, allocations: 8.594 kB / 411.9 MB, free: 23.89 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3449, allocations: 1.031 kB / 411.9 MB, free: 23.89 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.3449, allocations: 0 / 411.9 MB, free: 23.89 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.0006577/0.3456, allocations: 496.3 kB / 412.4 MB, free: 23.35 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/0.3456, allocations: 8.031 kB / 412.4 MB, free: 23.34 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.115e-05/0.3457, allocations: 42.73 kB / 412.4 MB, free: 23.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.18e-05/0.3457, allocations: 16.75 kB / 412.5 MB, free: 23.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002743/0.346, allocations: 266.7 kB / 412.7 MB, free: 22.97 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.835e-05/0.346, allocations: 8.375 kB / 412.7 MB, free: 22.96 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.933e-05/0.3461, allocations: 11.92 kB / 412.7 MB, free: 22.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003148/0.3464, allocations: 146.7 kB / 412.9 MB, free: 22.78 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.3464, allocations: 0 / 412.9 MB, free: 22.78 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.267e-05/0.3464, allocations: 4 kB / 412.9 MB, free: 22.78 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.67e-06/0.3464, allocations: 0 / 412.9 MB, free: 22.78 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.968e-05/0.3465, allocations: 31.92 kB / 412.9 MB, free: 22.75 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004217/0.347, allocations: 370.4 kB / 413.3 MB, free: 22.33 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001799/0.3472, allocations: 111.9 kB / 413.4 MB, free: 22.19 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.902e-05/0.3472, allocations: 46.56 kB / 413.4 MB, free: 22.14 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.718e-05/0.3473, allocations: 0 / 413.4 MB, free: 22.14 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001412/0.3474, allocations: 75.33 kB / 413.5 MB, free: 22.05 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.292e-06/0.3474, allocations: 4 kB / 413.5 MB, free: 22.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003203/0.3478, allocations: 137.4 kB / 413.6 MB, free: 21.91 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.611e-05/0.3478, allocations: 132.5 kB / 413.8 MB, free: 21.75 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002228/0.348, allocations: 280.9 kB / 414 MB, free: 21.46 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.311e-05/0.3481, allocations: 25.7 kB / 414.1 MB, free: 21.43 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.078e-05/0.3481, allocations: 124.1 kB / 414.2 MB, free: 21.31 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.121e-05/0.3482, allocations: 20 kB / 414.2 MB, free: 21.29 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.709e-06/0.3482, allocations: 7.938 kB / 414.2 MB, free: 21.28 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.435e-05/0.3482, allocations: 330.8 kB / 414.5 MB, free: 20.95 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.169e-05/0.3483, allocations: 20 kB / 414.6 MB, free: 20.93 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.657e-05/0.3484, allocations: 65.98 kB / 414.6 MB, free: 20.84 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001154/0.3485, allocations: 80.5 kB / 414.7 MB, free: 20.75 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.3485, allocations: 0 / 414.7 MB, free: 20.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001617/0.3487, allocations: 113.4 kB / 414.8 MB, free: 20.63 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.3487, allocations: 4 kB / 414.8 MB, free: 20.63 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.3487, allocations: 4.125 kB / 414.8 MB, free: 20.62 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.3487, allocations: 7.984 kB / 414.8 MB, free: 20.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.406e-05/0.3488, allocations: 12 kB / 414.8 MB, free: 20.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/0.3488, allocations: 7.938 kB / 414.9 MB, free: 20.6 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.143e-05/0.3489, allocations: 7.938 kB / 414.9 MB, free: 20.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.757e-06/0.3489, allocations: 4 kB / 414.9 MB, free: 20.59 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,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,subSample1.y,subSample1.u,sample1.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.0001013/0.349, allocations: 137.8 kB / 415 MB, free: 20.44 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.718e-05/0.3491, allocations: 77.28 kB / 415.1 MB, free: 20.36 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.212e-05/0.3491, allocations: 25.7 kB / 415.1 MB, free: 20.33 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.3492, allocations: 0 / 415.1 MB, free: 20.33 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.453e-06/0.3492, allocations: 4 kB / 415.1 MB, free: 20.33 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.092e-06/0.3492, allocations: 3.938 kB / 415.1 MB, free: 20.32 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001655/0.3493, allocations: 221.6 kB / 415.3 MB, free: 20.06 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.3494, allocations: 4 kB / 415.3 MB, free: 20.05 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.221e-05/0.3494, allocations: 4 kB / 415.3 MB, free: 20.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.3494, allocations: 0 / 415.3 MB, free: 20.05 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/0.3494, allocations: 4 kB / 415.3 MB, free: 20.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.3494, allocations: 4.062 kB / 415.3 MB, free: 20.04 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.3494, allocations: 4 kB / 415.3 MB, free: 20.04 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002018/0.3496, allocations: 158.4 kB / 415.5 MB, free: 19.86 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.625e-05/0.3497, allocations: 112.8 kB / 415.6 MB, free: 19.73 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.801e-05/0.3497, allocations: 4 kB / 415.6 MB, free: 19.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.82e-05/0.3498, allocations: 11.94 kB / 415.6 MB, free: 19.71 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.335e-05/0.3499, allocations: 15.86 kB / 415.6 MB, free: 19.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.399e-05/0.3499, allocations: 4 kB / 415.6 MB, free: 19.7 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001495/0.35, allocations: 200.5 kB / 415.8 MB, free: 19.5 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3501, allocations: 0 / 415.8 MB, free: 19.5 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002208/0.3503, allocations: 28 kB / 415.9 MB, free: 19.48 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,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.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.001114/0.3514, allocations: 0.9969 MB / 416.9 MB, free: 18.59 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001754/0.3516, allocations: 63.91 kB / 416.9 MB, free: 18.53 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3516, allocations: 0 / 416.9 MB, free: 18.53 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.209e-05/0.3517, allocations: 28.17 kB / 417 MB, free: 18.5 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003641/0.352, allocations: 63.98 kB / 417 MB, free: 18.45 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001246/0.3533, allocations: 1.023 MB / 418 MB, free: 17.34 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001676/0.3535, allocations: 0.7399 MB / 418.8 MB, free: 16.57 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.885e-05/0.3535, allocations: 43.42 kB / 418.8 MB, free: 16.53 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3536, allocations: 0 / 418.8 MB, free: 16.53 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.077/3.431, allocations: 3.086 MB / 421.9 MB, free: 13.45 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/SubSample/SubSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,subSample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.u,sample1.y,subSample1.factor,subSample1.inferFactor,subSample1.u,subSample1.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.isCsvExt,table.combiTimeTable.nHeaderLines,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