Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 111.5 kB / 17.06 MB, free: 6.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001092/0.001092, allocations: 200 kB / 18 MB, free: 5.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.568/1.568, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 47.92 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6142/0.6157, allocations: 49.44 MB / 400.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.006805/0.6226, allocations: 1.823 MB / 402 MB, free: 6.961 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002931/0.6256, allocations: 1.033 MB / 403.1 MB, free: 5.926 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002461/0.6259, allocations: 4 kB / 403.1 MB, free: 5.922 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001001/0.6269, allocations: 163.5 kB / 403.2 MB, free: 5.762 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006024/0.6275, allocations: 123.5 kB / 403.4 MB, free: 5.641 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008295/0.6283, allocations: 179.4 kB / 403.5 MB, free: 5.469 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004975/0.6289, allocations: 215.4 kB / 403.7 MB, free: 5.258 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001751/0.629, allocations: 17.55 kB / 403.8 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000262/0.6293, allocations: 91.62 kB / 403.9 MB, free: 5.152 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002142/0.6295, allocations: 79.67 kB / 403.9 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.769e-05/0.6296, allocations: 12 kB / 403.9 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002417/0.6299, allocations: 63.89 kB / 404 MB, free: 5 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001272/0.63, allocations: 43.84 kB / 404 MB, free: 4.957 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001402/0.6302, allocations: 75.55 kB / 404.1 MB, free: 4.883 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005442/0.6307, allocations: 221 kB / 404.3 MB, free: 4.668 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.6307, allocations: 0 / 404.3 MB, free: 4.668 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.826e-06/0.6307, allocations: 4 kB / 404.3 MB, free: 4.664 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.604e-05/0.6308, allocations: 0 / 404.3 MB, free: 4.664 MB / 318.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.001475/0.6323, allocations: 0.5196 MB / 404.9 MB, free: 4.09 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.563e-05/0.6323, allocations: 8.031 kB / 404.9 MB, free: 4.082 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.653e-05/0.6324, allocations: 42.73 kB / 404.9 MB, free: 4.031 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001057/0.6326, allocations: 24.66 kB / 404.9 MB, free: 4.008 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000548/0.6331, allocations: 258.4 kB / 405.2 MB, free: 3.715 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.652e-05/0.6332, allocations: 4 kB / 405.2 MB, free: 3.711 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.73e-05/0.6332, allocations: 11.98 kB / 405.2 MB, free: 3.699 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000337/0.6335, allocations: 109.9 kB / 405.3 MB, free: 3.57 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.6336, allocations: 7.938 kB / 405.3 MB, free: 3.562 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.21e-05/0.6336, allocations: 4 kB / 405.3 MB, free: 3.559 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.6336, allocations: 0 / 405.3 MB, free: 3.559 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001669/0.6338, allocations: 55.91 kB / 405.4 MB, free: 3.504 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009706/0.6348, allocations: 0.5989 MB / 406 MB, free: 2.844 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004284/0.6352, allocations: 127.9 kB / 406.1 MB, free: 2.691 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000175/0.6354, allocations: 46.56 kB / 406.1 MB, free: 2.637 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.316e-05/0.6355, allocations: 7.984 kB / 406.2 MB, free: 2.629 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003545/0.6359, allocations: 133.7 kB / 406.3 MB, free: 2.477 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 2.715e-06/0.6359, allocations: 0 / 406.3 MB, free: 2.477 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.000768/0.6367, allocations: 173.3 kB / 406.5 MB, free: 2.301 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001059/0.6368, allocations: 132.5 kB / 406.6 MB, free: 2.141 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004779/0.6373, allocations: 293.1 kB / 406.9 MB, free: 1.84 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.91e-05/0.6373, allocations: 29.64 kB / 406.9 MB, free: 1.805 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001325/0.6375, allocations: 128.3 kB / 407 MB, free: 1.672 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.915e-05/0.6375, allocations: 23.66 kB / 407 MB, free: 1.648 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.747e-05/0.6376, allocations: 37.64 kB / 407.1 MB, free: 1.605 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001769/0.6378, allocations: 334.8 kB / 407.4 MB, free: 1.27 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001383/0.638, allocations: 31.98 kB / 407.4 MB, free: 1.238 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001872/0.6382, allocations: 85.36 kB / 407.5 MB, free: 1.137 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002645/0.6384, allocations: 92.72 kB / 407.6 MB, free: 1.031 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.6384, allocations: 32 / 407.6 MB, free: 1.031 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000443/0.6389, allocations: 149.3 kB / 407.8 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.303e-05/0.6389, allocations: 8 kB / 407.8 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.639, allocations: 0 / 407.8 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.966e-05/0.639, allocations: 7.938 kB / 407.8 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/0.6391, allocations: 12 kB / 407.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.124e-05/0.6392, allocations: 0 / 407.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001843/0.6394, allocations: 23.77 kB / 407.8 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.217e-05/0.6394, allocations: 16.03 kB / 407.8 MB, free: 0.8125 MB / 318.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.0002121/0.6396, allocations: 145.7 kB / 408 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.195e-05/0.6397, allocations: 19.72 kB / 408 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.565e-05/0.6398, allocations: 25.7 kB / 408 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.398e-06/0.6398, allocations: 7.938 kB / 408 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.6398, allocations: 0 / 408 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.6398, allocations: 0 / 408 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003461/0.6402, allocations: 245.5 kB / 408.3 MB, free: 324 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.6402, allocations: 0 / 408.3 MB, free: 324 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.327e-05/0.6403, allocations: 8 kB / 408.3 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/0.6403, allocations: 3.938 kB / 408.3 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.96e-05/0.6403, allocations: 11.98 kB / 408.3 MB, free: 300 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.881e-06/0.6403, allocations: 3.938 kB / 408.3 MB, free: 296 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/0.6403, allocations: 4 kB / 408.3 MB, free: 292 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004722/0.6408, allocations: 174.5 kB / 408.5 MB, free: 92 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001185/0.641, allocations: 92.86 kB / 408.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.509e-05/0.641, allocations: 8.109 kB / 408.6 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001618/0.6412, allocations: 19.92 kB / 408.6 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.033e-05/0.6413, allocations: 15.98 kB / 408.6 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.37e-05/0.6413, allocations: 7.938 kB / 408.6 MB, free: 15.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003201/0.6417, allocations: 208.5 kB / 408.8 MB, free: 15.73 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.6417, allocations: 0 / 408.8 MB, free: 15.73 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004725/0.6422, allocations: 40 kB / 408.8 MB, free: 15.69 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.002257/0.6444, allocations: 1.017 MB / 409.9 MB, free: 14.79 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003672/0.6448, allocations: 103.9 kB / 410 MB, free: 14.69 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.728e-06/0.6448, allocations: 0 / 410 MB, free: 14.69 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001512/0.645, allocations: 47.92 kB / 410 MB, free: 14.64 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004293/0.6454, allocations: 60.06 kB / 410.1 MB, free: 14.59 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00332/0.6488, allocations: 2.151 MB / 412.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005174/0.6493, allocations: 0.7318 MB / 413 MB, free: 11.56 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001358/0.6495, allocations: 37.5 kB / 413 MB, free: 11.53 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001338/0.6496, allocations: 55.42 kB / 413 MB, free: 11.48 MB / 334.1 MB Notification: Performance of SimCode: time 8.92e-07/0.6496, allocations: 3.938 kB / 413 MB, free: 11.47 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03478/0.6844, allocations: 5.183 MB / 418.2 MB, free: 6.402 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.19/12.88, allocations: 8.344 kB / 418.2 MB, free: 6.395 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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.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