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.001428/0.001428, allocations: 107.1 kB / 20.44 MB, free: 1.195 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.001535/0.001535, allocations: 206 kB / 23.73 MB, free: 4.402 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.442/1.442, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.001664/0.001664, allocations: 51.86 kB / 377.7 MB, free: 3.074 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2388/0.2405, allocations: 53.37 MB / 431.1 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.004349/0.2448, allocations: 1.814 MB / 432.9 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002407/0.2472, allocations: 1.122 MB / 434 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001107/0.2473, allocations: 7.938 kB / 434 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007236/0.2481, allocations: 175.5 kB / 434.2 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004287/0.2485, allocations: 159.3 kB / 434.3 MB, free: 3.367 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004364/0.2489, allocations: 147.6 kB / 434.5 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003194/0.2492, allocations: 215.4 kB / 434.7 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001336/0.2494, allocations: 17.75 kB / 434.7 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001515/0.2495, allocations: 99.55 kB / 434.8 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001614/0.2497, allocations: 83.67 kB / 434.9 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.01e-05/0.2497, allocations: 12 kB / 434.9 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001825/0.2499, allocations: 59.89 kB / 435 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.419e-05/0.25, allocations: 47.84 kB / 435 MB, free: 2.695 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.792e-05/0.2501, allocations: 63.58 kB / 435.1 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000434/0.2505, allocations: 235.3 kB / 435.3 MB, free: 2.41 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.174e-06/0.2505, allocations: 0 / 435.3 MB, free: 2.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.2505, allocations: 4 kB / 435.3 MB, free: 2.406 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.177e-06/0.2506, allocations: 4 kB / 435.3 MB, free: 2.402 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.001047/0.2516, allocations: 466.8 kB / 435.8 MB, free: 1.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.2516, allocations: 8.031 kB / 435.8 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.651e-05/0.2517, allocations: 34.75 kB / 435.8 MB, free: 1.859 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.387e-05/0.2517, allocations: 24.73 kB / 435.8 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003319/0.2521, allocations: 209.1 kB / 436 MB, free: 1.605 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.898e-05/0.2521, allocations: 4.375 kB / 436 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.673e-05/0.2521, allocations: 15.92 kB / 436.1 MB, free: 1.586 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002345/0.2523, allocations: 101.1 kB / 436.2 MB, free: 1.469 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.856e-06/0.2524, allocations: 4 kB / 436.2 MB, free: 1.465 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.2524, allocations: 0 / 436.2 MB, free: 1.465 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.467e-06/0.2524, allocations: 7.984 kB / 436.2 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001584/0.2525, allocations: 51.91 kB / 436.2 MB, free: 1.406 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007397/0.2533, allocations: 0.5667 MB / 436.8 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002928/0.2536, allocations: 123.9 kB / 436.9 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001169/0.2537, allocations: 58.56 kB / 437 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.235e-05/0.2537, allocations: 0 / 437 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002489/0.254, allocations: 121.8 kB / 437.1 MB, free: 440 kB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.242e-06/0.254, allocations: 0 / 437.1 MB, free: 440 kB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004761/0.2544, allocations: 181.8 kB / 437.3 MB, free: 252 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.504e-05/0.2545, allocations: 110.8 kB / 437.4 MB, free: 116 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003551/0.2549, allocations: 301 kB / 437.7 MB, free: 15.81 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.501e-05/0.2549, allocations: 29.7 kB / 437.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/0.255, allocations: 124.5 kB / 437.8 MB, free: 15.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.274e-05/0.2551, allocations: 35.73 kB / 437.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.206e-05/0.2551, allocations: 29.72 kB / 437.9 MB, free: 15.58 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001813/0.2553, allocations: 334.8 kB / 438.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.259e-05/0.2554, allocations: 32.11 kB / 438.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001454/0.2556, allocations: 106.8 kB / 438.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001937/0.2557, allocations: 100.1 kB / 438.4 MB, free: 14.97 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.2557, allocations: 0 / 438.4 MB, free: 14.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002996/0.256, allocations: 149.4 kB / 438.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.2561, allocations: 4 kB / 438.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.2561, allocations: 0 / 438.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.033e-05/0.2561, allocations: 4 kB / 438.6 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001018/0.2562, allocations: 19.98 kB / 438.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.2562, allocations: 3.938 kB / 438.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001106/0.2563, allocations: 19.86 kB / 438.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.195e-05/0.2563, allocations: 4.094 kB / 438.6 MB, free: 14.77 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.0001594/0.2565, allocations: 154.4 kB / 438.8 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.859e-05/0.2565, allocations: 19.86 kB / 438.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002654/0.2568, allocations: 127.3 kB / 438.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.2568, allocations: 7.984 kB / 438.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.2568, allocations: 4.125 kB / 438.9 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.2568, allocations: 7.922 kB / 439 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002409/0.2571, allocations: 192.7 kB / 439.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.606e-06/0.2571, allocations: 4 kB / 439.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.634e-05/0.2571, allocations: 7.984 kB / 439.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.2571, allocations: 8 kB / 439.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.082e-05/0.2571, allocations: 0 / 439.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.2571, allocations: 0 / 439.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.337e-06/0.2571, allocations: 4 kB / 439.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003296/0.2574, allocations: 189.5 kB / 439.4 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.459e-05/0.2575, allocations: 27.83 kB / 439.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.323e-05/0.2575, allocations: 4 kB / 439.4 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.586e-05/0.2576, allocations: 11.98 kB / 439.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.611e-05/0.2577, allocations: 23.91 kB / 439.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.562e-05/0.2577, allocations: 8 kB / 439.4 MB, free: 13.9 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002365/0.2579, allocations: 220.5 kB / 439.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2579, allocations: 0 / 439.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002591/0.2582, allocations: 35.95 kB / 439.7 MB, free: 13.65 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.00217/0.2604, allocations: 1.057 MB / 440.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002928/0.2607, allocations: 92.02 kB / 440.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2607, allocations: 4.062 kB / 440.8 MB, free: 12.65 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001388/0.2608, allocations: 55.91 kB / 440.9 MB, free: 12.6 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003686/0.2612, allocations: 53.66 kB / 440.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002811/0.264, allocations: 2.2 MB / 443.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001302/0.2641, allocations: 127.6 kB / 443.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.898e-05/0.2642, allocations: 25.62 kB / 443.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001064/0.2643, allocations: 59.41 kB / 443.3 MB, free: 9.992 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2643, allocations: 3.938 kB / 443.3 MB, free: 9.988 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0332/0.2975, allocations: 5.957 MB / 449.3 MB, free: 4.102 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.66, allocations: 7.875 kB / 449.3 MB, free: 4.098 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.18153245607391]