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.001335/0.001335, allocations: 117.6 kB / 17.79 MB, free: 5.117 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001509/0.001509, allocations: 200.7 kB / 18.74 MB, free: 4.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001097/0.001097, allocations: 60.09 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2308/0.2319, allocations: 50.55 MB / 408.7 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002932/0.2349, allocations: 1.851 MB / 410.6 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00181/0.2367, allocations: 1.171 MB / 411.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.682e-05/0.2368, allocations: 3.938 kB / 411.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006141/0.2375, allocations: 179.1 kB / 411.9 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005663/0.238, allocations: 167.3 kB / 412.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005282/0.2386, allocations: 147.5 kB / 412.3 MB, free: 14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002728/0.2389, allocations: 223.4 kB / 412.5 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001095/0.239, allocations: 17.56 kB / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001264/0.2391, allocations: 83.62 kB / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001308/0.2393, allocations: 91.61 kB / 412.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.598e-05/0.2393, allocations: 12 kB / 412.7 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001391/0.2395, allocations: 55.95 kB / 412.7 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.231e-05/0.2395, allocations: 47.78 kB / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.1e-05/0.2396, allocations: 75.55 kB / 412.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003211/0.24, allocations: 234.2 kB / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.24, allocations: 4 kB / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.24, allocations: 0 / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.24, allocations: 0 / 413.1 MB, free: 13.18 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.0008221/0.2408, allocations: 0.5311 MB / 413.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.2409, allocations: 11.97 kB / 413.6 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.761e-05/0.2409, allocations: 42.75 kB / 413.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.381e-05/0.241, allocations: 20.8 kB / 413.7 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003006/0.2413, allocations: 270.9 kB / 413.9 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.838e-05/0.2413, allocations: 4.375 kB / 414 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.5e-05/0.2413, allocations: 11.94 kB / 414 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002267/0.2416, allocations: 113.9 kB / 414.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.2416, allocations: 0 / 414.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.534e-05/0.2416, allocations: 8 kB / 414.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.2416, allocations: 4 kB / 414.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001617/0.2418, allocations: 47.91 kB / 414.1 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000619/0.2424, allocations: 0.6066 MB / 414.7 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002667/0.2427, allocations: 127.9 kB / 414.9 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001076/0.2428, allocations: 50.55 kB / 414.9 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.825e-05/0.2428, allocations: 11.98 kB / 414.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002238/0.2431, allocations: 113.9 kB / 415 MB, free: 10.97 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.522e-06/0.2431, allocations: 0 / 415 MB, free: 10.97 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004626/0.2436, allocations: 173.4 kB / 415.2 MB, free: 10.8 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.352e-05/0.2436, allocations: 136.6 kB / 415.3 MB, free: 10.63 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002989/0.244, allocations: 300.9 kB / 415.6 MB, free: 10.33 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.347e-05/0.244, allocations: 29.7 kB / 415.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.873e-05/0.2441, allocations: 120.4 kB / 415.8 MB, free: 10.17 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.396e-05/0.2441, allocations: 39.73 kB / 415.8 MB, free: 10.13 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.367e-05/0.2442, allocations: 37.7 kB / 415.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.2443, allocations: 330.8 kB / 416.2 MB, free: 9.758 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001316/0.2444, allocations: 31.98 kB / 416.2 MB, free: 9.727 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001251/0.2446, allocations: 85.92 kB / 416.3 MB, free: 9.621 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001867/0.2448, allocations: 100.8 kB / 416.4 MB, free: 9.508 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2448, allocations: 3.938 kB / 416.4 MB, free: 9.504 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002793/0.2451, allocations: 145.4 kB / 416.5 MB, free: 9.355 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/0.2451, allocations: 4 kB / 416.5 MB, free: 9.352 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-06/0.2451, allocations: 0 / 416.5 MB, free: 9.352 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.2451, allocations: 4 kB / 416.5 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.895e-05/0.2452, allocations: 19.98 kB / 416.6 MB, free: 9.328 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.2452, allocations: 0 / 416.6 MB, free: 9.328 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001176/0.2453, allocations: 23.95 kB / 416.6 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.094e-05/0.2454, allocations: 4 kB / 416.6 MB, free: 9.301 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.0001324/0.2455, allocations: 153.7 kB / 416.7 MB, free: 9.141 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.729e-05/0.2455, allocations: 19.86 kB / 416.8 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.315e-05/0.2456, allocations: 25.7 kB / 416.8 MB, free: 9.094 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.2456, allocations: 4 kB / 416.8 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-06/0.2456, allocations: 0 / 416.8 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.2456, allocations: 7.938 kB / 416.8 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002214/0.2458, allocations: 241.5 kB / 417 MB, free: 8.797 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.115e-06/0.2459, allocations: 4 kB / 417 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.102e-05/0.2459, allocations: 8 kB / 417 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.2459, allocations: 0 / 417 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.182e-05/0.2459, allocations: 4 kB / 417.1 MB, free: 8.781 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.2459, allocations: 3.984 kB / 417.1 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.2459, allocations: 0 / 417.1 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003099/0.2463, allocations: 190.6 kB / 417.2 MB, free: 8.566 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.26e-05/0.2463, allocations: 96.95 kB / 417.3 MB, free: 8.453 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.46e-05/0.2464, allocations: 4 kB / 417.3 MB, free: 8.449 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001056/0.2465, allocations: 11.98 kB / 417.4 MB, free: 8.438 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.876e-05/0.2465, allocations: 19.92 kB / 417.4 MB, free: 8.418 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.601e-05/0.2466, allocations: 7.984 kB / 417.4 MB, free: 8.41 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002085/0.2468, allocations: 216.5 kB / 417.6 MB, free: 8.199 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2468, allocations: 4 kB / 417.6 MB, free: 8.195 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002701/0.2471, allocations: 36 kB / 417.6 MB, free: 8.16 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.001574/0.2486, allocations: 1.024 MB / 418.7 MB, free: 7.246 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003546/0.249, allocations: 95.83 kB / 418.7 MB, free: 7.152 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.249, allocations: 0 / 418.7 MB, free: 7.152 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001375/0.2492, allocations: 51.92 kB / 418.8 MB, free: 7.102 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003659/0.2496, allocations: 59.27 kB / 418.9 MB, free: 7.047 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002443/0.252, allocations: 2.19 MB / 421 MB, free: 4.727 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002664/0.2523, allocations: 0.7319 MB / 421.8 MB, free: 3.969 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.563e-05/0.2524, allocations: 29.53 kB / 421.8 MB, free: 3.941 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.895e-05/0.2525, allocations: 59.41 kB / 421.9 MB, free: 3.883 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2525, allocations: 0 / 421.9 MB, free: 3.883 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01985/0.2724, allocations: 5.201 MB / 427.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.757/8.029, allocations: 8.516 kB / 427.1 MB, free: 14.77 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 & 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