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.001785/0.001785, allocations: 106.6 kB / 17.06 MB, free: 6.098 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.001996/0.001996, allocations: 193.4 kB / 18 MB, free: 5.172 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.379/1.379, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 51.92 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2401/0.2416, allocations: 49.43 MB / 400.2 MB, free: 8.387 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003485/0.2451, allocations: 1.835 MB / 402.1 MB, free: 6.945 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001797/0.2469, allocations: 1.025 MB / 403.1 MB, free: 5.918 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001164/0.2471, allocations: 11.94 kB / 403.1 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006532/0.2477, allocations: 159.5 kB / 403.3 MB, free: 5.75 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00033/0.2481, allocations: 119.5 kB / 403.4 MB, free: 5.633 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004906/0.2486, allocations: 185.7 kB / 403.6 MB, free: 5.453 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003009/0.2489, allocations: 211.4 kB / 403.8 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001084/0.249, allocations: 21.55 kB / 403.8 MB, free: 5.227 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001523/0.2492, allocations: 79.69 kB / 403.9 MB, free: 5.148 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001486/0.2493, allocations: 87.61 kB / 403.9 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.178e-05/0.2494, allocations: 12 kB / 404 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001609/0.2495, allocations: 55.95 kB / 404 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.599e-05/0.2496, allocations: 47.84 kB / 404.1 MB, free: 4.949 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001016/0.2497, allocations: 79.55 kB / 404.1 MB, free: 4.871 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003664/0.2501, allocations: 226.1 kB / 404.4 MB, free: 4.652 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.2501, allocations: 0 / 404.4 MB, free: 4.652 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2501, allocations: 0 / 404.4 MB, free: 4.652 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.2501, allocations: 0 / 404.4 MB, free: 4.652 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.0009236/0.2511, allocations: 0.5233 MB / 404.9 MB, free: 4.074 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.2511, allocations: 8.031 kB / 404.9 MB, free: 4.066 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.507e-05/0.2512, allocations: 38.73 kB / 404.9 MB, free: 4.02 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.913e-05/0.2513, allocations: 24.8 kB / 404.9 MB, free: 3.996 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003595/0.2516, allocations: 266.6 kB / 405.2 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.05e-05/0.2516, allocations: 4 kB / 405.2 MB, free: 3.691 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.76e-05/0.2517, allocations: 8 kB / 405.2 MB, free: 3.684 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002573/0.2519, allocations: 113.9 kB / 405.3 MB, free: 3.551 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.252, allocations: 7.938 kB / 405.3 MB, free: 3.543 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.242e-05/0.252, allocations: 0 / 405.3 MB, free: 3.543 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.252, allocations: 4 kB / 405.3 MB, free: 3.539 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001528/0.2521, allocations: 51.91 kB / 405.4 MB, free: 3.488 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007064/0.2529, allocations: 0.6066 MB / 406 MB, free: 2.82 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002626/0.2531, allocations: 119.9 kB / 406.1 MB, free: 2.676 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000112/0.2533, allocations: 54.5 kB / 406.2 MB, free: 2.613 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.437e-05/0.2533, allocations: 7.984 kB / 406.2 MB, free: 2.605 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000237/0.2535, allocations: 121.9 kB / 406.3 MB, free: 2.465 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 2.014e-06/0.2535, allocations: 0 / 406.3 MB, free: 2.465 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004893/0.254, allocations: 181.8 kB / 406.5 MB, free: 2.281 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.763e-05/0.2541, allocations: 132.5 kB / 406.6 MB, free: 2.121 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003303/0.2545, allocations: 289 kB / 406.9 MB, free: 1.824 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.375e-05/0.2545, allocations: 29.69 kB / 406.9 MB, free: 1.789 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.962e-05/0.2546, allocations: 120.4 kB / 407 MB, free: 1.664 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.432e-05/0.2547, allocations: 31.8 kB / 407.1 MB, free: 1.633 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.216e-05/0.2547, allocations: 33.7 kB / 407.1 MB, free: 1.594 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.2549, allocations: 330.8 kB / 407.4 MB, free: 1.262 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.144e-05/0.255, allocations: 36.08 kB / 407.5 MB, free: 1.227 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001369/0.2551, allocations: 89.22 kB / 407.5 MB, free: 1.121 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000192/0.2553, allocations: 96.25 kB / 407.6 MB, free: 1.012 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.2553, allocations: 7.938 kB / 407.6 MB, free: 1.004 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003029/0.2557, allocations: 137.5 kB / 407.8 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.2557, allocations: 7.984 kB / 407.8 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.2557, allocations: 0 / 407.8 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.977e-05/0.2557, allocations: 7.938 kB / 407.8 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.806e-05/0.2558, allocations: 19.94 kB / 407.8 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.2558, allocations: 4.094 kB / 407.8 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001123/0.2559, allocations: 23.81 kB / 407.8 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.321e-05/0.256, allocations: 4 kB / 407.8 MB, free: 0.7969 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.0001484/0.2561, allocations: 149.7 kB / 408 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.995e-05/0.2562, allocations: 19.86 kB / 408 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.157e-05/0.2562, allocations: 29.64 kB / 408 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.2562, allocations: 7.938 kB / 408 MB, free: 0.582 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.2563, allocations: 4.125 kB / 408 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.2563, allocations: 4 kB / 408.1 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000257/0.2565, allocations: 245.6 kB / 408.3 MB, free: 292 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.2565, allocations: 0 / 408.3 MB, free: 292 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.014e-05/0.2566, allocations: 4 kB / 408.3 MB, free: 288 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.2566, allocations: 4 kB / 408.3 MB, free: 284 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.756e-05/0.2566, allocations: 7.984 kB / 408.3 MB, free: 276 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.928e-06/0.2566, allocations: 3.938 kB / 408.3 MB, free: 272 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.2566, allocations: 4 kB / 408.3 MB, free: 268 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003184/0.2569, allocations: 174.6 kB / 408.5 MB, free: 68 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.361e-05/0.257, allocations: 96.95 kB / 408.6 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.924e-05/0.2571, allocations: 7.984 kB / 408.6 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.825e-05/0.2572, allocations: 11.94 kB / 408.6 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.085e-05/0.2573, allocations: 19.97 kB / 408.6 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.59e-05/0.2573, allocations: 4 kB / 408.6 MB, free: 15.91 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00022/0.2575, allocations: 212.5 kB / 408.8 MB, free: 15.7 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2575, allocations: 0 / 408.8 MB, free: 15.7 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002725/0.2578, allocations: 35.94 kB / 408.9 MB, free: 15.67 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.002016/0.2598, allocations: 1.037 MB / 409.9 MB, free: 14.76 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000297/0.2601, allocations: 91.89 kB / 410 MB, free: 14.67 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.2601, allocations: 0 / 410 MB, free: 14.67 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001397/0.2603, allocations: 47.92 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.0003821/0.2607, allocations: 52.59 kB / 410.1 MB, free: 14.57 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002858/0.2636, allocations: 2.159 MB / 412.3 MB, free: 12.29 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004262/0.264, allocations: 0.7395 MB / 413 MB, free: 11.53 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001026/0.2641, allocations: 37.5 kB / 413 MB, free: 11.49 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001062/0.2642, allocations: 55.42 kB / 413.1 MB, free: 11.44 MB / 334.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2642, allocations: 3.938 kB / 413.1 MB, free: 11.44 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0295/0.2937, allocations: 5.112 MB / 418.2 MB, free: 6.434 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.053/8.347, allocations: 10.84 kB / 418.2 MB, free: 6.426 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