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.001419/0.00142, allocations: 111.7 kB / 17.06 MB, free: 5.992 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.001534/0.001534, 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.353/1.353, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001017/0.001017, allocations: 43.92 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2707/0.2718, allocations: 49.43 MB / 400.2 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003624/0.2754, allocations: 1.827 MB / 402 MB, free: 6.969 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001715/0.2772, allocations: 1.035 MB / 403.1 MB, free: 5.938 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001526/0.2774, allocations: 4 kB / 403.1 MB, free: 5.934 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007125/0.2781, allocations: 159.5 kB / 403.2 MB, free: 5.777 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003599/0.2785, allocations: 131.5 kB / 403.4 MB, free: 5.648 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005017/0.279, allocations: 181.6 kB / 403.5 MB, free: 5.473 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002914/0.2793, allocations: 207.4 kB / 403.8 MB, free: 5.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001082/0.2794, allocations: 17.55 kB / 403.8 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001406/0.2795, allocations: 87.62 kB / 403.9 MB, free: 5.168 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001445/0.2797, allocations: 79.67 kB / 403.9 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.858e-05/0.2797, allocations: 16 kB / 403.9 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001544/0.2799, allocations: 63.89 kB / 404 MB, free: 5.012 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.523e-05/0.28, allocations: 43.84 kB / 404.1 MB, free: 4.969 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.848e-05/0.2801, allocations: 79.55 kB / 404.1 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003655/0.2805, allocations: 222.2 kB / 404.3 MB, free: 4.676 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.2805, allocations: 0 / 404.3 MB, free: 4.676 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2805, allocations: 0 / 404.3 MB, free: 4.676 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.197e-05/0.2805, allocations: 0 / 404.3 MB, free: 4.676 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.00101/0.2815, allocations: 0.5311 MB / 404.9 MB, free: 4.09 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.2816, allocations: 8.031 kB / 404.9 MB, free: 4.082 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.355e-05/0.2816, allocations: 38.75 kB / 404.9 MB, free: 4.035 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.571e-05/0.2817, allocations: 24.78 kB / 404.9 MB, free: 4.012 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003704/0.2821, allocations: 262.6 kB / 405.2 MB, free: 3.715 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.875e-05/0.2821, allocations: 8 kB / 405.2 MB, free: 3.707 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.843e-05/0.2821, allocations: 4 kB / 405.2 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002552/0.2824, allocations: 117.9 kB / 405.3 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.2824, allocations: 0 / 405.3 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.417e-05/0.2824, allocations: 7.938 kB / 405.3 MB, free: 3.559 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.685e-06/0.2824, allocations: 4 kB / 405.3 MB, free: 3.555 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001648/0.2826, allocations: 47.91 kB / 405.4 MB, free: 3.508 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000784/0.2834, allocations: 0.6105 MB / 406 MB, free: 2.836 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002633/0.2837, allocations: 119.9 kB / 406.1 MB, free: 2.691 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001073/0.2838, allocations: 58.56 kB / 406.2 MB, free: 2.625 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.396e-05/0.2838, allocations: 0 / 406.2 MB, free: 2.625 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002469/0.2841, allocations: 121.9 kB / 406.3 MB, free: 2.484 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 2.164e-06/0.2841, allocations: 4 kB / 406.3 MB, free: 2.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004786/0.2846, allocations: 177.4 kB / 406.5 MB, free: 2.301 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.61e-05/0.2847, allocations: 128.5 kB / 406.6 MB, free: 2.145 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002905/0.285, allocations: 289 kB / 406.9 MB, free: 1.848 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.149e-05/0.285, allocations: 33.64 kB / 406.9 MB, free: 1.809 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.14e-05/0.2851, allocations: 128.3 kB / 407 MB, free: 1.676 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.046e-05/0.2851, allocations: 23.8 kB / 407.1 MB, free: 1.652 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.579e-05/0.2852, allocations: 37.83 kB / 407.1 MB, free: 1.609 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.2853, allocations: 330.8 kB / 407.4 MB, free: 1.277 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.152e-05/0.2854, allocations: 31.98 kB / 407.5 MB, free: 1.246 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001293/0.2856, allocations: 85.36 kB / 407.5 MB, free: 1.145 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001726/0.2858, allocations: 96.75 kB / 407.6 MB, free: 1.035 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.2858, allocations: 4 kB / 407.6 MB, free: 1.031 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002739/0.286, allocations: 141.4 kB / 407.8 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.2861, allocations: 4 kB / 407.8 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.2861, allocations: 12.03 kB / 407.8 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.2861, allocations: 7.922 kB / 407.8 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.286e-05/0.2862, allocations: 12 kB / 407.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.2862, allocations: 0 / 407.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001091/0.2863, allocations: 23.88 kB / 407.8 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.212e-05/0.2863, allocations: 7.938 kB / 407.8 MB, free: 0.8203 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.0001314/0.2865, allocations: 149.7 kB / 408 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.669e-05/0.2865, allocations: 19.86 kB / 408 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.173e-05/0.2866, allocations: 29.7 kB / 408 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.2866, allocations: 7.938 kB / 408 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.2866, allocations: 0 / 408 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.2866, allocations: 0 / 408 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000223/0.2868, allocations: 245.6 kB / 408.3 MB, free: 324 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.2868, allocations: 0 / 408.3 MB, free: 324 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.303e-05/0.2869, allocations: 8 kB / 408.3 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.2869, allocations: 7.938 kB / 408.3 MB, free: 308 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.261e-05/0.2869, allocations: 0 / 408.3 MB, free: 308 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.943e-06/0.2869, allocations: 11.92 kB / 408.3 MB, free: 296 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2869, allocations: 128 / 408.3 MB, free: 296 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003082/0.2872, allocations: 186.5 kB / 408.5 MB, free: 84 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.752e-05/0.2874, allocations: 89.02 kB / 408.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.636e-05/0.2874, allocations: 8 kB / 408.6 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001006/0.2875, allocations: 15.92 kB / 408.6 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.986e-05/0.2876, allocations: 15.98 kB / 408.6 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.914e-05/0.2876, allocations: 11.92 kB / 408.6 MB, free: 15.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002152/0.2878, allocations: 212.5 kB / 408.8 MB, free: 15.72 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.2878, allocations: 4 kB / 408.8 MB, free: 15.71 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002633/0.2881, allocations: 31.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.001418/0.2895, allocations: 1.033 MB / 409.9 MB, free: 14.78 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002533/0.2898, allocations: 87.84 kB / 410 MB, free: 14.69 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.2898, allocations: 0 / 410 MB, free: 14.69 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001362/0.2899, allocations: 60.16 kB / 410 MB, free: 14.63 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003323/0.2903, allocations: 41.91 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.00249/0.2928, allocations: 2.158 MB / 412.2 MB, free: 12.31 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003207/0.2931, allocations: 0.7395 MB / 413 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.762e-05/0.2932, allocations: 29.52 kB / 413 MB, free: 11.52 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.039e-05/0.2933, allocations: 51.42 kB / 413.1 MB, free: 11.47 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2933, allocations: 0 / 413.1 MB, free: 11.47 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02223/0.3156, allocations: 5.125 MB / 418.2 MB, free: 6.457 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.731/8.046, allocations: 9.812 kB / 418.2 MB, free: 6.453 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