Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.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.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001165/0.001165, allocations: 118.8 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.001241/0.001241, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 59.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2863/0.2876, allocations: 50.53 MB / 408.7 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003131/0.2908, allocations: 1.855 MB / 410.6 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001834/0.2927, allocations: 1.169 MB / 411.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001073/0.2928, allocations: 4 kB / 411.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006428/0.2934, allocations: 167.5 kB / 411.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003918/0.2938, allocations: 171.3 kB / 412.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003994/0.2943, allocations: 135.6 kB / 412.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002808/0.2946, allocations: 219.4 kB / 412.4 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001138/0.2947, allocations: 29.55 kB / 412.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000126/0.2948, allocations: 91.62 kB / 412.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001409/0.295, allocations: 83.61 kB / 412.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.818e-05/0.295, allocations: 12 kB / 412.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001468/0.2951, allocations: 59.91 kB / 412.7 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.322e-05/0.2952, allocations: 51.81 kB / 412.8 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.631e-05/0.2953, allocations: 75.55 kB / 412.8 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003292/0.2957, allocations: 232.9 kB / 413.1 MB, free: 13.21 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.2957, allocations: 0 / 413.1 MB, free: 13.21 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2957, allocations: 0 / 413.1 MB, free: 13.21 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.725e-06/0.2957, allocations: 4 kB / 413.1 MB, free: 13.21 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0009012/0.2966, allocations: 0.5235 MB / 413.6 MB, free: 12.63 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.2966, allocations: 16.02 kB / 413.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.859e-05/0.2967, allocations: 34.75 kB / 413.6 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.958e-05/0.2968, allocations: 16.75 kB / 413.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003288/0.2971, allocations: 266.7 kB / 413.9 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.07e-05/0.2971, allocations: 8.375 kB / 413.9 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.218e-05/0.2971, allocations: 15.92 kB / 413.9 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002402/0.2974, allocations: 113.9 kB / 414.1 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.2974, allocations: 0 / 414.1 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.791e-05/0.2974, allocations: 4 kB / 414.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.658e-06/0.2974, allocations: 3.938 kB / 414.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001369/0.2976, allocations: 47.97 kB / 414.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006734/0.2983, allocations: 0.6066 MB / 414.7 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002603/0.2985, allocations: 127.9 kB / 414.8 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.887e-05/0.2986, allocations: 46.56 kB / 414.9 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.839e-05/0.2987, allocations: 4 kB / 414.9 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002229/0.2989, allocations: 121.9 kB / 415 MB, free: 11.02 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.333e-06/0.2989, allocations: 0 / 415 MB, free: 11.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004521/0.2994, allocations: 177.3 kB / 415.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.109e-05/0.2995, allocations: 132.5 kB / 415.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003131/0.2998, allocations: 300.9 kB / 415.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.241e-05/0.2998, allocations: 33.83 kB / 415.6 MB, free: 10.34 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001043/0.2999, allocations: 140.1 kB / 415.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.369e-05/0.3, allocations: 23.7 kB / 415.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.8e-05/0.3001, allocations: 29.72 kB / 415.8 MB, free: 10.14 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.3002, allocations: 330.8 kB / 416.2 MB, free: 9.809 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.959e-05/0.3003, allocations: 31.98 kB / 416.2 MB, free: 9.777 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001307/0.3004, allocations: 89.92 kB / 416.3 MB, free: 9.668 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001844/0.3006, allocations: 96.72 kB / 416.4 MB, free: 9.559 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.3006, allocations: 3.938 kB / 416.4 MB, free: 9.555 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002742/0.3009, allocations: 149.3 kB / 416.5 MB, free: 9.402 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.3009, allocations: 4 kB / 416.5 MB, free: 9.398 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.3009, allocations: 4 kB / 416.5 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.301, allocations: 0 / 416.5 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.491e-05/0.3011, allocations: 15.94 kB / 416.5 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.116e-05/0.3011, allocations: 11.97 kB / 416.6 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001062/0.3012, allocations: 11.94 kB / 416.6 MB, free: 9.355 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.142e-05/0.3012, allocations: 8 kB / 416.6 MB, free: 9.348 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: 13 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition2,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,$whenCondition1,booleanExpression.y,pulse.pulseStart,$PRE.pulse.pulseStart,pulse.y,step.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001307/0.3014, allocations: 145.9 kB / 416.7 MB, free: 9.195 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.792e-05/0.3014, allocations: 27.7 kB / 416.7 MB, free: 9.168 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.67e-05/0.3015, allocations: 21.72 kB / 416.8 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.3015, allocations: 0 / 416.8 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.3015, allocations: 4 kB / 416.8 MB, free: 9.141 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.731e-05/0.3015, allocations: 7.922 kB / 416.8 MB, free: 9.133 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002538/0.3018, allocations: 249.5 kB / 417 MB, free: 8.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.3018, allocations: 0 / 417 MB, free: 8.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.063e-05/0.3018, allocations: 8.062 kB / 417 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.3018, allocations: 4 kB / 417 MB, free: 8.828 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.784e-05/0.3019, allocations: 8 kB / 417 MB, free: 8.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.3019, allocations: 0 / 417 MB, free: 8.82 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.3019, allocations: 0 / 417 MB, free: 8.82 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003205/0.3022, allocations: 186.3 kB / 417.2 MB, free: 8.613 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.587e-05/0.3023, allocations: 96.91 kB / 417.3 MB, free: 8.5 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.814e-05/0.3023, allocations: 8 kB / 417.3 MB, free: 8.492 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.869e-05/0.3024, allocations: 11.97 kB / 417.3 MB, free: 8.48 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.049e-05/0.3025, allocations: 19.92 kB / 417.4 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.531e-05/0.3025, allocations: 4 kB / 417.4 MB, free: 8.457 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002238/0.3027, allocations: 224.4 kB / 417.6 MB, free: 8.238 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3028, allocations: 0 / 417.6 MB, free: 8.238 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002823/0.303, allocations: 35.91 kB / 417.6 MB, free: 8.203 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: 10 ($whenCondition2,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,pulse.pulseStart,booleanExpression.y,sample.y) * 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 (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.00145/0.3045, allocations: 1.019 MB / 418.6 MB, free: 7.293 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002776/0.3048, allocations: 91.91 kB / 418.7 MB, free: 7.203 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.3048, allocations: 0 / 418.7 MB, free: 7.203 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000126/0.3049, allocations: 55.91 kB / 418.8 MB, free: 7.148 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003452/0.3053, allocations: 51.47 kB / 418.8 MB, free: 7.102 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002692/0.308, allocations: 2.194 MB / 421 MB, free: 4.777 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002941/0.3083, allocations: 0.728 MB / 421.7 MB, free: 4.023 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000102/0.3084, allocations: 29.52 kB / 421.8 MB, free: 3.996 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001009/0.3085, allocations: 63.36 kB / 421.8 MB, free: 3.934 MB / 334.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3085, allocations: 0 / 421.8 MB, free: 3.934 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02395/0.3325, allocations: 5.274 MB / 427.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.877/8.21, allocations: 4.266 kB / 427.1 MB, free: 14.75 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,table.y Variables in the result:booleanExpression.y,const.k,const.y,pulse.period,pulse.startTime,pulse.width,pulse.y,sample.period,sample.startTime,sample.y,step.startTime,step.startValue,step.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.nHeaderLines,table.combiTimeTable.nout,table.combiTimeTable.offset[1],table.combiTimeTable.shiftTime,table.combiTimeTable.smoothness,table.combiTimeTable.startTime,table.combiTimeTable.t_max,table.combiTimeTable.t_maxScaled,table.combiTimeTable.t_min,table.combiTimeTable.t_minScaled,table.combiTimeTable.tableOnFile,table.combiTimeTable.table[1,1],table.combiTimeTable.table[1,2],table.combiTimeTable.table[2,1],table.combiTimeTable.table[2,2],table.combiTimeTable.table[3,1],table.combiTimeTable.table[3,2],table.combiTimeTable.table[4,1],table.combiTimeTable.table[4,2],table.combiTimeTable.table[5,1],table.combiTimeTable.table[5,2],table.combiTimeTable.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.combiTimeTable.y[1],table.extrapolation,table.realToBoolean.threshold,table.realToBoolean.u,table.realToBoolean.y,table.shiftTime,table.startTime,table.startValue,table.table[1],table.table[2],table.table[3],table.table[4],table.y,time