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.001712/0.001712, allocations: 118.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00226/0.00226, allocations: 198 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.393/1.393, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 63.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2591/0.2603, allocations: 50.55 MB / 408.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.002988/0.2633, allocations: 1.883 MB / 410.6 MB, free: 15.65 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001873/0.2652, allocations: 1.266 MB / 411.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001112/0.2653, allocations: 4 kB / 411.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003018/0.2657, allocations: 67.66 kB / 412 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003327/0.266, allocations: 131.4 kB / 412.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006243/0.2667, allocations: 223.3 kB / 412.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002258/0.2669, allocations: 179.5 kB / 412.5 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001681/0.2671, allocations: 33.55 kB / 412.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001038/0.2672, allocations: 79.62 kB / 412.6 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001149/0.2673, allocations: 79.67 kB / 412.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.097e-05/0.2673, allocations: 8 kB / 412.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001444/0.2675, allocations: 63.97 kB / 412.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.906e-05/0.2676, allocations: 59.77 kB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.74e-05/0.2676, allocations: 79.42 kB / 412.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003244/0.268, allocations: 240.9 kB / 413.1 MB, free: 13.15 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.268, allocations: 0 / 413.1 MB, free: 13.15 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.268, allocations: 0 / 413.1 MB, free: 13.15 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.091e-06/0.268, allocations: 0 / 413.1 MB, free: 13.15 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.0006766/0.2687, allocations: 0.5467 MB / 413.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.2687, allocations: 8.031 kB / 413.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.822e-05/0.2688, allocations: 42.73 kB / 413.7 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.362e-05/0.2688, allocations: 20.66 kB / 413.7 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004318/0.2693, allocations: 291.5 kB / 414 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.066e-05/0.2693, allocations: 384 / 414 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.18e-05/0.2693, allocations: 19.94 kB / 414 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003151/0.2696, allocations: 163 kB / 414.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.2697, allocations: 0 / 414.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.223e-05/0.2697, allocations: 3.984 kB / 414.2 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.439e-06/0.2697, allocations: 0 / 414.2 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001163/0.2698, allocations: 43.91 kB / 414.2 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004775/0.2703, allocations: 382.4 kB / 414.6 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002395/0.2706, allocations: 119.9 kB / 414.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.728e-05/0.2707, allocations: 50.55 kB / 414.8 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.502e-05/0.2707, allocations: 0 / 414.8 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001696/0.2709, allocations: 79.33 kB / 414.9 MB, free: 11.18 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.744e-06/0.2709, allocations: 4 kB / 414.9 MB, free: 11.17 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003808/0.2713, allocations: 149.3 kB / 415 MB, free: 11.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.952e-05/0.2713, allocations: 158.2 kB / 415.2 MB, free: 10.83 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003227/0.2717, allocations: 350.5 kB / 415.5 MB, free: 10.47 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.845e-05/0.2717, allocations: 25.95 kB / 415.5 MB, free: 10.44 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.004e-05/0.2718, allocations: 136.1 kB / 415.7 MB, free: 10.3 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.614e-05/0.2718, allocations: 23.73 kB / 415.7 MB, free: 10.28 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.184e-05/0.2719, allocations: 25.72 kB / 415.7 MB, free: 10.25 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.272, allocations: 334.8 kB / 416 MB, free: 9.914 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.099e-05/0.2721, allocations: 23.98 kB / 416.1 MB, free: 9.891 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001085/0.2722, allocations: 87.09 kB / 416.2 MB, free: 9.781 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001484/0.2723, allocations: 84.22 kB / 416.2 MB, free: 9.684 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.2724, allocations: 4 kB / 416.2 MB, free: 9.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002351/0.2726, allocations: 125.3 kB / 416.4 MB, free: 9.551 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.2726, allocations: 8 kB / 416.4 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.2726, allocations: 0 / 416.4 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.2727, allocations: 0 / 416.4 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.2728, allocations: 19.98 kB / 416.4 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.735e-06/0.2728, allocations: 3.984 kB / 416.4 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.803e-05/0.2729, allocations: 15.94 kB / 416.4 MB, free: 9.504 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.416e-06/0.2729, allocations: 0 / 416.4 MB, free: 9.504 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.0001554/0.2731, allocations: 169.8 kB / 416.6 MB, free: 9.328 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.484e-05/0.2731, allocations: 69.36 kB / 416.6 MB, free: 9.254 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.947e-05/0.2732, allocations: 21.7 kB / 416.7 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.638e-06/0.2732, allocations: 4 kB / 416.7 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.2732, allocations: 0 / 416.7 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.2733, allocations: 7.922 kB / 416.7 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002318/0.2735, allocations: 241.6 kB / 416.9 MB, free: 8.934 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.2735, allocations: 3.938 kB / 416.9 MB, free: 8.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.835e-05/0.2736, allocations: 15.98 kB / 416.9 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.2736, allocations: 4.062 kB / 416.9 MB, free: 8.91 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.413e-05/0.2736, allocations: 4 kB / 416.9 MB, free: 8.906 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.2736, allocations: 0 / 416.9 MB, free: 8.906 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-06/0.2736, allocations: 64 / 416.9 MB, free: 8.906 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002971/0.2739, allocations: 178.3 kB / 417.1 MB, free: 8.707 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001466/0.2741, allocations: 116.8 kB / 417.2 MB, free: 8.574 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.275e-05/0.2741, allocations: 4 kB / 417.2 MB, free: 8.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.25e-05/0.2742, allocations: 4 kB / 417.2 MB, free: 8.566 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.465e-05/0.2743, allocations: 15.92 kB / 417.3 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.305e-05/0.2743, allocations: 4 kB / 417.3 MB, free: 8.547 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003046/0.2746, allocations: 253.9 kB / 417.5 MB, free: 8.301 MB / 334.1 MB Notification: Performance of sort global known variables: time 3e-07/0.2746, allocations: 0 / 417.5 MB, free: 8.301 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003041/0.275, allocations: 28 kB / 417.5 MB, free: 8.273 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.001818/0.2768, allocations: 1.014 MB / 418.5 MB, free: 7.367 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003217/0.2771, allocations: 67.91 kB / 418.6 MB, free: 7.301 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.2771, allocations: 8.188 kB / 418.6 MB, free: 7.293 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001123/0.2773, allocations: 27.98 kB / 418.6 MB, free: 7.266 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000549/0.2778, allocations: 75.81 kB / 418.7 MB, free: 7.188 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002603/0.2804, allocations: 2.213 MB / 420.9 MB, free: 4.852 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003621/0.2808, allocations: 0.7436 MB / 421.7 MB, free: 4.082 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000102/0.2809, allocations: 25.53 kB / 421.7 MB, free: 4.059 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001039/0.281, allocations: 59.42 kB / 421.8 MB, free: 4 MB / 334.1 MB Notification: Performance of SimCode: time 6.81e-07/0.281, allocations: 0 / 421.8 MB, free: 4 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02237/0.3034, allocations: 5.367 MB / 427.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.784/8.087, allocations: 7.094 kB / 427.1 MB, free: 14.76 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.0.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