Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.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.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001622/0.001622, 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.001968/0.001969, allocations: 197.2 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.434/1.434, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 59.89 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.274/0.2751, allocations: 50.54 MB / 408.7 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003067/0.2782, allocations: 1.902 MB / 410.7 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001855/0.2801, allocations: 1.204 MB / 411.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001066/0.2802, allocations: 4 kB / 411.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005351/0.2808, allocations: 147.5 kB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003411/0.2811, allocations: 163.3 kB / 412.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004362/0.2816, allocations: 171.2 kB / 412.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002444/0.2819, allocations: 191.5 kB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.282, allocations: 37.48 kB / 412.6 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001056/0.2821, allocations: 75.69 kB / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001159/0.2822, allocations: 67.7 kB / 412.7 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.099e-05/0.2822, allocations: 8 kB / 412.7 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001224/0.2824, allocations: 63.89 kB / 412.8 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.293e-05/0.2824, allocations: 43.84 kB / 412.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.016e-05/0.2825, allocations: 71.47 kB / 412.9 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002649/0.2828, allocations: 213 kB / 413.1 MB, free: 13.22 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.2828, allocations: 0 / 413.1 MB, free: 13.22 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.2828, allocations: 0 / 413.1 MB, free: 13.22 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.336e-06/0.2828, allocations: 0 / 413.1 MB, free: 13.22 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.0007522/0.2836, allocations: 0.5195 MB / 413.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.2836, allocations: 12.03 kB / 413.6 MB, free: 12.63 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.432e-05/0.2837, allocations: 34.75 kB / 413.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.547e-05/0.2837, allocations: 20.75 kB / 413.7 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003588/0.2841, allocations: 270.7 kB / 413.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.582e-05/0.2841, allocations: 8.375 kB / 413.9 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.495e-05/0.2841, allocations: 11.94 kB / 414 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002938/0.2844, allocations: 150.7 kB / 414.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.816e-06/0.2845, allocations: 0 / 414.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.101e-05/0.2845, allocations: 0 / 414.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.2845, allocations: 0 / 414.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001009/0.2846, allocations: 47.91 kB / 414.1 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004602/0.2851, allocations: 346.5 kB / 414.5 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000214/0.2853, allocations: 111.9 kB / 414.6 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.499e-05/0.2854, allocations: 42.56 kB / 414.6 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.602e-05/0.2854, allocations: 4 kB / 414.6 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001631/0.2856, allocations: 87.22 kB / 414.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.492e-06/0.2856, allocations: 3.938 kB / 414.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003476/0.2859, allocations: 137.4 kB / 414.9 MB, free: 11.2 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.88e-05/0.286, allocations: 136.5 kB / 415 MB, free: 11.04 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00026/0.2863, allocations: 276.9 kB / 415.3 MB, free: 10.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.684e-05/0.2863, allocations: 25.7 kB / 415.3 MB, free: 10.72 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.54e-05/0.2864, allocations: 128.3 kB / 415.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.53e-05/0.2864, allocations: 19.88 kB / 415.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.575e-05/0.2865, allocations: 29.7 kB / 415.5 MB, free: 10.54 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.2866, allocations: 326.8 kB / 415.8 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.64e-05/0.2867, allocations: 19.98 kB / 415.8 MB, free: 10.19 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.052e-05/0.2868, allocations: 74 kB / 415.9 MB, free: 10.1 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000126/0.2869, allocations: 76.16 kB / 416 MB, free: 10.01 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.2869, allocations: 0 / 416 MB, free: 10.01 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002243/0.2871, allocations: 121.7 kB / 416.1 MB, free: 9.883 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.2872, allocations: 4 kB / 416.1 MB, free: 9.879 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.2872, allocations: 0 / 416.1 MB, free: 9.879 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.2872, allocations: 4 kB / 416.1 MB, free: 9.875 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.17e-05/0.2873, allocations: 12 kB / 416.1 MB, free: 9.863 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.521e-05/0.2873, allocations: 7.938 kB / 416.1 MB, free: 9.855 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.838e-05/0.2874, allocations: 19.86 kB / 416.1 MB, free: 9.836 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.838e-06/0.2874, allocations: 4 kB / 416.1 MB, free: 9.832 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,sample1.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 (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.0001193/0.2875, allocations: 149.9 kB / 416.3 MB, free: 9.676 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.419e-05/0.2876, allocations: 65.36 kB / 416.3 MB, free: 9.605 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.345e-05/0.2877, allocations: 25.7 kB / 416.4 MB, free: 9.578 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.2877, allocations: 0 / 416.4 MB, free: 9.578 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.2877, allocations: 0 / 416.4 MB, free: 9.578 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.2877, allocations: 7.938 kB / 416.4 MB, free: 9.57 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001885/0.2879, allocations: 221.6 kB / 416.6 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.2879, allocations: 0 / 416.6 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.55e-05/0.2879, allocations: 7.938 kB / 416.6 MB, free: 9.297 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.288, allocations: 4.062 kB / 416.6 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.066e-05/0.288, allocations: 4 kB / 416.6 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.288, allocations: 3.984 kB / 416.6 MB, free: 9.285 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.288, allocations: 4 kB / 416.6 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002455/0.2882, allocations: 154.4 kB / 416.8 MB, free: 9.105 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.029e-05/0.2883, allocations: 104.8 kB / 416.9 MB, free: 8.984 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.864e-05/0.2884, allocations: 15.98 kB / 416.9 MB, free: 8.969 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.797e-05/0.2884, allocations: 4 kB / 416.9 MB, free: 8.965 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.909e-05/0.2885, allocations: 11.88 kB / 416.9 MB, free: 8.953 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.814e-05/0.2885, allocations: 11.98 kB / 416.9 MB, free: 8.941 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001803/0.2887, allocations: 196.5 kB / 417.1 MB, free: 8.75 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2887, allocations: 0 / 417.1 MB, free: 8.75 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002565/0.289, allocations: 28 kB / 417.1 MB, free: 8.723 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,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,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 (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.001331/0.2903, allocations: 0.9986 MB / 418.1 MB, free: 7.828 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002092/0.2905, allocations: 63.91 kB / 418.2 MB, free: 7.766 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/0.2905, allocations: 8.25 kB / 418.2 MB, free: 7.758 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.78e-05/0.2906, allocations: 27.88 kB / 418.2 MB, free: 7.73 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004116/0.291, allocations: 79.02 kB / 418.3 MB, free: 7.66 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002047/0.2931, allocations: 1.944 MB / 420.2 MB, free: 5.598 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002919/0.2934, allocations: 0.7319 MB / 421 MB, free: 4.84 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.146e-05/0.2935, allocations: 21.53 kB / 421 MB, free: 4.816 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.808e-05/0.2936, allocations: 51.42 kB / 421 MB, free: 4.766 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2936, allocations: 0 / 421 MB, free: 4.766 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02472/0.3183, allocations: 4.721 MB / 425.8 MB, free: 184 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.669/7.987, allocations: 11.06 kB / 425.8 MB, free: 176 kB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches