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.00116/0.00116, allocations: 114.5 kB / 17.73 MB, free: 5.336 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.001232/0.001232, allocations: 187 kB / 18.67 MB, free: 4.402 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.346/1.346, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001323/0.001324, allocations: 51.94 kB / 328 MB, free: 3.82 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08207/0.08341, allocations: 46.62 MB / 374.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.00381/0.08726, allocations: 1.809 MB / 376.4 MB, free: 3.266 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001706/0.08901, allocations: 0.9603 MB / 377.4 MB, free: 2.297 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001584/0.0892, allocations: 4 kB / 377.4 MB, free: 2.293 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007277/0.08999, allocations: 167.5 kB / 377.6 MB, free: 2.129 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000426/0.09043, allocations: 135.5 kB / 377.7 MB, free: 1.996 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005429/0.09099, allocations: 143.7 kB / 377.8 MB, free: 1.855 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003645/0.09136, allocations: 207.4 kB / 378 MB, free: 1.652 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001293/0.0915, allocations: 29.53 kB / 378.1 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001722/0.09168, allocations: 83.62 kB / 378.2 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001625/0.09185, allocations: 87.67 kB / 378.2 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.574e-05/0.0919, allocations: 8 kB / 378.3 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001646/0.09207, allocations: 63.89 kB / 378.3 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.516e-05/0.09215, allocations: 43.84 kB / 378.4 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000108/0.09227, allocations: 71.55 kB / 378.4 MB, free: 1.273 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003972/0.09269, allocations: 223 kB / 378.6 MB, free: 1.055 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.09271, allocations: 0 / 378.6 MB, free: 1.055 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.09272, allocations: 4 kB / 378.6 MB, free: 1.051 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.995e-06/0.09273, allocations: 4 kB / 378.7 MB, free: 1.047 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.000979/0.09372, allocations: 0.527 MB / 379.2 MB, free: 476 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.09377, allocations: 12.03 kB / 379.2 MB, free: 464 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.057e-05/0.09383, allocations: 38.73 kB / 379.2 MB, free: 416 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.969e-05/0.0939, allocations: 20.8 kB / 379.3 MB, free: 396 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003632/0.09427, allocations: 266.9 kB / 379.5 MB, free: 88 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.919e-05/0.0943, allocations: 8.375 kB / 379.5 MB, free: 80 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.146e-05/0.09433, allocations: 15.92 kB / 379.5 MB, free: 64 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1814/0.2758, allocations: 105.4 kB / 379.6 MB, free: 13.62 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.92e-05/0.2759, allocations: 0.875 kB / 379.6 MB, free: 13.62 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.013e-05/0.2759, allocations: 4.062 kB / 379.6 MB, free: 13.62 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.846e-06/0.2759, allocations: 2.547 kB / 379.6 MB, free: 13.62 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003034/0.2762, allocations: 49.64 kB / 379.7 MB, free: 13.62 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009051/0.2771, allocations: 0.6041 MB / 380.3 MB, free: 13.11 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003497/0.2775, allocations: 125.1 kB / 380.4 MB, free: 13.04 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001515/0.2777, allocations: 54.67 kB / 380.5 MB, free: 13.02 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.183e-05/0.2777, allocations: 2.75 kB / 380.5 MB, free: 13.02 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003162/0.2781, allocations: 125.5 kB / 380.6 MB, free: 12.95 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 3.366e-06/0.2781, allocations: 0 / 380.6 MB, free: 12.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006207/0.2787, allocations: 173 kB / 380.8 MB, free: 12.92 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.126e-05/0.2788, allocations: 132.5 kB / 380.9 MB, free: 12.76 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004594/0.2792, allocations: 290.3 kB / 381.2 MB, free: 12.61 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.174e-05/0.2793, allocations: 32.45 kB / 381.2 MB, free: 12.57 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.483e-05/0.2794, allocations: 124 kB / 381.3 MB, free: 12.46 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.558e-05/0.2794, allocations: 35.22 kB / 381.4 MB, free: 12.44 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.595e-05/0.2795, allocations: 36.03 kB / 381.4 MB, free: 12.41 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.509e-05/0.2796, allocations: 332.2 kB / 381.7 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001448/0.2798, allocations: 40.59 kB / 381.8 MB, free: 12.08 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001639/0.28, allocations: 77.8 kB / 381.8 MB, free: 12.02 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002484/0.2802, allocations: 96.19 kB / 381.9 MB, free: 11.95 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.2802, allocations: 1.375 kB / 381.9 MB, free: 11.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003973/0.2806, allocations: 141.8 kB / 382.1 MB, free: 11.88 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.182e-05/0.2807, allocations: 10.06 kB / 382.1 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.2807, allocations: 1.375 kB / 382.1 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.06e-05/0.2807, allocations: 2.75 kB / 382.1 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001309/0.2809, allocations: 12.92 kB / 382.1 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/0.2809, allocations: 8.844 kB / 382.1 MB, free: 11.87 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001725/0.2811, allocations: 18.95 kB / 382.1 MB, free: 11.87 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.656e-05/0.2811, allocations: 8.125 kB / 382.1 MB, free: 11.86 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.0001394/0.2813, allocations: 150.7 kB / 382.3 MB, free: 11.73 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.09e-05/0.2813, allocations: 22.47 kB / 382.3 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.165e-05/0.2814, allocations: 25.86 kB / 382.3 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.2814, allocations: 1.375 kB / 382.3 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.2814, allocations: 7.656 kB / 382.3 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.226e-06/0.2814, allocations: 2.078 kB / 382.3 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002753/0.2817, allocations: 241.2 kB / 382.6 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-06/0.2817, allocations: 2.172 kB / 382.6 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.818e-05/0.2818, allocations: 4.828 kB / 382.6 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.2818, allocations: 2 kB / 382.6 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/0.2818, allocations: 8.062 kB / 382.6 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.469e-06/0.2818, allocations: 8.562 kB / 382.6 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/0.2819, allocations: 5.312 kB / 382.6 MB, free: 11.47 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004301/0.2823, allocations: 171.8 kB / 382.8 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.249e-05/0.2824, allocations: 103 kB / 382.9 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.37e-05/0.2824, allocations: 7.25 kB / 382.9 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000147/0.2826, allocations: 10.67 kB / 382.9 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.738e-05/0.2827, allocations: 18.89 kB / 382.9 MB, free: 11.24 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.867e-05/0.2827, allocations: 5.562 kB / 382.9 MB, free: 11.24 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003417/0.2831, allocations: 213.2 kB / 383.1 MB, free: 11.12 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2831, allocations: 7.531 kB / 383.1 MB, free: 11.11 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004669/0.2836, allocations: 37.02 kB / 383.2 MB, free: 11.11 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.002075/0.2857, allocations: 1.02 MB / 384.2 MB, free: 10.25 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004451/0.2861, allocations: 95.53 kB / 384.3 MB, free: 10.22 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.2862, allocations: 0 / 384.3 MB, free: 10.22 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001977/0.2864, allocations: 55.81 kB / 384.3 MB, free: 10.2 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005371/0.2869, allocations: 65.36 kB / 384.4 MB, free: 10.17 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003272/0.2902, allocations: 2.169 MB / 386.6 MB, free: 8.609 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001888/0.2904, allocations: 0.7321 MB / 387.3 MB, free: 7.91 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001341/0.2906, allocations: 25.89 kB / 387.3 MB, free: 7.902 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001243/0.2907, allocations: 55.88 kB / 387.4 MB, free: 7.863 MB / 318.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2907, allocations: 0 / 387.4 MB, free: 7.863 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03195/0.3227, allocations: 5.122 MB / 392.5 MB, free: 6.883 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.932/8.255, allocations: 9.719 kB / 392.5 MB, free: 6.875 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