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: 111.1 kB / 20.44 MB, free: 1.176 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.002399/0.002399, allocations: 204.2 kB / 23.73 MB, free: 4.379 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.422/1.422, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.001561/0.001561, allocations: 51.92 kB / 377.7 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2526/0.2542, allocations: 53.37 MB / 431.1 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003403/0.2576, allocations: 1.818 MB / 432.9 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002047/0.2596, allocations: 1.122 MB / 434 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001065/0.2597, allocations: 4 kB / 434 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006682/0.2604, allocations: 171.5 kB / 434.2 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004299/0.2608, allocations: 175.3 kB / 434.4 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004042/0.2612, allocations: 143.2 kB / 434.5 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002904/0.2615, allocations: 227.3 kB / 434.7 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.356e-05/0.2616, allocations: 9.75 kB / 434.7 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001276/0.2617, allocations: 83.7 kB / 434.8 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001578/0.2619, allocations: 99.58 kB / 434.9 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.506e-05/0.2619, allocations: 15.94 kB / 434.9 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001421/0.2621, allocations: 55.95 kB / 435 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.19e-05/0.2621, allocations: 51.84 kB / 435 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.315e-05/0.2622, allocations: 59.59 kB / 435.1 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003436/0.2626, allocations: 240.7 kB / 435.3 MB, free: 2.387 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.2626, allocations: 0 / 435.3 MB, free: 2.387 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2626, allocations: 0 / 435.3 MB, free: 2.387 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.2626, allocations: 0 / 435.3 MB, free: 2.387 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.0008894/0.2635, allocations: 470.7 kB / 435.8 MB, free: 1.891 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.2635, allocations: 8.031 kB / 435.8 MB, free: 1.883 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.583e-05/0.2636, allocations: 38.75 kB / 435.8 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.472e-05/0.2636, allocations: 24.8 kB / 435.8 MB, free: 1.812 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000332/0.2639, allocations: 205.1 kB / 436 MB, free: 1.586 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.229e-05/0.264, allocations: 8.375 kB / 436.1 MB, free: 1.578 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.054e-05/0.264, allocations: 7.938 kB / 436.1 MB, free: 1.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002554/0.2642, allocations: 105.1 kB / 436.2 MB, free: 1.449 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.2642, allocations: 3.938 kB / 436.2 MB, free: 1.445 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.806e-05/0.2643, allocations: 8 kB / 436.2 MB, free: 1.438 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.2643, allocations: 4 kB / 436.2 MB, free: 1.434 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001605/0.2644, allocations: 51.91 kB / 436.2 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007137/0.2651, allocations: 0.5667 MB / 436.8 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002743/0.2654, allocations: 119.9 kB / 436.9 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001143/0.2655, allocations: 54.56 kB / 437 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.513e-05/0.2656, allocations: 7.922 kB / 437 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002394/0.2658, allocations: 114 kB / 437.1 MB, free: 424 kB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.624e-06/0.2658, allocations: 0 / 437.1 MB, free: 424 kB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004855/0.2663, allocations: 189.4 kB / 437.3 MB, free: 228 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.753e-05/0.2664, allocations: 114.8 kB / 437.4 MB, free: 88 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003612/0.2667, allocations: 297 kB / 437.7 MB, free: 15.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.643e-05/0.2668, allocations: 29.7 kB / 437.7 MB, free: 15.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.816e-05/0.2668, allocations: 124.3 kB / 437.8 MB, free: 15.63 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.054e-05/0.2669, allocations: 31.69 kB / 437.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.995e-05/0.2669, allocations: 37.7 kB / 437.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.2671, allocations: 334.8 kB / 438.2 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.319e-05/0.2672, allocations: 27.98 kB / 438.2 MB, free: 15.19 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001508/0.2674, allocations: 114.5 kB / 438.4 MB, free: 15.06 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001891/0.2675, allocations: 92.22 kB / 438.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.2675, allocations: 0 / 438.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002979/0.2678, allocations: 154 kB / 438.6 MB, free: 14.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.2679, allocations: 4 kB / 438.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.2679, allocations: 4.125 kB / 438.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.2679, allocations: 4 kB / 438.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.245e-05/0.268, allocations: 19.92 kB / 438.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.268, allocations: 0 / 438.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001156/0.2681, allocations: 23.86 kB / 438.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.146e-05/0.2681, allocations: 7.938 kB / 438.7 MB, free: 14.73 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.0001403/0.2682, allocations: 142.5 kB / 438.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.711e-05/0.2683, allocations: 19.86 kB / 438.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002788/0.2686, allocations: 119.3 kB / 438.9 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.2686, allocations: 8 kB / 438.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.2686, allocations: 0 / 438.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.2686, allocations: 3.938 kB / 438.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002419/0.2688, allocations: 204.6 kB / 439.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.2688, allocations: 0 / 439.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.559e-05/0.2688, allocations: 8 kB / 439.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.578e-06/0.2689, allocations: 4 kB / 439.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.394e-05/0.2689, allocations: 3.984 kB / 439.2 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.813e-06/0.2689, allocations: 7.938 kB / 439.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2689, allocations: 0 / 439.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003316/0.2692, allocations: 182.6 kB / 439.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.128e-05/0.2693, allocations: 35.78 kB / 439.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.422e-05/0.2693, allocations: 4 kB / 439.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.804e-05/0.2694, allocations: 11.98 kB / 439.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.707e-05/0.2694, allocations: 19.92 kB / 439.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.729e-05/0.2695, allocations: 4 kB / 439.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002321/0.2697, allocations: 220.4 kB / 439.6 MB, free: 13.67 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2697, allocations: 3.938 kB / 439.6 MB, free: 13.67 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002623/0.27, allocations: 32 kB / 439.7 MB, free: 13.64 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.002117/0.2721, allocations: 1.066 MB / 440.7 MB, free: 12.72 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000318/0.2724, allocations: 95.83 kB / 440.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.2724, allocations: 0 / 440.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001461/0.2725, allocations: 51.92 kB / 440.9 MB, free: 12.58 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003731/0.2729, allocations: 53.69 kB / 440.9 MB, free: 12.53 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002831/0.2757, allocations: 2.203 MB / 443.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001235/0.2759, allocations: 127.5 kB / 443.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.29e-05/0.276, allocations: 25.48 kB / 443.3 MB, free: 10.03 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001211/0.2761, allocations: 63.41 kB / 443.4 MB, free: 9.969 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2761, allocations: 0 / 443.4 MB, free: 9.969 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03568/0.3118, allocations: 5.988 MB / 449.3 MB, free: 4.055 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.63/10.94, allocations: 5.547 kB / 449.3 MB, free: 4.055 MB / 350.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_ShowLogicalSources_fmu --startTime=0 --stopTime=10 --stepSize=0.00199283 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.384302760998253]