Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001784/0.001784, allocations: 107.8 kB / 17.06 MB, free: 5.828 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.001917/0.001917, allocations: 195.9 kB / 18 MB, free: 4.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.47/1.47, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 47.91 kB / 350.8 MB, free: 3.773 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2573/0.2588, allocations: 49.44 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003401/0.2622, allocations: 1.874 MB / 402.1 MB, free: 6.953 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001938/0.2642, allocations: 1.122 MB / 403.2 MB, free: 5.824 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000107/0.2643, allocations: 7.938 kB / 403.2 MB, free: 5.816 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003101/0.2646, allocations: 71.64 kB / 403.3 MB, free: 5.746 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002785/0.2649, allocations: 91.59 kB / 403.4 MB, free: 5.656 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007411/0.2657, allocations: 252.6 kB / 403.6 MB, free: 5.414 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002512/0.2659, allocations: 171.5 kB / 403.8 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001125/0.2661, allocations: 29.55 kB / 403.8 MB, free: 5.219 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001161/0.2662, allocations: 71.69 kB / 403.9 MB, free: 5.148 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001226/0.2663, allocations: 75.69 kB / 404 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.767e-05/0.2664, allocations: 8 kB / 404 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001596/0.2665, allocations: 71.89 kB / 404.1 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.931e-05/0.2666, allocations: 51.83 kB / 404.1 MB, free: 4.945 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.158e-05/0.2667, allocations: 71.48 kB / 404.2 MB, free: 4.875 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003548/0.2671, allocations: 241.9 kB / 404.4 MB, free: 4.641 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2671, allocations: 0 / 404.4 MB, free: 4.641 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2671, allocations: 0 / 404.4 MB, free: 4.641 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.2671, allocations: 4 kB / 404.4 MB, free: 4.637 MB / 318.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.0008046/0.2679, allocations: 0.5348 MB / 405 MB, free: 4.047 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.268, allocations: 8.031 kB / 405 MB, free: 4.039 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.151e-05/0.268, allocations: 50.72 kB / 405 MB, free: 3.98 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.524e-05/0.2681, allocations: 20.8 kB / 405 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003998/0.2685, allocations: 291.8 kB / 405.3 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.125e-05/0.2685, allocations: 4.375 kB / 405.3 MB, free: 3.633 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.701e-05/0.2685, allocations: 7.938 kB / 405.3 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003441/0.2689, allocations: 155.6 kB / 405.5 MB, free: 3.445 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.2689, allocations: 0 / 405.5 MB, free: 3.445 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.622e-05/0.2689, allocations: 8 kB / 405.5 MB, free: 3.438 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.2689, allocations: 0 / 405.5 MB, free: 3.438 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001164/0.2691, allocations: 35.91 kB / 405.5 MB, free: 3.402 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005255/0.2696, allocations: 386.4 kB / 405.9 MB, free: 2.969 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002705/0.2699, allocations: 115.9 kB / 406 MB, free: 2.828 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.787e-05/0.27, allocations: 54.44 kB / 406.1 MB, free: 2.766 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.733e-05/0.27, allocations: 4.078 kB / 406.1 MB, free: 2.762 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001821/0.2702, allocations: 83.36 kB / 406.2 MB, free: 2.668 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.382e-06/0.2702, allocations: 0 / 406.2 MB, free: 2.668 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004045/0.2706, allocations: 161.4 kB / 406.3 MB, free: 2.504 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001122/0.2708, allocations: 162.2 kB / 406.5 MB, free: 2.309 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003652/0.2711, allocations: 330.6 kB / 406.8 MB, free: 1.977 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.792e-05/0.2712, allocations: 25.7 kB / 406.8 MB, free: 1.945 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.952e-05/0.2713, allocations: 124.1 kB / 406.9 MB, free: 1.82 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.986e-05/0.2713, allocations: 19.89 kB / 407 MB, free: 1.801 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.541e-05/0.2714, allocations: 29.92 kB / 407 MB, free: 1.766 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002494/0.2716, allocations: 338.8 kB / 407.3 MB, free: 1.426 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.682e-05/0.2717, allocations: 23.98 kB / 407.3 MB, free: 1.402 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001253/0.2718, allocations: 86.78 kB / 407.4 MB, free: 1.293 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001686/0.272, allocations: 88.16 kB / 407.5 MB, free: 1.191 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.272, allocations: 4 kB / 407.5 MB, free: 1.188 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000233/0.2723, allocations: 113.5 kB / 407.6 MB, free: 1.07 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.2723, allocations: 4 kB / 407.6 MB, free: 1.066 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.2723, allocations: 4.125 kB / 407.6 MB, free: 1.062 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.2723, allocations: 4 kB / 407.6 MB, free: 1.059 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001122/0.2725, allocations: 23.92 kB / 407.7 MB, free: 1.035 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.326e-06/0.2725, allocations: 3.984 kB / 407.7 MB, free: 1.031 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.119e-05/0.2726, allocations: 19.83 kB / 407.7 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.466e-05/0.2726, allocations: 7.984 kB / 407.7 MB, free: 1.004 MB / 318.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,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000155/0.2727, allocations: 146.5 kB / 407.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001029/0.2729, allocations: 77.42 kB / 407.9 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.519e-05/0.2729, allocations: 25.78 kB / 407.9 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.217e-06/0.2729, allocations: 3.984 kB / 407.9 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-06/0.2729, allocations: 4 kB / 407.9 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.2729, allocations: 3.938 kB / 408 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002276/0.2732, allocations: 233.9 kB / 408.2 MB, free: 464 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.277e-06/0.2732, allocations: 4 kB / 408.2 MB, free: 460 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.183e-05/0.2733, allocations: 8 kB / 408.2 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/0.2733, allocations: 3.984 kB / 408.2 MB, free: 448 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.251e-05/0.2733, allocations: 8 kB / 408.2 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.2733, allocations: 3.938 kB / 408.2 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.2733, allocations: 8 kB / 408.2 MB, free: 428 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002756/0.2736, allocations: 162.5 kB / 408.4 MB, free: 240 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001047/0.2737, allocations: 112.9 kB / 408.5 MB, free: 108 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.446e-05/0.2737, allocations: 11.98 kB / 408.5 MB, free: 96 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.051e-05/0.2738, allocations: 48 / 408.5 MB, free: 96 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.234e-05/0.2739, allocations: 28 kB / 408.5 MB, free: 68 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.353e-05/0.2739, allocations: 3.938 kB / 408.5 MB, free: 64 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002656/0.2742, allocations: 241.9 kB / 408.8 MB, free: 15.82 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2742, allocations: 0 / 408.8 MB, free: 15.82 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002609/0.2744, allocations: 31.98 kB / 408.8 MB, free: 15.79 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,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 (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.00201/0.2765, allocations: 1.026 MB / 409.8 MB, free: 14.89 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002401/0.2767, allocations: 71.89 kB / 409.9 MB, free: 14.82 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.2767, allocations: 3.938 kB / 409.9 MB, free: 14.82 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.693e-05/0.2768, allocations: 31.98 kB / 409.9 MB, free: 14.79 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004155/0.2772, allocations: 60.81 kB / 410 MB, free: 14.73 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002756/0.28, allocations: 2.204 MB / 412.2 MB, free: 12.41 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000383/0.2804, allocations: 0.7358 MB / 412.9 MB, free: 11.64 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.738e-05/0.2805, allocations: 25.55 kB / 413 MB, free: 11.62 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001065/0.2806, allocations: 59.41 kB / 413 MB, free: 11.56 MB / 334.1 MB Notification: Performance of SimCode: time 6.41e-07/0.2806, allocations: 0 / 413 MB, free: 11.56 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02677/0.3074, allocations: 5.215 MB / 418.2 MB, free: 6.492 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.235/8.542, allocations: 12.44 kB / 418.2 MB, free: 6.484 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches