Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001426/0.001426, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001506/0.001505, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.46/1.46, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003063/0.003063, allocations: 63.89 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3093/0.3124, allocations: 50.55 MB / 408.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003654/0.3161, allocations: 1.847 MB / 410.6 MB, free: 15.69 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002336/0.3185, allocations: 1.18 MB / 411.8 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001231/0.3186, allocations: 0 / 411.8 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006525/0.3193, allocations: 171.5 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005012/0.3198, allocations: 167.3 kB / 412.1 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003834/0.3202, allocations: 135.6 kB / 412.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002986/0.3205, allocations: 223.4 kB / 412.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.974e-05/0.3206, allocations: 21.56 kB / 412.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001486/0.3208, allocations: 87.61 kB / 412.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002107/0.321, allocations: 91.61 kB / 412.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.467e-05/0.3211, allocations: 8 kB / 412.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001418/0.3212, allocations: 55.91 kB / 412.7 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.519e-05/0.3213, allocations: 47.84 kB / 412.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001031/0.3214, allocations: 83.52 kB / 412.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003697/0.3218, allocations: 222.2 kB / 413.1 MB, free: 13.22 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.216e-06/0.3218, allocations: 4 kB / 413.1 MB, free: 13.21 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3218, allocations: 8 kB / 413.1 MB, free: 13.21 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.855e-06/0.3218, allocations: 0 / 413.1 MB, free: 13.21 MB / 334.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.0009992/0.3228, allocations: 0.535 MB / 413.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.3229, allocations: 8.031 kB / 413.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.247e-05/0.3229, allocations: 38.75 kB / 413.7 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.98e-05/0.323, allocations: 20.8 kB / 413.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004029/0.3234, allocations: 266.9 kB / 413.9 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.728e-05/0.3234, allocations: 12.31 kB / 414 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.396e-05/0.3235, allocations: 11.94 kB / 414 MB, free: 12.22 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000249/0.3237, allocations: 109.9 kB / 414.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.627e-06/0.3238, allocations: 3.938 kB / 414.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.566e-05/0.3238, allocations: 4 kB / 414.1 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.3238, allocations: 4 kB / 414.1 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001474/0.3239, allocations: 51.91 kB / 414.1 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007634/0.3247, allocations: 0.6027 MB / 414.7 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002833/0.325, allocations: 127.9 kB / 414.9 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001268/0.3251, allocations: 54.55 kB / 414.9 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.357e-05/0.3252, allocations: 0 / 414.9 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002337/0.3254, allocations: 125.9 kB / 415 MB, free: 11 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.313e-06/0.3254, allocations: 0 / 415 MB, free: 11 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005229/0.326, allocations: 177.6 kB / 415.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.845e-05/0.3261, allocations: 136.5 kB / 415.3 MB, free: 10.66 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003401/0.3264, allocations: 301 kB / 415.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.599e-05/0.3265, allocations: 33.7 kB / 415.7 MB, free: 10.32 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.3266, allocations: 120.4 kB / 415.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.65e-05/0.3266, allocations: 31.73 kB / 415.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.388e-05/0.3267, allocations: 37.7 kB / 415.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.3268, allocations: 330.8 kB / 416.2 MB, free: 9.789 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001482/0.327, allocations: 31.97 kB / 416.2 MB, free: 9.758 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001308/0.3271, allocations: 82 kB / 416.3 MB, free: 9.656 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001863/0.3273, allocations: 96.2 kB / 416.4 MB, free: 9.547 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.3273, allocations: 7.969 kB / 416.4 MB, free: 9.539 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002922/0.3276, allocations: 137.4 kB / 416.5 MB, free: 9.398 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.3277, allocations: 10.66 kB / 416.5 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.3277, allocations: 0 / 416.5 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.3277, allocations: 4 kB / 416.5 MB, free: 9.387 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.964e-05/0.3278, allocations: 19.98 kB / 416.6 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.3278, allocations: 3.938 kB / 416.6 MB, free: 9.363 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001146/0.3279, allocations: 19.95 kB / 416.6 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.092e-05/0.3279, allocations: 8 kB / 416.6 MB, free: 9.336 MB / 334.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.0001619/0.3281, allocations: 146.3 kB / 416.7 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.909e-05/0.3282, allocations: 23.86 kB / 416.8 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001185/0.3283, allocations: 25.7 kB / 416.8 MB, free: 9.133 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.3283, allocations: 4 kB / 416.8 MB, free: 9.129 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.3283, allocations: 0 / 416.8 MB, free: 9.129 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.3283, allocations: 3.938 kB / 416.8 MB, free: 9.125 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002793/0.3286, allocations: 245.5 kB / 417 MB, free: 8.836 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.3286, allocations: 4 kB / 417 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.162e-05/0.3287, allocations: 11.94 kB / 417 MB, free: 8.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.3287, allocations: 4 kB / 417 MB, free: 8.816 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.552e-05/0.3287, allocations: 3.984 kB / 417.1 MB, free: 8.812 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.3287, allocations: 4 kB / 417.1 MB, free: 8.809 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.3287, allocations: 3.938 kB / 417.1 MB, free: 8.805 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000355/0.3291, allocations: 182.5 kB / 417.2 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.649e-05/0.3291, allocations: 96.95 kB / 417.3 MB, free: 8.488 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.746e-05/0.3292, allocations: 7.984 kB / 417.3 MB, free: 8.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001013/0.3293, allocations: 8 kB / 417.3 MB, free: 8.473 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.786e-05/0.3294, allocations: 23.84 kB / 417.4 MB, free: 8.449 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.677e-05/0.3294, allocations: 4 kB / 417.4 MB, free: 8.445 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002794/0.3297, allocations: 216.5 kB / 417.6 MB, free: 8.234 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3297, allocations: 4 kB / 417.6 MB, free: 8.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002714/0.33, allocations: 40 kB / 417.6 MB, free: 8.191 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.002064/0.332, allocations: 1.007 MB / 418.6 MB, free: 7.289 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003615/0.3324, allocations: 95.89 kB / 418.7 MB, free: 7.195 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3324, allocations: 0 / 418.7 MB, free: 7.195 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001388/0.3326, allocations: 55.91 kB / 418.8 MB, free: 7.141 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004076/0.333, allocations: 70.78 kB / 418.9 MB, free: 7.078 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002852/0.3359, allocations: 2.19 MB / 421 MB, free: 4.758 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004527/0.3363, allocations: 0.7319 MB / 421.8 MB, free: 4 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.337e-05/0.3364, allocations: 33.48 kB / 421.8 MB, free: 3.969 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001053/0.3365, allocations: 59.41 kB / 421.9 MB, free: 3.91 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3365, allocations: 0 / 421.9 MB, free: 3.91 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02885/0.3654, allocations: 5.193 MB / 427.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.492/8.857, allocations: 3.703 kB / 427.1 MB, free: 14.8 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches