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.001573/0.001573, allocations: 107.5 kB / 20.44 MB, free: 1.066 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.00189/0.00189, allocations: 187.7 kB / 23.7 MB, free: 4.191 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.382/1.382, allocations: 225.7 MB / 252.5 MB, free: 12.85 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.001525/0.001525, allocations: 47.92 kB / 370.4 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2404/0.2419, allocations: 52.18 MB / 422.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003115/0.245, allocations: 1.801 MB / 424.4 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001624/0.2466, allocations: 0.986 MB / 425.3 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.127e-05/0.2467, allocations: 0 / 425.3 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006053/0.2473, allocations: 171.5 kB / 425.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003119/0.2476, allocations: 127.5 kB / 425.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004289/0.2481, allocations: 179.8 kB / 425.8 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002545/0.2483, allocations: 207.3 kB / 426 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.2484, allocations: 21.73 kB / 426 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001242/0.2486, allocations: 91.62 kB / 426.1 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000138/0.2487, allocations: 83.66 kB / 426.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.652e-05/0.2487, allocations: 8 kB / 426.2 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001431/0.2489, allocations: 55.97 kB / 426.3 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.112e-05/0.2489, allocations: 55.75 kB / 426.3 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.178e-05/0.249, allocations: 59.67 kB / 426.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000305/0.2493, allocations: 220.8 kB / 426.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.2493, allocations: 0 / 426.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2493, allocations: 0 / 426.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.471e-06/0.2493, allocations: 0 / 426.6 MB, free: 10.36 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.0008169/0.2502, allocations: 474.6 kB / 427.1 MB, free: 9.863 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.2502, allocations: 11.97 kB / 427.1 MB, free: 9.852 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.809e-05/0.2502, allocations: 38.73 kB / 427.1 MB, free: 9.805 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.51e-05/0.2503, allocations: 20.8 kB / 427.1 MB, free: 9.785 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003025/0.2506, allocations: 204.8 kB / 427.3 MB, free: 9.559 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.486e-05/0.2506, allocations: 0 / 427.3 MB, free: 9.559 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.27e-05/0.2506, allocations: 12 kB / 427.3 MB, free: 9.547 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002239/0.2509, allocations: 109 kB / 427.4 MB, free: 9.422 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.869e-06/0.2509, allocations: 7.984 kB / 427.5 MB, free: 9.414 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.117e-05/0.2509, allocations: 0 / 427.5 MB, free: 9.414 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.2509, allocations: 4 kB / 427.5 MB, free: 9.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001527/0.251, allocations: 51.91 kB / 427.5 MB, free: 9.359 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006587/0.2517, allocations: 0.5628 MB / 428.1 MB, free: 8.742 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002803/0.252, allocations: 123.9 kB / 428.2 MB, free: 8.594 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001037/0.2521, allocations: 42.56 kB / 428.2 MB, free: 8.543 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.284e-05/0.2521, allocations: 8 kB / 428.2 MB, free: 8.535 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002334/0.2523, allocations: 129.8 kB / 428.4 MB, free: 8.387 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.282e-06/0.2523, allocations: 0 / 428.4 MB, free: 8.387 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004489/0.2528, allocations: 177.9 kB / 428.5 MB, free: 8.207 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.747e-05/0.2529, allocations: 110.8 kB / 428.6 MB, free: 8.074 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003108/0.2532, allocations: 288.9 kB / 428.9 MB, free: 7.785 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.44e-05/0.2532, allocations: 33.69 kB / 429 MB, free: 7.746 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001054/0.2533, allocations: 120.4 kB / 429.1 MB, free: 7.621 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.399e-05/0.2533, allocations: 31.92 kB / 429.1 MB, free: 7.59 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.769e-05/0.2534, allocations: 29.7 kB / 429.1 MB, free: 7.555 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.2536, allocations: 338.8 kB / 429.5 MB, free: 7.215 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.572e-05/0.2537, allocations: 27.98 kB / 429.5 MB, free: 7.188 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001446/0.2538, allocations: 114.1 kB / 429.6 MB, free: 7.055 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001962/0.254, allocations: 92.22 kB / 429.7 MB, free: 6.949 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.254, allocations: 0 / 429.7 MB, free: 6.949 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002814/0.2543, allocations: 153.4 kB / 429.9 MB, free: 6.793 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/0.2543, allocations: 4 kB / 429.9 MB, free: 6.789 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.2543, allocations: 0 / 429.9 MB, free: 6.789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.2543, allocations: 7.938 kB / 429.9 MB, free: 6.781 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.616e-05/0.2544, allocations: 15.98 kB / 429.9 MB, free: 6.766 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.2544, allocations: 0 / 429.9 MB, free: 6.766 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001109/0.2545, allocations: 23.88 kB / 429.9 MB, free: 6.742 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.315e-05/0.2545, allocations: 4 kB / 429.9 MB, free: 6.738 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.000139/0.2547, allocations: 150.9 kB / 430.1 MB, free: 6.582 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.772e-05/0.2547, allocations: 19.86 kB / 430.1 MB, free: 6.562 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002556/0.255, allocations: 115.4 kB / 430.2 MB, free: 6.441 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.056e-06/0.255, allocations: 7.938 kB / 430.2 MB, free: 6.434 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.255, allocations: 4 kB / 430.2 MB, free: 6.43 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.255, allocations: 3.938 kB / 430.2 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002246/0.2552, allocations: 200.6 kB / 430.4 MB, free: 6.188 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.2552, allocations: 0 / 430.4 MB, free: 6.188 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.289e-05/0.2553, allocations: 11.94 kB / 430.4 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.2553, allocations: 0 / 430.4 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.311e-05/0.2553, allocations: 8 kB / 430.4 MB, free: 6.168 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.47e-06/0.2553, allocations: 7.922 kB / 430.4 MB, free: 6.16 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2553, allocations: 0 / 430.4 MB, free: 6.16 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003379/0.2556, allocations: 190.6 kB / 430.6 MB, free: 5.949 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.597e-05/0.2556, allocations: 15.86 kB / 430.6 MB, free: 5.934 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.484e-05/0.2557, allocations: 11.98 kB / 430.6 MB, free: 5.922 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.881e-05/0.2558, allocations: 15.86 kB / 430.7 MB, free: 5.906 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.709e-05/0.2558, allocations: 15.98 kB / 430.7 MB, free: 5.891 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.61e-05/0.2559, allocations: 4 kB / 430.7 MB, free: 5.887 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002305/0.2561, allocations: 216.5 kB / 430.9 MB, free: 5.676 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2561, allocations: 4 kB / 430.9 MB, free: 5.672 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000257/0.2563, allocations: 35.92 kB / 430.9 MB, free: 5.637 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.002161/0.2585, allocations: 1.061 MB / 432 MB, free: 4.734 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002735/0.2588, allocations: 91.89 kB / 432.1 MB, free: 4.645 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2588, allocations: 4.188 kB / 432.1 MB, free: 4.641 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001323/0.2589, allocations: 51.92 kB / 432.1 MB, free: 4.59 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003335/0.2592, allocations: 45.84 kB / 432.2 MB, free: 4.547 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002664/0.2619, allocations: 2.176 MB / 434.3 MB, free: 2.258 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001192/0.262, allocations: 127.4 kB / 434.5 MB, free: 2.117 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.152e-05/0.2621, allocations: 25.83 kB / 434.5 MB, free: 2.094 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001058/0.2622, allocations: 55.42 kB / 434.6 MB, free: 2.039 MB / 334.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2622, allocations: 0 / 434.6 MB, free: 2.039 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03415/0.2964, allocations: 5.881 MB / 440.4 MB, free: 12.21 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.71/11.01, allocations: 3.375 kB / 440.4 MB, free: 12.21 MB / 350.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources_fmu --startTime=0 --stopTime=10 --stepSize=0.00199283 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.370344959199429]