Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_3_2_3_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.00137/0.00137, allocations: 110.5 kB / 17.73 MB, free: 5.359 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.001481/0.001481, allocations: 187.1 kB / 18.66 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.417/1.417, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001677/0.001677, allocations: 55.92 kB / 328 MB, free: 3.836 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09181/0.0935, allocations: 46.62 MB / 374.6 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003661/0.0972, allocations: 1.82 MB / 376.5 MB, free: 3.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00174/0.09898, allocations: 0.9603 MB / 377.4 MB, free: 2.301 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001126/0.09915, allocations: 0 / 377.4 MB, free: 2.301 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007009/0.09986, allocations: 167.5 kB / 377.6 MB, free: 2.137 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003434/0.1002, allocations: 123.5 kB / 377.7 MB, free: 2.016 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004565/0.1007, allocations: 147.6 kB / 377.8 MB, free: 1.871 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003018/0.101, allocations: 211.4 kB / 378 MB, free: 1.664 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001147/0.1011, allocations: 17.56 kB / 378.1 MB, free: 1.648 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001427/0.1013, allocations: 91.61 kB / 378.2 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001501/0.1014, allocations: 83.67 kB / 378.2 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.276e-05/0.1015, allocations: 15.94 kB / 378.3 MB, free: 1.461 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001639/0.1016, allocations: 59.91 kB / 378.3 MB, free: 1.402 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.14e-05/0.1017, allocations: 43.83 kB / 378.4 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000102/0.1018, allocations: 79.53 kB / 378.4 MB, free: 1.281 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000364/0.1022, allocations: 215.1 kB / 378.6 MB, free: 1.07 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.1022, allocations: 0 / 378.6 MB, free: 1.07 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1022, allocations: 3.938 kB / 378.6 MB, free: 1.066 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.1022, allocations: 4 kB / 378.6 MB, free: 1.062 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.001041/0.1033, allocations: 0.5349 MB / 379.2 MB, free: 484 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.838e-05/0.1033, allocations: 8.031 kB / 379.2 MB, free: 476 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.311e-05/0.1034, allocations: 38.73 kB / 379.2 MB, free: 428 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.177e-05/0.1035, allocations: 20.8 kB / 379.3 MB, free: 408 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003969/0.1039, allocations: 267 kB / 379.5 MB, free: 100 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.532e-05/0.1039, allocations: 8.297 kB / 379.5 MB, free: 92 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.356e-05/0.1039, allocations: 11.94 kB / 379.5 MB, free: 80 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1625/0.2665, allocations: 112 kB / 379.6 MB, free: 13.04 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.196e-05/0.2666, allocations: 1.5 kB / 379.6 MB, free: 13.04 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.699e-05/0.2666, allocations: 3 kB / 379.6 MB, free: 13.04 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.2666, allocations: 1.781 kB / 379.6 MB, free: 13.04 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002502/0.2669, allocations: 50.78 kB / 379.7 MB, free: 13.04 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000802/0.2677, allocations: 0.6006 MB / 380.3 MB, free: 12.53 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002721/0.268, allocations: 126.7 kB / 380.4 MB, free: 12.46 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000113/0.2681, allocations: 49.7 kB / 380.5 MB, free: 12.44 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.125e-05/0.2681, allocations: 4.125 kB / 380.5 MB, free: 12.44 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002516/0.2684, allocations: 123.5 kB / 380.6 MB, free: 12.37 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 2.825e-06/0.2684, allocations: 0 / 380.6 MB, free: 12.37 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005188/0.2689, allocations: 179.1 kB / 380.8 MB, free: 12.34 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.778e-05/0.269, allocations: 138.9 kB / 380.9 MB, free: 12.18 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003581/0.2694, allocations: 285 kB / 381.2 MB, free: 12.07 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.973e-05/0.2694, allocations: 30.55 kB / 381.2 MB, free: 12.04 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.504e-05/0.2695, allocations: 124.8 kB / 381.3 MB, free: 11.96 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.35e-05/0.2696, allocations: 34.66 kB / 381.4 MB, free: 11.95 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.524e-05/0.2696, allocations: 33.64 kB / 381.4 MB, free: 11.93 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.312e-05/0.2697, allocations: 329.4 kB / 381.7 MB, free: 11.62 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.129e-05/0.2698, allocations: 31.41 kB / 381.8 MB, free: 11.62 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001198/0.2699, allocations: 89.69 kB / 381.8 MB, free: 11.56 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001759/0.2701, allocations: 97.95 kB / 381.9 MB, free: 11.52 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.2701, allocations: 0 / 381.9 MB, free: 11.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002733/0.2704, allocations: 140 kB / 382.1 MB, free: 11.48 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/0.2704, allocations: 5.5 kB / 382.1 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.2705, allocations: 1.375 kB / 382.1 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.555e-05/0.2705, allocations: 7.797 kB / 382.1 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.725e-05/0.2706, allocations: 18.33 kB / 382.1 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.068e-05/0.2706, allocations: 7.344 kB / 382.1 MB, free: 11.47 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001192/0.2707, allocations: 20.22 kB / 382.1 MB, free: 11.47 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.408e-05/0.2708, allocations: 5.688 kB / 382.1 MB, free: 11.47 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.0001208/0.2709, allocations: 148.9 kB / 382.3 MB, free: 11.35 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.044e-05/0.2709, allocations: 25.69 kB / 382.3 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.504e-05/0.271, allocations: 26.48 kB / 382.3 MB, free: 11.33 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.271, allocations: 3 kB / 382.3 MB, free: 11.33 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.271, allocations: 5 kB / 382.3 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.064e-06/0.2711, allocations: 1.688 kB / 382.3 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000259/0.2713, allocations: 237.2 kB / 382.6 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.2713, allocations: 1.375 kB / 382.6 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.112e-05/0.2714, allocations: 8.781 kB / 382.6 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/0.2714, allocations: 3.406 kB / 382.6 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.621e-05/0.2714, allocations: 3.453 kB / 382.6 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.2714, allocations: 8.5 kB / 382.6 MB, free: 11.13 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.07e-06/0.2714, allocations: 4.688 kB / 382.6 MB, free: 11.13 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003248/0.2718, allocations: 173 kB / 382.8 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.958e-05/0.2718, allocations: 107.1 kB / 382.9 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.677e-05/0.2719, allocations: 2.969 kB / 382.9 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001014/0.272, allocations: 13.28 kB / 382.9 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.331e-05/0.272, allocations: 19.7 kB / 382.9 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.497e-05/0.2721, allocations: 6.172 kB / 382.9 MB, free: 10.93 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002564/0.2723, allocations: 210.9 kB / 383.1 MB, free: 10.85 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2723, allocations: 0 / 383.1 MB, free: 10.85 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002891/0.2726, allocations: 37.09 kB / 383.2 MB, free: 10.85 MB / 318.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.001925/0.2746, allocations: 1.03 MB / 384.2 MB, free: 9.996 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003701/0.275, allocations: 99.77 kB / 384.3 MB, free: 9.961 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.275, allocations: 0 / 384.3 MB, free: 9.961 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001523/0.2751, allocations: 51.72 kB / 384.3 MB, free: 9.945 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004659/0.2756, allocations: 61.64 kB / 384.4 MB, free: 9.918 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002557/0.2782, allocations: 2.166 MB / 386.6 MB, free: 8.363 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001782/0.2784, allocations: 0.7291 MB / 387.3 MB, free: 7.664 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001161/0.2785, allocations: 30.19 kB / 387.3 MB, free: 7.652 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.669e-05/0.2786, allocations: 57.03 kB / 387.4 MB, free: 7.613 MB / 318.1 MB Notification: Performance of SimCode: time 8.72e-07/0.2786, allocations: 0 / 387.4 MB, free: 7.613 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02935/0.308, allocations: 5.114 MB / 392.5 MB, free: 6.645 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.519/8.827, allocations: 5.594 kB / 392.5 MB, free: 6.641 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches