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.001462/0.001462, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001827/0.001827, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 227.4 MB / 246.8 MB, free: 10.65 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 63.73 kB / 307 MB, free: 0.582 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08187/0.08308, allocations: 50.53 MB / 357.6 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.0031/0.08621, allocations: 1.838 MB / 359.4 MB, free: 12.19 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001835/0.08807, allocations: 1.185 MB / 360.6 MB, free: 11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001035/0.08819, allocations: 4 kB / 360.6 MB, free: 11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005504/0.08876, allocations: 163.5 kB / 360.8 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003944/0.08917, allocations: 171.3 kB / 360.9 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003791/0.08956, allocations: 139.6 kB / 361.1 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002631/0.08984, allocations: 215.4 kB / 361.3 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001033/0.08995, allocations: 25.55 kB / 361.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001329/0.09009, allocations: 91.61 kB / 361.4 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000137/0.09023, allocations: 91.61 kB / 361.5 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.062e-05/0.09027, allocations: 8 kB / 361.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001346/0.09041, allocations: 51.92 kB / 361.5 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.361e-05/0.09049, allocations: 51.81 kB / 361.6 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.791e-05/0.09059, allocations: 79.55 kB / 361.7 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002963/0.09089, allocations: 223.6 kB / 361.9 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.0909, allocations: 0 / 361.9 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.09091, allocations: 0 / 361.9 MB, free: 9.711 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.09092, allocations: 0 / 361.9 MB, free: 9.711 MB / 302.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.0008449/0.09178, allocations: 0.5273 MB / 362.4 MB, free: 9.129 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.09182, allocations: 8.031 kB / 362.4 MB, free: 9.121 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.92e-05/0.09186, allocations: 42.73 kB / 362.5 MB, free: 9.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.819e-05/0.09193, allocations: 20.66 kB / 362.5 MB, free: 9.051 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003061/0.09224, allocations: 266.8 kB / 362.7 MB, free: 8.746 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.794e-05/0.09227, allocations: 12.31 kB / 362.7 MB, free: 8.734 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.792e-05/0.0923, allocations: 11.88 kB / 362.8 MB, free: 8.723 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002311/0.09254, allocations: 125.5 kB / 362.9 MB, free: 8.582 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.09256, allocations: 0 / 362.9 MB, free: 8.582 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/0.09257, allocations: 0 / 362.9 MB, free: 8.582 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.847e-06/0.09259, allocations: 4 kB / 362.9 MB, free: 8.578 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001496/0.09274, allocations: 47.91 kB / 362.9 MB, free: 8.531 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006311/0.09338, allocations: 0.6104 MB / 363.5 MB, free: 7.859 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002612/0.09366, allocations: 131.9 kB / 363.7 MB, free: 7.703 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/0.09377, allocations: 42.56 kB / 363.7 MB, free: 7.652 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.497e-05/0.0938, allocations: 4.078 kB / 363.7 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002221/0.09403, allocations: 133.8 kB / 363.8 MB, free: 7.496 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.432e-06/0.09404, allocations: 0 / 363.8 MB, free: 7.496 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004434/0.09449, allocations: 169.3 kB / 364 MB, free: 7.324 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.309e-05/0.09456, allocations: 136.5 kB / 364.1 MB, free: 7.16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002992/0.09487, allocations: 296.9 kB / 364.4 MB, free: 6.863 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.072e-05/0.0949, allocations: 29.81 kB / 364.5 MB, free: 6.828 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.901e-05/0.09499, allocations: 132.3 kB / 364.6 MB, free: 6.695 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.15e-05/0.09502, allocations: 27.66 kB / 364.6 MB, free: 6.668 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.417e-05/0.09508, allocations: 29.7 kB / 364.7 MB, free: 6.633 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.09521, allocations: 338.8 kB / 365 MB, free: 6.293 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.149e-05/0.09531, allocations: 27.98 kB / 365 MB, free: 6.266 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001204/0.09544, allocations: 81.98 kB / 365.1 MB, free: 6.164 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001951/0.09564, allocations: 92.22 kB / 365.2 MB, free: 6.059 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.09565, allocations: 0 / 365.2 MB, free: 6.059 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002827/0.09594, allocations: 153.3 kB / 365.3 MB, free: 5.902 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.09596, allocations: 4 kB / 365.3 MB, free: 5.898 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.09597, allocations: 0 / 365.3 MB, free: 5.898 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.211e-05/0.09599, allocations: 4 kB / 365.3 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.28e-05/0.09608, allocations: 16.56 kB / 365.4 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.149e-06/0.09609, allocations: 0 / 365.4 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000116/0.09621, allocations: 23.83 kB / 365.4 MB, free: 5.855 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.175e-05/0.09623, allocations: 4 kB / 365.4 MB, free: 5.852 MB / 302.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.0001296/0.09637, allocations: 165.7 kB / 365.5 MB, free: 5.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.658e-05/0.09641, allocations: 19.81 kB / 365.6 MB, free: 5.66 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.84e-05/0.09647, allocations: 29.7 kB / 365.6 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.09648, allocations: 0 / 365.6 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.09649, allocations: 0 / 365.6 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.0965, allocations: 11.92 kB / 365.6 MB, free: 5.621 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002167/0.09672, allocations: 237.5 kB / 365.8 MB, free: 5.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.09674, allocations: 7.984 kB / 365.8 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.909e-05/0.09677, allocations: 4 kB / 365.8 MB, free: 5.328 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.09678, allocations: 3.938 kB / 365.9 MB, free: 5.324 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.253e-05/0.0968, allocations: 11.94 kB / 365.9 MB, free: 5.312 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.684e-06/0.09681, allocations: 0 / 365.9 MB, free: 5.312 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.09681, allocations: 0 / 365.9 MB, free: 5.312 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003074/0.09713, allocations: 178.5 kB / 366 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.779e-05/0.0972, allocations: 104.8 kB / 366.1 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.564e-05/0.09725, allocations: 8 kB / 366.1 MB, free: 4.984 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001074/0.09736, allocations: 11.98 kB / 366.2 MB, free: 4.973 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.493e-05/0.09742, allocations: 15.92 kB / 366.2 MB, free: 4.957 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.708e-05/0.09745, allocations: 8 kB / 366.2 MB, free: 4.949 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002112/0.09766, allocations: 224.4 kB / 366.4 MB, free: 4.727 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.09767, allocations: 0 / 366.4 MB, free: 4.727 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000268/0.09794, allocations: 32 kB / 366.4 MB, free: 4.695 MB / 302.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.001366/0.09932, allocations: 1.021 MB / 367.5 MB, free: 3.781 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002885/0.09962, allocations: 104 kB / 367.6 MB, free: 3.68 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.09963, allocations: 0 / 367.6 MB, free: 3.68 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001327/0.09977, allocations: 51.91 kB / 367.6 MB, free: 3.629 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003569/0.1001, allocations: 53.38 kB / 367.7 MB, free: 3.578 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002491/0.1026, allocations: 2.188 MB / 369.8 MB, free: 1.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000286/0.1029, allocations: 0.7319 MB / 370.6 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.333e-05/0.103, allocations: 29.52 kB / 370.6 MB, free: 492 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.128e-05/0.1031, allocations: 59.42 kB / 370.7 MB, free: 436 kB / 302.1 MB Notification: Performance of SimCode: time 2.204e-06/0.1031, allocations: 0 / 370.7 MB, free: 436 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1556/0.2588, allocations: 5.096 MB / 375.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.381/7.64, allocations: 8.391 kB / 375.8 MB, free: 19.59 MB / 302.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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources_res.csv","/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) Reference file matches