Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001093/0.001093, allocations: 121.7 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001221/0.001221, allocations: 203.8 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.521/1.521, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001253, allocations: 63.83 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.2639, allocations: 50.54 MB / 408.7 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003188/0.2672, allocations: 1.917 MB / 410.7 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001967/0.2692, allocations: 1.317 MB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001127/0.2693, allocations: 4 kB / 412 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003139/0.2696, allocations: 71.61 kB / 412 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003231/0.27, allocations: 139.4 kB / 412.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006067/0.2706, allocations: 222.7 kB / 412.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002524/0.2708, allocations: 191.5 kB / 412.6 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.271, allocations: 33.67 kB / 412.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001138/0.2711, allocations: 87.56 kB / 412.7 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00012/0.2712, allocations: 83.67 kB / 412.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.359e-05/0.2712, allocations: 8 kB / 412.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001582/0.2714, allocations: 67.91 kB / 412.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.761e-05/0.2715, allocations: 59.75 kB / 412.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.936e-05/0.2716, allocations: 79.42 kB / 413 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003185/0.2719, allocations: 260.8 kB / 413.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2719, allocations: 0 / 413.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.272, allocations: 0 / 413.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.272, allocations: 4 kB / 413.3 MB, free: 12.98 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0006892/0.2727, allocations: 0.5428 MB / 413.8 MB, free: 12.39 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.2727, allocations: 12.03 kB / 413.8 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.209e-05/0.2727, allocations: 34.75 kB / 413.8 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.003e-05/0.2728, allocations: 24.66 kB / 413.9 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003995/0.2732, allocations: 307.4 kB / 414.2 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.546e-05/0.2732, allocations: 12.31 kB / 414.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.956e-05/0.2732, allocations: 11.94 kB / 414.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003256/0.2736, allocations: 180.4 kB / 414.4 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.2736, allocations: 4 kB / 414.4 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.2736, allocations: 0 / 414.4 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.521e-06/0.2736, allocations: 4 kB / 414.4 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001121/0.2737, allocations: 43.91 kB / 414.4 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004893/0.2742, allocations: 399.2 kB / 414.8 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002561/0.2745, allocations: 138.5 kB / 414.9 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.856e-05/0.2746, allocations: 63.41 kB / 415 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.175e-05/0.2747, allocations: 7.938 kB / 415 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000166/0.2748, allocations: 87.28 kB / 415.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.543e-06/0.2748, allocations: 0 / 415.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003888/0.2752, allocations: 169.2 kB / 415.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.761e-05/0.2753, allocations: 187.9 kB / 415.4 MB, free: 10.49 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003599/0.2757, allocations: 346.9 kB / 415.8 MB, free: 10.14 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.16e-05/0.2757, allocations: 37.64 kB / 415.8 MB, free: 10.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.74e-05/0.2758, allocations: 124.4 kB / 415.9 MB, free: 9.965 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.643e-05/0.2759, allocations: 19.8 kB / 416 MB, free: 9.945 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.263e-05/0.2759, allocations: 41.98 kB / 416 MB, free: 9.898 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.2761, allocations: 330.8 kB / 416.3 MB, free: 9.566 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.488e-05/0.2762, allocations: 23.98 kB / 416.4 MB, free: 9.543 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002024/0.2764, allocations: 108.5 kB / 416.5 MB, free: 9.406 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001693/0.2765, allocations: 101.9 kB / 416.6 MB, free: 9.285 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.2766, allocations: 0 / 416.6 MB, free: 9.285 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000259/0.2768, allocations: 141.3 kB / 416.7 MB, free: 9.141 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.2769, allocations: 6.969 kB / 416.7 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.493e-06/0.2769, allocations: 4 kB / 416.7 MB, free: 9.133 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.2769, allocations: 0 / 416.7 MB, free: 9.133 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001178/0.277, allocations: 27.92 kB / 416.7 MB, free: 9.105 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.277, allocations: 0 / 416.7 MB, free: 9.105 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.532e-05/0.2771, allocations: 19.78 kB / 416.8 MB, free: 9.086 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.12e-05/0.2771, allocations: 8.172 kB / 416.8 MB, free: 9.078 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001443/0.2773, allocations: 161.8 kB / 416.9 MB, free: 8.91 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/0.2774, allocations: 81.34 kB / 417 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.379e-05/0.2775, allocations: 25.73 kB / 417 MB, free: 8.801 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.2775, allocations: 4 kB / 417 MB, free: 8.797 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.2775, allocations: 0 / 417 MB, free: 8.797 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.875e-06/0.2775, allocations: 8.25 kB / 417 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002312/0.2777, allocations: 241.6 kB / 417.3 MB, free: 8.504 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/0.2777, allocations: 8.094 kB / 417.3 MB, free: 8.496 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.603e-05/0.2778, allocations: 27.86 kB / 417.3 MB, free: 8.469 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.2778, allocations: 4 kB / 417.3 MB, free: 8.465 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.051e-05/0.2778, allocations: 0 / 417.3 MB, free: 8.465 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.2779, allocations: 4 kB / 417.3 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2779, allocations: 0 / 417.3 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002889/0.2782, allocations: 191.2 kB / 417.5 MB, free: 8.246 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001143/0.2783, allocations: 120.7 kB / 417.6 MB, free: 8.109 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.198e-05/0.2783, allocations: 4 kB / 417.6 MB, free: 8.105 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.661e-05/0.2784, allocations: 3.984 kB / 417.6 MB, free: 8.102 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.96e-05/0.2784, allocations: 11.94 kB / 417.6 MB, free: 8.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.327e-05/0.2785, allocations: 11.98 kB / 417.7 MB, free: 8.078 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002488/0.2788, allocations: 249.9 kB / 417.9 MB, free: 7.832 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2788, allocations: 0 / 417.9 MB, free: 7.832 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000264/0.279, allocations: 39.98 kB / 417.9 MB, free: 7.793 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.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 (11): * Single equations (assignments): 9 * 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.001438/0.2805, allocations: 1.037 MB / 419 MB, free: 6.859 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002156/0.2807, allocations: 83.84 kB / 419.1 MB, free: 6.777 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2807, allocations: 0 / 419.1 MB, free: 6.777 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.662e-05/0.2808, allocations: 27.98 kB / 419.1 MB, free: 6.75 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004092/0.2812, allocations: 80.69 kB / 419.2 MB, free: 6.668 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002481/0.2837, allocations: 2.325 MB / 421.5 MB, free: 4.199 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000358/0.2841, allocations: 0.7437 MB / 422.2 MB, free: 3.43 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.401e-05/0.2842, allocations: 29.52 kB / 422.3 MB, free: 3.402 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.843e-05/0.2843, allocations: 63.42 kB / 422.3 MB, free: 3.344 MB / 334.1 MB Notification: Performance of SimCode: time 2.785e-06/0.2843, allocations: 4 kB / 422.3 MB, free: 3.34 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0242/0.3085, allocations: 5.737 MB / 428.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.793/8.102, allocations: 10.34 kB / 428.1 MB, free: 13.74 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches