Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001922/0.001922, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00219/0.00219, allocations: 194 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.477/1.477, allocations: 225.7 MB / 252.5 MB, free: 12.79 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001544/0.001544, allocations: 51.92 kB / 370.4 MB, free: 9.664 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.227/0.2285, allocations: 52.18 MB / 422.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003186/0.2317, allocations: 1.805 MB / 424.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001704/0.2334, allocations: 0.986 MB / 425.3 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.674e-05/0.2335, allocations: 0 / 425.3 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005974/0.2341, allocations: 163.5 kB / 425.5 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003176/0.2344, allocations: 135.5 kB / 425.6 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004273/0.2349, allocations: 177.9 kB / 425.8 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002574/0.2351, allocations: 207.3 kB / 426 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.704e-05/0.2352, allocations: 13.75 kB / 426 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001232/0.2353, allocations: 83.67 kB / 426.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000135/0.2355, allocations: 91.59 kB / 426.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.825e-05/0.2355, allocations: 12 kB / 426.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001363/0.2356, allocations: 55.91 kB / 426.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.118e-05/0.2357, allocations: 59.77 kB / 426.3 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.781e-05/0.2358, allocations: 59.61 kB / 426.4 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003078/0.2361, allocations: 220.8 kB / 426.6 MB, free: 10.35 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.2361, allocations: 0 / 426.6 MB, free: 10.35 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2361, allocations: 0 / 426.6 MB, free: 10.35 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.2361, allocations: 0 / 426.6 MB, free: 10.35 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.0008176/0.2369, allocations: 470.6 kB / 427.1 MB, free: 9.855 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.267e-05/0.237, allocations: 8.031 kB / 427.1 MB, free: 9.848 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.465e-05/0.237, allocations: 42.73 kB / 427.1 MB, free: 9.797 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.697e-05/0.2371, allocations: 24.8 kB / 427.1 MB, free: 9.773 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003092/0.2374, allocations: 192.8 kB / 427.3 MB, free: 9.559 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.045e-05/0.2374, allocations: 11.98 kB / 427.3 MB, free: 9.547 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.514e-05/0.2374, allocations: 4 kB / 427.3 MB, free: 9.543 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002346/0.2376, allocations: 109 kB / 427.4 MB, free: 9.418 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.2376, allocations: 0 / 427.4 MB, free: 9.418 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.573e-05/0.2377, allocations: 7.984 kB / 427.4 MB, free: 9.41 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.2377, allocations: 0 / 427.4 MB, free: 9.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001485/0.2378, allocations: 51.91 kB / 427.5 MB, free: 9.359 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006572/0.2385, allocations: 0.5667 MB / 428.1 MB, free: 8.738 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002647/0.2387, allocations: 119.9 kB / 428.2 MB, free: 8.594 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001125/0.2388, allocations: 50.55 kB / 428.2 MB, free: 8.535 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.765e-05/0.2389, allocations: 4 kB / 428.2 MB, free: 8.531 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002325/0.2391, allocations: 133.8 kB / 428.4 MB, free: 8.379 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.382e-06/0.2391, allocations: 0 / 428.4 MB, free: 8.379 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004568/0.2395, allocations: 181.4 kB / 428.5 MB, free: 8.195 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.444e-05/0.2396, allocations: 110.8 kB / 428.6 MB, free: 8.062 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003211/0.24, allocations: 288.9 kB / 428.9 MB, free: 7.773 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.125e-05/0.24, allocations: 25.7 kB / 429 MB, free: 7.742 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001064/0.2401, allocations: 128.3 kB / 429.1 MB, free: 7.609 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.48e-05/0.2401, allocations: 23.8 kB / 429.1 MB, free: 7.586 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.856e-05/0.2402, allocations: 33.7 kB / 429.1 MB, free: 7.547 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001922/0.2404, allocations: 334.8 kB / 429.5 MB, free: 7.211 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.65e-05/0.2405, allocations: 31.98 kB / 429.5 MB, free: 7.18 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001522/0.2406, allocations: 110.9 kB / 429.6 MB, free: 7.047 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001977/0.2408, allocations: 92.22 kB / 429.7 MB, free: 6.941 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.2408, allocations: 0 / 429.7 MB, free: 6.941 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002935/0.2411, allocations: 145.5 kB / 429.8 MB, free: 6.793 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.263e-05/0.2411, allocations: 7.938 kB / 429.8 MB, free: 6.785 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.2411, allocations: 0.625 kB / 429.8 MB, free: 6.785 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.2411, allocations: 12.06 kB / 429.9 MB, free: 6.773 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.732e-05/0.2412, allocations: 12 kB / 429.9 MB, free: 6.762 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/0.2412, allocations: 7.922 kB / 429.9 MB, free: 6.754 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001076/0.2413, allocations: 19.89 kB / 429.9 MB, free: 6.734 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.543e-05/0.2414, allocations: 11.98 kB / 429.9 MB, free: 6.723 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.0001475/0.2415, allocations: 146.7 kB / 430.1 MB, free: 6.57 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.657e-05/0.2415, allocations: 23.84 kB / 430.1 MB, free: 6.547 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002548/0.2418, allocations: 115.4 kB / 430.2 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.678e-06/0.2418, allocations: 7.938 kB / 430.2 MB, free: 6.418 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.2418, allocations: 4 kB / 430.2 MB, free: 6.414 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.2418, allocations: 0 / 430.2 MB, free: 6.414 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002336/0.242, allocations: 200.6 kB / 430.4 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.242, allocations: 0 / 430.4 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.904e-05/0.2421, allocations: 15.94 kB / 430.4 MB, free: 6.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.2421, allocations: 0 / 430.4 MB, free: 6.16 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.097e-05/0.2421, allocations: 0 / 430.4 MB, free: 6.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.219e-06/0.2421, allocations: 11.88 kB / 430.4 MB, free: 6.148 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.2421, allocations: 0 / 430.4 MB, free: 6.148 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003378/0.2424, allocations: 189.4 kB / 430.6 MB, free: 5.941 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.686e-05/0.2425, allocations: 23.86 kB / 430.6 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.165e-05/0.2425, allocations: 7.938 kB / 430.6 MB, free: 5.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001002/0.2426, allocations: 15.92 kB / 430.7 MB, free: 5.895 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.978e-05/0.2427, allocations: 19.97 kB / 430.7 MB, free: 5.875 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.577e-05/0.2427, allocations: 4 kB / 430.7 MB, free: 5.871 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002252/0.2429, allocations: 208.5 kB / 430.9 MB, free: 5.668 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2429, allocations: 0 / 430.9 MB, free: 5.668 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002584/0.2432, allocations: 39.94 kB / 430.9 MB, free: 5.629 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.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.002123/0.2453, allocations: 1.058 MB / 432 MB, free: 4.73 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002626/0.2456, allocations: 95.89 kB / 432.1 MB, free: 4.637 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.2456, allocations: 0 / 432.1 MB, free: 4.637 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001467/0.2457, allocations: 55.91 kB / 432.1 MB, free: 4.582 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003437/0.2461, allocations: 54.58 kB / 432.2 MB, free: 4.531 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002707/0.2488, allocations: 2.168 MB / 434.3 MB, free: 2.25 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001158/0.2489, allocations: 123.3 kB / 434.5 MB, free: 2.113 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.339e-05/0.249, allocations: 29.62 kB / 434.5 MB, free: 2.086 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001101/0.2491, allocations: 59.41 kB / 434.6 MB, free: 2.027 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2491, allocations: 0 / 434.6 MB, free: 2.027 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03235/0.2814, allocations: 5.878 MB / 440.4 MB, free: 12.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.41/11.69, allocations: 0 / 440.4 MB, free: 12.2 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.csv. Warning: Get data of variable table.y from file Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.468254728708416]