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.001028/0.001028, allocations: 113.9 kB / 17.07 MB, free: 5.988 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.001106/0.001106, allocations: 198.8 kB / 18.01 MB, free: 5.066 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.327/1.327, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001023/0.001023, allocations: 43.94 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2403/0.2413, allocations: 49.44 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003096/0.2445, allocations: 1.834 MB / 402.1 MB, free: 6.961 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001725/0.2462, allocations: 1.036 MB / 403.1 MB, free: 5.922 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001153/0.2464, allocations: 4 kB / 403.1 MB, free: 5.918 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006255/0.247, allocations: 151.5 kB / 403.2 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003056/0.2473, allocations: 131.5 kB / 403.4 MB, free: 5.641 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004486/0.2478, allocations: 182.7 kB / 403.6 MB, free: 5.465 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002384/0.248, allocations: 207.4 kB / 403.8 MB, free: 5.262 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001012/0.2481, allocations: 17.55 kB / 403.8 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001335/0.2483, allocations: 83.69 kB / 403.9 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001229/0.2484, allocations: 91.61 kB / 403.9 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.636e-05/0.2484, allocations: 12 kB / 404 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001413/0.2486, allocations: 55.95 kB / 404 MB, free: 5.008 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.116e-05/0.2487, allocations: 47.84 kB / 404.1 MB, free: 4.961 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.6e-05/0.2487, allocations: 79.52 kB / 404.1 MB, free: 4.883 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003244/0.2491, allocations: 226.1 kB / 404.4 MB, free: 4.664 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2491, allocations: 0 / 404.4 MB, free: 4.664 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2491, allocations: 0 / 404.4 MB, free: 4.664 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.982e-06/0.2491, allocations: 0 / 404.4 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.0008822/0.25, allocations: 0.5272 MB / 404.9 MB, free: 4.082 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.25, allocations: 8.031 kB / 404.9 MB, free: 4.074 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.151e-05/0.2501, allocations: 38.73 kB / 404.9 MB, free: 4.027 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.236e-05/0.2501, allocations: 20.8 kB / 405 MB, free: 4.008 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003076/0.2505, allocations: 270.5 kB / 405.2 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.488e-05/0.2505, allocations: 0 / 405.2 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.747e-05/0.2505, allocations: 12 kB / 405.2 MB, free: 3.691 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002353/0.2507, allocations: 110 kB / 405.3 MB, free: 3.562 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.2508, allocations: 7.875 kB / 405.3 MB, free: 3.555 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.523e-05/0.2508, allocations: 7.922 kB / 405.3 MB, free: 3.547 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.2508, allocations: 0 / 405.3 MB, free: 3.547 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001439/0.2509, allocations: 51.92 kB / 405.4 MB, free: 3.496 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006329/0.2516, allocations: 0.6067 MB / 406 MB, free: 2.828 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002475/0.2518, allocations: 119.9 kB / 406.1 MB, free: 2.684 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001227/0.252, allocations: 58.55 kB / 406.2 MB, free: 2.617 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.601e-05/0.252, allocations: 3.938 kB / 406.2 MB, free: 2.613 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000215/0.2522, allocations: 121.9 kB / 406.3 MB, free: 2.473 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.262e-06/0.2522, allocations: 0 / 406.3 MB, free: 2.473 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004378/0.2527, allocations: 177.8 kB / 406.5 MB, free: 2.293 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.317e-05/0.2528, allocations: 132.5 kB / 406.6 MB, free: 2.133 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002951/0.2531, allocations: 292.9 kB / 406.9 MB, free: 1.832 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.2531, allocations: 25.7 kB / 406.9 MB, free: 1.801 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.844e-05/0.2532, allocations: 120.4 kB / 407 MB, free: 1.676 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.412e-05/0.2533, allocations: 39.91 kB / 407.1 MB, free: 1.637 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.229e-05/0.2533, allocations: 29.72 kB / 407.1 MB, free: 1.602 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.2534, allocations: 330.8 kB / 407.4 MB, free: 1.27 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.803e-05/0.2535, allocations: 27.98 kB / 407.5 MB, free: 1.242 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001142/0.2537, allocations: 81.98 kB / 407.5 MB, free: 1.141 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000175/0.2538, allocations: 100.3 kB / 407.6 MB, free: 1.027 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.2539, allocations: 0 / 407.6 MB, free: 1.027 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002602/0.2541, allocations: 145.4 kB / 407.8 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.2541, allocations: 4.094 kB / 407.8 MB, free: 0.875 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.2542, allocations: 4 kB / 407.8 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.2542, allocations: 7.938 kB / 407.8 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.609e-05/0.2543, allocations: 19.94 kB / 407.8 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.205e-06/0.2543, allocations: 3.984 kB / 407.8 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001056/0.2544, allocations: 19.83 kB / 407.8 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.939e-05/0.2544, allocations: 7.984 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.0001224/0.2545, allocations: 145.7 kB / 408 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.602e-05/0.2546, allocations: 27.84 kB / 408 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.155e-05/0.2546, allocations: 21.72 kB / 408 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.2547, allocations: 7.938 kB / 408 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.2547, allocations: 3.938 kB / 408 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.2547, allocations: 3.984 kB / 408 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002168/0.2549, allocations: 241.6 kB / 408.3 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.2549, allocations: 4 kB / 408.3 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.82e-05/0.2549, allocations: 7.984 kB / 408.3 MB, free: 304 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.462e-06/0.255, allocations: 7.984 kB / 408.3 MB, free: 296 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.022e-05/0.255, allocations: 0 / 408.3 MB, free: 296 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.255, allocations: 3.938 kB / 408.3 MB, free: 292 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.255, allocations: 8 kB / 408.3 MB, free: 284 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000294/0.2553, allocations: 178.5 kB / 408.5 MB, free: 80 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.509e-05/0.2554, allocations: 100.9 kB / 408.6 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.272e-05/0.2554, allocations: 4 kB / 408.6 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/0.2555, allocations: 19.92 kB / 408.6 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.918e-05/0.2556, allocations: 11.98 kB / 408.6 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.615e-05/0.2556, allocations: 8 kB / 408.6 MB, free: 15.92 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000194/0.2558, allocations: 208.5 kB / 408.8 MB, free: 15.71 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2558, allocations: 0 / 408.8 MB, free: 15.71 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000259/0.2561, allocations: 35.94 kB / 408.9 MB, free: 15.68 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.001417/0.2575, allocations: 1.037 MB / 409.9 MB, free: 14.77 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002819/0.2578, allocations: 95.89 kB / 410 MB, free: 14.68 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2578, allocations: 0 / 410 MB, free: 14.68 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001253/0.2579, allocations: 52.11 kB / 410 MB, free: 14.62 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003544/0.2583, allocations: 49.7 kB / 410.1 MB, free: 14.58 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002424/0.2607, allocations: 2.151 MB / 412.2 MB, free: 12.3 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002897/0.261, allocations: 0.7434 MB / 413 MB, free: 11.54 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.012e-05/0.2611, allocations: 21.55 kB / 413 MB, free: 11.52 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.358e-05/0.2612, allocations: 55.42 kB / 413.1 MB, free: 11.46 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2612, allocations: 3.938 kB / 413.1 MB, free: 11.46 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02089/0.2821, allocations: 5.132 MB / 418.2 MB, free: 6.441 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.724/8.007, allocations: 8.391 kB / 418.2 MB, free: 6.434 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_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.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_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches