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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001758/0.001758, allocations: 107.1 kB / 20.44 MB, free: 1.324 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002017/0.002017, allocations: 206.7 kB / 23.72 MB, free: 4.492 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.612/1.612, allocations: 230.5 MB / 257.4 MB, free: 7.762 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001855/0.001855, allocations: 63.89 kB / 377.7 MB, free: 2.824 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3807/0.3825, allocations: 53.4 MB / 431.1 MB, free: 6.445 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.004223/0.3868, allocations: 1.821 MB / 432.9 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002442/0.3892, allocations: 1.122 MB / 434.1 MB, free: 3.492 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001309/0.3893, allocations: 4 kB / 434.1 MB, free: 3.488 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007836/0.3901, allocations: 171.5 kB / 434.2 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005126/0.3906, allocations: 174.4 kB / 434.4 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004419/0.3911, allocations: 143.6 kB / 434.6 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003221/0.3914, allocations: 223.3 kB / 434.8 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001434/0.3915, allocations: 9.75 kB / 434.8 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001539/0.3917, allocations: 99.55 kB / 434.9 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001706/0.3919, allocations: 87.66 kB / 435 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.974e-05/0.3919, allocations: 12 kB / 435 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001728/0.3921, allocations: 51.97 kB / 435 MB, free: 2.535 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000105/0.3922, allocations: 55.77 kB / 435.1 MB, free: 2.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000102/0.3923, allocations: 59.59 kB / 435.1 MB, free: 2.422 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004452/0.3927, allocations: 240.7 kB / 435.4 MB, free: 2.191 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.3927, allocations: 0 / 435.4 MB, free: 2.191 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3927, allocations: 0 / 435.4 MB, free: 2.191 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.428e-05/0.3927, allocations: 0 / 435.4 MB, free: 2.191 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.001119/0.3939, allocations: 466.7 kB / 435.8 MB, free: 1.699 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.191e-05/0.3939, allocations: 11.98 kB / 435.8 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.521e-05/0.394, allocations: 38.75 kB / 435.9 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.348e-05/0.394, allocations: 20.8 kB / 435.9 MB, free: 1.621 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003898/0.3944, allocations: 205.1 kB / 436.1 MB, free: 1.395 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.738e-05/0.3944, allocations: 8.375 kB / 436.1 MB, free: 1.387 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.842e-05/0.3945, allocations: 12.36 kB / 436.1 MB, free: 1.375 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002657/0.3947, allocations: 109.2 kB / 436.2 MB, free: 1.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.3947, allocations: 0 / 436.2 MB, free: 1.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.709e-05/0.3947, allocations: 4 kB / 436.2 MB, free: 1.246 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.999e-06/0.3948, allocations: 7.984 kB / 436.2 MB, free: 1.238 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001709/0.3949, allocations: 51.91 kB / 436.3 MB, free: 1.188 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007586/0.3957, allocations: 0.5667 MB / 436.9 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002824/0.396, allocations: 123.9 kB / 437 MB, free: 428 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001154/0.3961, allocations: 54.56 kB / 437 MB, free: 364 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.511e-05/0.3961, allocations: 0 / 437 MB, free: 364 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002656/0.3964, allocations: 117.9 kB / 437.1 MB, free: 224 kB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.433e-06/0.3964, allocations: 0 / 437.1 MB, free: 224 kB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004806/0.3969, allocations: 185.4 kB / 437.3 MB, free: 32 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001038/0.397, allocations: 114.9 kB / 437.4 MB, free: 15.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003778/0.3973, allocations: 297.1 kB / 437.7 MB, free: 15.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.709e-05/0.3974, allocations: 25.7 kB / 437.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001151/0.3975, allocations: 124.4 kB / 437.9 MB, free: 15.44 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.065e-05/0.3975, allocations: 31.73 kB / 437.9 MB, free: 15.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.094e-05/0.3976, allocations: 29.72 kB / 437.9 MB, free: 15.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001815/0.3978, allocations: 342.8 kB / 438.3 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.215e-05/0.3979, allocations: 27.98 kB / 438.3 MB, free: 15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001571/0.398, allocations: 110.8 kB / 438.4 MB, free: 14.87 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002058/0.3982, allocations: 100.2 kB / 438.5 MB, free: 14.76 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.3982, allocations: 0 / 438.5 MB, free: 14.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002905/0.3985, allocations: 153.3 kB / 438.6 MB, free: 14.6 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.3985, allocations: 4 kB / 438.7 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/0.3985, allocations: 4 kB / 438.7 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.314e-05/0.3986, allocations: 0 / 438.7 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001018/0.3987, allocations: 15.98 kB / 438.7 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.737e-06/0.3987, allocations: 4.719 kB / 438.7 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001078/0.3988, allocations: 15.92 kB / 438.7 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.765e-05/0.3988, allocations: 12 kB / 438.7 MB, free: 14.55 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.0001704/0.399, allocations: 149.7 kB / 438.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.799e-05/0.399, allocations: 19.86 kB / 438.9 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002687/0.3993, allocations: 119.4 kB / 439 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.3993, allocations: 4 kB / 439 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.3993, allocations: 0 / 439 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.3993, allocations: 3.984 kB / 439 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002718/0.3996, allocations: 204.6 kB / 439.2 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.3996, allocations: 0 / 439.2 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.324e-05/0.3996, allocations: 11.92 kB / 439.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.787e-06/0.3996, allocations: 7.984 kB / 439.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.475e-05/0.3996, allocations: 4 kB / 439.2 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.3996, allocations: 4 kB / 439.2 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3996, allocations: 0 / 439.2 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003571/0.4, allocations: 182.5 kB / 439.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.868e-05/0.4001, allocations: 35.78 kB / 439.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.455e-05/0.4001, allocations: 8 kB / 439.4 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.735e-05/0.4002, allocations: 11.98 kB / 439.5 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.836e-05/0.4003, allocations: 19.95 kB / 439.5 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.405e-05/0.4003, allocations: 11.94 kB / 439.5 MB, free: 13.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002407/0.4005, allocations: 216.5 kB / 439.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4005, allocations: 0 / 439.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002646/0.4008, allocations: 32 kB / 439.7 MB, free: 13.44 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.002307/0.4031, allocations: 1.063 MB / 440.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000289/0.4034, allocations: 87.89 kB / 440.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.4034, allocations: 0 / 440.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001377/0.4035, allocations: 55.91 kB / 440.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00038/0.4039, allocations: 52.52 kB / 441 MB, free: 12.31 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002879/0.4068, allocations: 2.2 MB / 443.2 MB, free: 9.984 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000136/0.4069, allocations: 123.6 kB / 443.3 MB, free: 9.844 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001023/0.407, allocations: 29.8 kB / 443.3 MB, free: 9.816 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001213/0.4071, allocations: 63.41 kB / 443.4 MB, free: 9.754 MB / 350.1 MB Notification: Performance of SimCode: time 1.102e-06/0.4071, allocations: 0 / 443.4 MB, free: 9.754 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03776/0.4449, allocations: 5.948 MB / 449.3 MB, free: 3.844 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.61, allocations: 11.94 kB / 449.4 MB, free: 3.832 MB / 350.1 MB " [Timeout remaining time 648] (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.00199283 Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "Error: Could not read variable table.y in file Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources_res.csv. Warning: Get data of variable table.y from file Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.458721100818366]