Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001349/0.001349, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001971/0.001971, allocations: 206.3 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.475/1.475, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0016/0.0016, allocations: 51.84 kB / 377.7 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2817/0.2833, allocations: 53.36 MB / 431.1 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003456/0.2867, allocations: 1.817 MB / 432.9 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002045/0.2888, allocations: 1.122 MB / 434 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001031/0.2889, allocations: 4 kB / 434 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007453/0.2896, allocations: 179.4 kB / 434.2 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000467/0.2901, allocations: 171.3 kB / 434.4 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004773/0.2906, allocations: 135.6 kB / 434.5 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003174/0.2909, allocations: 231.2 kB / 434.7 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001257/0.291, allocations: 9.75 kB / 434.7 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001389/0.2912, allocations: 87.69 kB / 434.8 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001741/0.2913, allocations: 107.5 kB / 434.9 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.962e-05/0.2914, allocations: 12 kB / 434.9 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001617/0.2915, allocations: 59.95 kB / 435 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.839e-05/0.2916, allocations: 43.84 kB / 435 MB, free: 2.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.325e-05/0.2917, allocations: 55.67 kB / 435.1 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003743/0.2921, allocations: 236.7 kB / 435.3 MB, free: 2.398 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.2921, allocations: 0 / 435.3 MB, free: 2.398 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.2921, allocations: 0 / 435.3 MB, free: 2.398 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.2921, allocations: 4 kB / 435.3 MB, free: 2.395 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.001019/0.2931, allocations: 470.7 kB / 435.8 MB, free: 1.898 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.2932, allocations: 8.031 kB / 435.8 MB, free: 1.891 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.478e-05/0.2932, allocations: 38.75 kB / 435.8 MB, free: 1.844 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.089e-05/0.2933, allocations: 20.8 kB / 435.8 MB, free: 1.824 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00038/0.2936, allocations: 205.1 kB / 436 MB, free: 1.598 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.068e-05/0.2937, allocations: 8.375 kB / 436 MB, free: 1.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.617e-05/0.2937, allocations: 7.938 kB / 436.1 MB, free: 1.582 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002756/0.294, allocations: 113 kB / 436.2 MB, free: 1.453 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.294, allocations: 0 / 436.2 MB, free: 1.453 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.294, allocations: 0 / 436.2 MB, free: 1.453 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.157e-06/0.294, allocations: 8 kB / 436.2 MB, free: 1.445 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001588/0.2942, allocations: 51.91 kB / 436.2 MB, free: 1.395 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007421/0.2949, allocations: 0.5667 MB / 436.8 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002667/0.2952, allocations: 123.9 kB / 436.9 MB, free: 0.625 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001078/0.2953, allocations: 54.48 kB / 437 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.024e-05/0.2953, allocations: 4 kB / 437 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002308/0.2955, allocations: 121.9 kB / 437.1 MB, free: 428 kB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.443e-06/0.2955, allocations: 0 / 437.1 MB, free: 428 kB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004726/0.296, allocations: 193.7 kB / 437.3 MB, free: 228 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.576e-05/0.2961, allocations: 102.8 kB / 437.4 MB, free: 100 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003435/0.2964, allocations: 297 kB / 437.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.78e-05/0.2964, allocations: 33.7 kB / 437.7 MB, free: 15.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.2965, allocations: 124.3 kB / 437.8 MB, free: 15.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.7e-05/0.2966, allocations: 35.81 kB / 437.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.964e-05/0.2966, allocations: 33.83 kB / 437.9 MB, free: 15.56 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001768/0.2968, allocations: 338.8 kB / 438.2 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.215e-05/0.2969, allocations: 31.98 kB / 438.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001427/0.2971, allocations: 101.5 kB / 438.4 MB, free: 15.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001828/0.2972, allocations: 96.22 kB / 438.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.2972, allocations: 0 / 438.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002832/0.2975, allocations: 157.4 kB / 438.6 MB, free: 14.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.2975, allocations: 4 kB / 438.6 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.2975, allocations: 0 / 438.6 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.367e-05/0.2976, allocations: 4 kB / 438.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.678e-05/0.2977, allocations: 19.92 kB / 438.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.2977, allocations: 0 / 438.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001098/0.2978, allocations: 23.86 kB / 438.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.169e-05/0.2978, allocations: 4 kB / 438.7 MB, free: 14.75 MB / 350.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.0001534/0.2979, allocations: 146.7 kB / 438.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.649e-05/0.298, allocations: 23.86 kB / 438.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003157/0.2983, allocations: 115.3 kB / 438.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.2983, allocations: 8 kB / 438.9 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.2983, allocations: 0 / 438.9 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.2983, allocations: 3.938 kB / 438.9 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002345/0.2986, allocations: 204.6 kB / 439.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.2986, allocations: 4 kB / 439.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.21e-05/0.2986, allocations: 4 kB / 439.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.2986, allocations: 3.984 kB / 439.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.219e-05/0.2986, allocations: 4 kB / 439.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.2986, allocations: 7.938 kB / 439.2 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.2986, allocations: 4 kB / 439.2 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000317/0.2989, allocations: 185.6 kB / 439.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.818e-05/0.299, allocations: 31.78 kB / 439.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.169e-05/0.299, allocations: 7.938 kB / 439.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.247e-05/0.2991, allocations: 11.98 kB / 439.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.886e-05/0.2992, allocations: 15.92 kB / 439.4 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.979e-05/0.2992, allocations: 11.98 kB / 439.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002478/0.2994, allocations: 220.5 kB / 439.6 MB, free: 13.67 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2994, allocations: 4 kB / 439.6 MB, free: 13.67 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002592/0.2997, allocations: 35.94 kB / 439.7 MB, free: 13.63 MB / 350.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.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * 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.002115/0.3018, allocations: 1.049 MB / 440.7 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003271/0.3021, allocations: 95.83 kB / 440.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3021, allocations: 0 / 440.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001435/0.3023, allocations: 60.16 kB / 440.9 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000403/0.3027, allocations: 56.3 kB / 440.9 MB, free: 12.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003071/0.3058, allocations: 2.196 MB / 443.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001569/0.3059, allocations: 131.5 kB / 443.3 MB, free: 10.06 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001058/0.306, allocations: 21.48 kB / 443.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001177/0.3061, allocations: 63.41 kB / 443.3 MB, free: 9.98 MB / 350.1 MB Notification: Performance of SimCode: time 6.42e-07/0.3061, allocations: 0 / 443.3 MB, free: 9.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03479/0.3409, allocations: 5.988 MB / 449.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.41, allocations: 2.406 kB / 449.3 MB, free: 4.066 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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.00199283 Modelica_4_1_0_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable table.y in file Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources_res.csv. Warning: Get data of variable table.y from file Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.089841604989488]