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.00107/0.00107, allocations: 107.1 kB / 16.92 MB, free: 5.777 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.001107/0.001107, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.326/1.326, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001012/0.001013, allocations: 50.97 kB / 300.7 MB, free: 5.781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08456/0.08559, allocations: 49.44 MB / 350.2 MB, free: 4.332 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003286/0.08891, allocations: 1.82 MB / 352 MB, free: 2.488 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001779/0.09071, allocations: 1.029 MB / 353 MB, free: 1.457 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001409/0.09088, allocations: 4 kB / 353 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006214/0.09153, allocations: 167.5 kB / 353.2 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000323/0.09186, allocations: 123.5 kB / 353.3 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004793/0.09235, allocations: 182.5 kB / 353.5 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003107/0.09267, allocations: 207.4 kB / 353.7 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000114/0.0928, allocations: 25.53 kB / 353.7 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001528/0.09296, allocations: 79.64 kB / 353.8 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001383/0.0931, allocations: 83.67 kB / 353.9 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.205e-05/0.09314, allocations: 8 kB / 353.9 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001585/0.09331, allocations: 51.98 kB / 353.9 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.79e-05/0.0934, allocations: 59.75 kB / 354 MB, free: 500 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.323e-05/0.0935, allocations: 75.55 kB / 354 MB, free: 424 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003416/0.09385, allocations: 211.6 kB / 354.3 MB, free: 212 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.09386, allocations: 0 / 354.3 MB, free: 212 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.09387, allocations: 0 / 354.3 MB, free: 212 kB / 286.1 MB Notification: Performance of Transformations before backend: time 9.528e-06/0.09388, allocations: 0 / 354.3 MB, free: 212 kB / 286.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.0009848/0.09487, allocations: 0.5273 MB / 354.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/0.09493, allocations: 11.89 kB / 354.8 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.379e-05/0.09498, allocations: 42.69 kB / 354.8 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.659e-05/0.09505, allocations: 20.75 kB / 354.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003093/0.09537, allocations: 258.6 kB / 355.1 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.818e-05/0.0954, allocations: 4 kB / 355.1 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.65e-05/0.09542, allocations: 8 kB / 355.1 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002458/0.09567, allocations: 117 kB / 355.2 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.09569, allocations: 0 / 355.2 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.474e-05/0.09571, allocations: 12 kB / 355.2 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.09572, allocations: 0 / 355.2 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001545/0.09588, allocations: 51.91 kB / 355.3 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006223/0.09651, allocations: 0.6026 MB / 355.9 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002553/0.09678, allocations: 127.9 kB / 356 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001031/0.0969, allocations: 46.56 kB / 356.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.762e-05/0.09694, allocations: 16.05 kB / 356.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002147/0.09716, allocations: 121.8 kB / 356.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.553e-06/0.09717, allocations: 3.938 kB / 356.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004353/0.09761, allocations: 177.9 kB / 356.4 MB, free: 13.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.142e-05/0.09769, allocations: 132.5 kB / 356.5 MB, free: 13.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002899/0.09799, allocations: 288.9 kB / 356.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.09802, allocations: 29.7 kB / 356.8 MB, free: 13.35 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.079e-05/0.0981, allocations: 120.4 kB / 356.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.064e-05/0.09814, allocations: 27.64 kB / 357 MB, free: 13.2 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.626e-05/0.0982, allocations: 33.7 kB / 357 MB, free: 13.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.09833, allocations: 330.8 kB / 357.3 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.768e-05/0.09843, allocations: 40 kB / 357.4 MB, free: 12.79 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001276/0.09857, allocations: 77.94 kB / 357.4 MB, free: 12.69 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001959/0.09877, allocations: 104.3 kB / 357.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.09878, allocations: 0 / 357.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002888/0.09908, allocations: 137.3 kB / 357.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.0991, allocations: 11.94 kB / 357.7 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.09912, allocations: 0 / 357.7 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.09914, allocations: 4 kB / 357.7 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.554e-05/0.09923, allocations: 19.92 kB / 357.7 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.245e-06/0.09925, allocations: 8.078 kB / 357.7 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001212/0.09937, allocations: 15.89 kB / 357.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.345e-05/0.09939, allocations: 8 kB / 357.7 MB, free: 12.37 MB / 302.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.0001273/0.09953, allocations: 149.7 kB / 357.9 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.794e-05/0.09957, allocations: 15.81 kB / 357.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.182e-05/0.09964, allocations: 25.7 kB / 357.9 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.09965, allocations: 7.938 kB / 357.9 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.09966, allocations: 0 / 357.9 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.09967, allocations: 4 kB / 357.9 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002379/0.09991, allocations: 241.7 kB / 358.2 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.09993, allocations: 7.938 kB / 358.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.812e-05/0.09996, allocations: 4 kB / 358.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.09997, allocations: 0 / 358.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.53e-05/0.09999, allocations: 8 kB / 358.2 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.1, allocations: 3.938 kB / 358.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.1, allocations: 0 / 358.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003023/0.1003, allocations: 182.5 kB / 358.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.784e-05/0.1004, allocations: 92.92 kB / 358.5 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.722e-05/0.1004, allocations: 8 kB / 358.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000102/0.1005, allocations: 11.92 kB / 358.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.731e-05/0.1006, allocations: 15.98 kB / 358.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.518e-05/0.1006, allocations: 4 kB / 358.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000204/0.1008, allocations: 216.5 kB / 358.7 MB, free: 11.28 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1008, allocations: 0 / 358.7 MB, free: 11.28 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002728/0.1011, allocations: 43.92 kB / 358.8 MB, free: 11.24 MB / 302.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.001453/0.1026, allocations: 1.026 MB / 359.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002792/0.1029, allocations: 99.78 kB / 359.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1029, allocations: 0 / 359.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000132/0.103, allocations: 55.89 kB / 359.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003449/0.1034, allocations: 58.62 kB / 360 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002458/0.1058, allocations: 2.154 MB / 362.1 MB, free: 7.855 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002723/0.1061, allocations: 0.7358 MB / 362.9 MB, free: 7.094 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.866e-05/0.1062, allocations: 25.53 kB / 362.9 MB, free: 7.07 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.034e-05/0.1063, allocations: 55.42 kB / 363 MB, free: 7.016 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1063, allocations: 0 / 363 MB, free: 7.016 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02207/0.1284, allocations: 5.015 MB / 368 MB, free: 2.094 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.315/7.443, allocations: 4.062 kB / 368 MB, free: 2.09 MB / 302.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