Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001398/0.001398, allocations: 122.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001469/0.001469, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 227.4 MB / 247 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002656/0.002656, allocations: 67.88 kB / 358.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2635/0.2662, allocations: 50.54 MB / 408.8 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003319/0.2695, allocations: 1.894 MB / 410.7 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002117/0.2717, allocations: 1.262 MB / 412 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001135/0.2718, allocations: 7.938 kB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000303/0.2721, allocations: 71.66 kB / 412.1 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003523/0.2725, allocations: 135.4 kB / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000648/0.2732, allocations: 223.3 kB / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002556/0.2734, allocations: 175.5 kB / 412.6 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000115/0.2736, allocations: 29.55 kB / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001166/0.2737, allocations: 79.62 kB / 412.7 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001232/0.2738, allocations: 75.69 kB / 412.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.761e-05/0.2738, allocations: 8 kB / 412.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001855/0.274, allocations: 71.95 kB / 412.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.407e-05/0.2741, allocations: 55.77 kB / 412.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.118e-05/0.2742, allocations: 79.42 kB / 413 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003936/0.2746, allocations: 250 kB / 413.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2747, allocations: 0 / 413.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2747, allocations: 0 / 413.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.2747, allocations: 0 / 413.2 MB, free: 13.07 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.0008793/0.2756, allocations: 0.5426 MB / 413.8 MB, free: 12.47 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.2756, allocations: 8.031 kB / 413.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.11e-05/0.2757, allocations: 46.67 kB / 413.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.301e-05/0.2757, allocations: 20.8 kB / 413.8 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004498/0.2762, allocations: 291.8 kB / 414.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/0.2762, allocations: 12.31 kB / 414.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.689e-05/0.2762, allocations: 7.938 kB / 414.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003686/0.2766, allocations: 159 kB / 414.3 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.2766, allocations: 3.938 kB / 414.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.587e-05/0.2766, allocations: 4 kB / 414.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.483e-06/0.2767, allocations: 0 / 414.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001183/0.2768, allocations: 35.97 kB / 414.3 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005955/0.2774, allocations: 398.3 kB / 414.7 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002649/0.2777, allocations: 115.9 kB / 414.8 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.725e-05/0.2778, allocations: 46.56 kB / 414.9 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.238e-05/0.2778, allocations: 7.984 kB / 414.9 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001937/0.278, allocations: 75.33 kB / 415 MB, free: 11.09 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.583e-06/0.278, allocations: 0 / 415 MB, free: 11.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004403/0.2785, allocations: 157.4 kB / 415.1 MB, free: 10.93 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001202/0.2786, allocations: 162.5 kB / 415.3 MB, free: 10.73 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004081/0.279, allocations: 342.6 kB / 415.6 MB, free: 10.39 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.027e-05/0.2791, allocations: 29.64 kB / 415.6 MB, free: 10.35 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001187/0.2792, allocations: 132.1 kB / 415.8 MB, free: 10.22 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.944e-05/0.2792, allocations: 19.89 kB / 415.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.67e-05/0.2793, allocations: 25.72 kB / 415.8 MB, free: 10.17 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.2794, allocations: 334.8 kB / 416.1 MB, free: 9.832 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.69e-05/0.2795, allocations: 31.92 kB / 416.2 MB, free: 9.801 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001279/0.2797, allocations: 78.86 kB / 416.2 MB, free: 9.699 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001741/0.2798, allocations: 92.2 kB / 416.3 MB, free: 9.594 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.2799, allocations: 0 / 416.3 MB, free: 9.594 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002537/0.2801, allocations: 121.4 kB / 416.5 MB, free: 9.469 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.2801, allocations: 8 kB / 416.5 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.2802, allocations: 0 / 416.5 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.2802, allocations: 4 kB / 416.5 MB, free: 9.457 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001115/0.2803, allocations: 15.98 kB / 416.5 MB, free: 9.441 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.875e-06/0.2803, allocations: 8.125 kB / 416.5 MB, free: 9.434 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.426e-05/0.2804, allocations: 15.88 kB / 416.5 MB, free: 9.418 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.173e-05/0.2804, allocations: 4 kB / 416.5 MB, free: 9.414 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,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.0001677/0.2806, allocations: 157.7 kB / 416.7 MB, free: 9.25 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.372e-05/0.2807, allocations: 65.52 kB / 416.7 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.129e-05/0.2808, allocations: 25.7 kB / 416.7 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.2808, allocations: 4 kB / 416.8 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.2808, allocations: 64 / 416.8 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.094e-06/0.2808, allocations: 15.86 kB / 416.8 MB, free: 9.133 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002513/0.2811, allocations: 237.6 kB / 417 MB, free: 8.852 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.594e-05/0.2811, allocations: 4 kB / 417 MB, free: 8.848 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.834e-05/0.2812, allocations: 20.23 kB / 417 MB, free: 8.828 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.2812, allocations: 3.938 kB / 417 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.634e-05/0.2812, allocations: 8 kB / 417 MB, free: 8.816 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.2812, allocations: 0 / 417 MB, free: 8.816 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.2812, allocations: 0 / 417 MB, free: 8.816 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002961/0.2815, allocations: 170.5 kB / 417.2 MB, free: 8.625 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001282/0.2817, allocations: 116.9 kB / 417.3 MB, free: 8.492 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.652e-05/0.2817, allocations: 4 kB / 417.3 MB, free: 8.488 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.2e-05/0.2818, allocations: 0 / 417.3 MB, free: 8.488 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.443e-05/0.2818, allocations: 15.92 kB / 417.3 MB, free: 8.473 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.828e-05/0.2819, allocations: 4 kB / 417.3 MB, free: 8.469 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002766/0.2821, allocations: 249.9 kB / 417.6 MB, free: 8.227 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2821, allocations: 4 kB / 417.6 MB, free: 8.223 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003009/0.2824, allocations: 35.94 kB / 417.6 MB, free: 8.188 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.00212/0.2846, allocations: 1.008 MB / 418.6 MB, free: 7.285 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002451/0.2848, allocations: 71.91 kB / 418.7 MB, free: 7.215 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/0.2849, allocations: 0 / 418.7 MB, free: 7.215 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.46e-05/0.285, allocations: 31.92 kB / 418.7 MB, free: 7.184 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004349/0.2854, allocations: 86.2 kB / 418.8 MB, free: 7.098 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002938/0.2883, allocations: 2.217 MB / 421 MB, free: 4.758 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004228/0.2888, allocations: 0.7358 MB / 421.8 MB, free: 3.996 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001009/0.2889, allocations: 33.52 kB / 421.8 MB, free: 3.965 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001207/0.289, allocations: 59.42 kB / 421.9 MB, free: 3.906 MB / 334.1 MB Notification: Performance of SimCode: time 4e-07/0.289, allocations: 4 kB / 421.9 MB, free: 3.902 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02896/0.318, allocations: 5.301 MB / 427.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.262/8.58, allocations: 10.19 kB / 427.2 MB, free: 14.73 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches