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.001804/0.001804, allocations: 112.5 kB / 20.43 MB, free: 1.453 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.002173/0.002173, allocations: 212.3 kB / 23.74 MB, free: 4.66 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.44/1.44, allocations: 230.5 MB / 257.4 MB, free: 7.988 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.001834/0.001834, allocations: 63.89 kB / 377.8 MB, free: 3.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2338/0.2356, allocations: 53.41 MB / 431.2 MB, free: 6.949 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003295/0.2389, allocations: 1.876 MB / 433 MB, free: 5.066 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002092/0.241, allocations: 1.21 MB / 434.3 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.285e-05/0.2411, allocations: 0 / 434.3 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006327/0.2417, allocations: 171.5 kB / 434.4 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004161/0.2422, allocations: 167.3 kB / 434.6 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004222/0.2426, allocations: 151.2 kB / 434.7 MB, free: 3.375 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002844/0.2429, allocations: 219.3 kB / 435 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001003/0.243, allocations: 17.73 kB / 435 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001351/0.2431, allocations: 83.7 kB / 435.1 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001531/0.2433, allocations: 99.53 kB / 435.1 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.583e-05/0.2433, allocations: 12 kB / 435.2 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001471/0.2434, allocations: 59.94 kB / 435.2 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.543e-05/0.2435, allocations: 47.84 kB / 435.3 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.116e-05/0.2436, allocations: 83.47 kB / 435.3 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003317/0.2439, allocations: 231.8 kB / 435.6 MB, free: 2.543 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2439, allocations: 0 / 435.6 MB, free: 2.543 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2439, allocations: 0 / 435.6 MB, free: 2.543 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.718e-06/0.2439, allocations: 0 / 435.6 MB, free: 2.543 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.0008639/0.2448, allocations: 474.6 kB / 436 MB, free: 2.043 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.2448, allocations: 12.03 kB / 436 MB, free: 2.031 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.322e-05/0.2449, allocations: 38.69 kB / 436.1 MB, free: 1.984 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.702e-05/0.2449, allocations: 24.8 kB / 436.1 MB, free: 1.961 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003257/0.2453, allocations: 205.1 kB / 436.3 MB, free: 1.734 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.736e-05/0.2453, allocations: 8.375 kB / 436.3 MB, free: 1.727 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.914e-05/0.2453, allocations: 4.375 kB / 436.3 MB, free: 1.723 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002495/0.2456, allocations: 122 kB / 436.4 MB, free: 1.582 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.976e-06/0.2456, allocations: 0 / 436.4 MB, free: 1.582 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.199e-05/0.2456, allocations: 8 kB / 436.4 MB, free: 1.574 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.2456, allocations: 0 / 436.4 MB, free: 1.574 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001466/0.2457, allocations: 51.91 kB / 436.5 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006787/0.2464, allocations: 0.5745 MB / 437.1 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002621/0.2467, allocations: 119.9 kB / 437.2 MB, free: 0.75 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001042/0.2468, allocations: 46.56 kB / 437.2 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.192e-05/0.2468, allocations: 12.08 kB / 437.2 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000229/0.247, allocations: 121.8 kB / 437.4 MB, free: 0.543 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.322e-06/0.247, allocations: 0 / 437.4 MB, free: 0.543 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004599/0.2475, allocations: 185.6 kB / 437.5 MB, free: 364 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.351e-05/0.2476, allocations: 132.6 kB / 437.7 MB, free: 200 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003843/0.248, allocations: 297.1 kB / 438 MB, free: 15.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.44e-05/0.248, allocations: 25.7 kB / 438 MB, free: 15.87 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.386e-05/0.2481, allocations: 124.4 kB / 438.1 MB, free: 15.74 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.864e-05/0.2481, allocations: 35.73 kB / 438.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.569e-05/0.2482, allocations: 29.72 kB / 438.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.2483, allocations: 338.8 kB / 438.5 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.236e-05/0.2484, allocations: 31.98 kB / 438.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001304/0.2486, allocations: 81.92 kB / 438.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001831/0.2487, allocations: 96.25 kB / 438.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.2487, allocations: 4 kB / 438.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002913/0.249, allocations: 141.5 kB / 438.9 MB, free: 14.94 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.2491, allocations: 4 kB / 438.9 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.2491, allocations: 4 kB / 438.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.2491, allocations: 3.938 kB / 438.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.83e-05/0.2492, allocations: 15.98 kB / 438.9 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.2492, allocations: 96 / 438.9 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001105/0.2493, allocations: 23.92 kB / 438.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.238e-05/0.2493, allocations: 8 kB / 438.9 MB, free: 14.88 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.0001556/0.2494, allocations: 154.1 kB / 439.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.246e-05/0.2495, allocations: 27.86 kB / 439.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002304/0.2497, allocations: 103.4 kB / 439.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.2497, allocations: 4 kB / 439.2 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.2497, allocations: 3.938 kB / 439.2 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.2497, allocations: 4 kB / 439.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002385/0.25, allocations: 220.5 kB / 439.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.25, allocations: 4 kB / 439.4 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.928e-05/0.25, allocations: 7.938 kB / 439.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.25, allocations: 0 / 439.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.423e-05/0.25, allocations: 8 kB / 439.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.25, allocations: 0 / 439.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.25, allocations: 0 / 439.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003155/0.2503, allocations: 190.5 kB / 439.6 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.868e-05/0.2504, allocations: 19.84 kB / 439.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.536e-05/0.2504, allocations: 8 kB / 439.7 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.697e-05/0.2505, allocations: 7.984 kB / 439.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.028e-05/0.2506, allocations: 23.91 kB / 439.7 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.823e-05/0.2506, allocations: 7.938 kB / 439.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002289/0.2508, allocations: 220.5 kB / 439.9 MB, free: 13.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2508, allocations: 0 / 439.9 MB, free: 13.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002649/0.2511, allocations: 32 kB / 439.9 MB, free: 13.77 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 (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.2532, allocations: 1.019 MB / 441 MB, free: 12.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002953/0.2534, allocations: 87.89 kB / 441 MB, free: 12.78 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2535, allocations: 7.938 kB / 441.1 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001281/0.2536, allocations: 43.92 kB / 441.1 MB, free: 12.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003578/0.2539, allocations: 58.8 kB / 441.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002779/0.2567, allocations: 2.192 MB / 443.3 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003788/0.2571, allocations: 0.732 MB / 444.1 MB, free: 9.598 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.838e-05/0.2572, allocations: 33.45 kB / 444.1 MB, free: 9.562 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.2573, allocations: 59.41 kB / 444.2 MB, free: 9.504 MB / 350.1 MB Notification: Performance of SimCode: time 9.52e-07/0.2573, allocations: 0 / 444.2 MB, free: 9.504 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03258/0.2899, allocations: 5.412 MB / 449.6 MB, free: 4.137 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.86/11.15, allocations: 10.83 kB / 449.6 MB, free: 4.133 MB / 350.1 MB " [Timeout remaining time 649] (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: 13.84213521300262]