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.001285/0.001285, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001428/0.001428, allocations: 211.2 kB / 23.73 MB, free: 4.387 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.416/1.416, 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.001671/0.001671, allocations: 47.88 kB / 377.7 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2705/0.2721, 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.003464/0.2756, allocations: 1.814 MB / 432.9 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002147/0.2777, allocations: 1.125 MB / 434 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.97e-05/0.2778, allocations: 4 kB / 434 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007874/0.2786, allocations: 175.5 kB / 434.2 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004554/0.2791, allocations: 175.3 kB / 434.4 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003791/0.2795, allocations: 138.6 kB / 434.5 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000325/0.2798, allocations: 219.4 kB / 434.7 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001232/0.2799, allocations: 17.72 kB / 434.7 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001526/0.2801, allocations: 95.56 kB / 434.8 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001517/0.2802, allocations: 87.66 kB / 434.9 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.858e-05/0.2803, allocations: 12 kB / 434.9 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001531/0.2804, allocations: 55.97 kB / 435 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.825e-05/0.2805, allocations: 59.75 kB / 435 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.822e-05/0.2806, allocations: 55.61 kB / 435.1 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003755/0.281, allocations: 236.7 kB / 435.3 MB, free: 2.402 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.281, allocations: 0 / 435.3 MB, free: 2.402 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.281, allocations: 0 / 435.3 MB, free: 2.402 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.281, allocations: 0 / 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.000949/0.2819, allocations: 462.7 kB / 435.8 MB, free: 1.914 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.282, allocations: 8.031 kB / 435.8 MB, free: 1.906 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.844e-05/0.282, allocations: 46.73 kB / 435.8 MB, free: 1.852 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.918e-05/0.2821, allocations: 20.8 kB / 435.8 MB, free: 1.832 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003502/0.2824, allocations: 209.1 kB / 436 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.2825, allocations: 4.375 kB / 436 MB, free: 1.598 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.383e-05/0.2825, allocations: 11.94 kB / 436.1 MB, free: 1.586 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002468/0.2827, allocations: 109 kB / 436.2 MB, free: 1.461 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.2827, allocations: 0 / 436.2 MB, free: 1.461 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.2827, allocations: 0 / 436.2 MB, free: 1.461 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-06/0.2827, allocations: 4 kB / 436.2 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001595/0.2829, allocations: 59.91 kB / 436.2 MB, free: 1.398 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007114/0.2836, allocations: 0.5627 MB / 436.8 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003007/0.2839, allocations: 123.9 kB / 436.9 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001091/0.284, allocations: 50.56 kB / 437 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.626e-05/0.2841, allocations: 4 kB / 437 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002384/0.2843, allocations: 121.9 kB / 437.1 MB, free: 440 kB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.483e-06/0.2843, allocations: 0 / 437.1 MB, free: 440 kB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.000469/0.2848, allocations: 185.9 kB / 437.3 MB, free: 248 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.794e-05/0.2848, allocations: 106.8 kB / 437.4 MB, free: 116 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003493/0.2852, allocations: 305 kB / 437.7 MB, free: 15.81 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.253e-05/0.2852, allocations: 25.7 kB / 437.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001101/0.2853, allocations: 124.4 kB / 437.8 MB, free: 15.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.925e-05/0.2854, allocations: 31.81 kB / 437.8 MB, free: 15.62 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.639e-05/0.2854, allocations: 37.64 kB / 437.9 MB, free: 15.58 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.2856, allocations: 338.8 kB / 438.2 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.676e-05/0.2857, allocations: 32.11 kB / 438.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001411/0.2858, allocations: 106.8 kB / 438.3 MB, free: 15.08 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002222/0.286, allocations: 92.22 kB / 438.4 MB, free: 14.97 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.286, allocations: 0 / 438.4 MB, free: 14.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000284/0.2863, allocations: 149.4 kB / 438.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.2863, allocations: 4 kB / 438.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.2864, allocations: 12.06 kB / 438.6 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.2864, allocations: 0 / 438.6 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.625e-05/0.2865, allocations: 19.98 kB / 438.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/0.2865, allocations: 0 / 438.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001056/0.2866, allocations: 15.88 kB / 438.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.528e-05/0.2866, allocations: 11.98 kB / 438.6 MB, free: 14.76 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.0001452/0.2867, allocations: 146.6 kB / 438.8 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.977e-05/0.2868, allocations: 23.86 kB / 438.8 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002647/0.287, allocations: 115.4 kB / 438.9 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.203e-06/0.287, allocations: 8 kB / 438.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.2871, allocations: 0 / 438.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.531e-06/0.2871, allocations: 3.938 kB / 438.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002439/0.2873, allocations: 208.6 kB / 439.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2873, allocations: 3.938 kB / 439.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.357e-05/0.2873, allocations: 4 kB / 439.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.15e-06/0.2873, allocations: 4 kB / 439.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.653e-05/0.2874, allocations: 3.984 kB / 439.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.629e-06/0.2874, allocations: 4 kB / 439.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.2874, allocations: 3.984 kB / 439.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003576/0.2877, allocations: 190.5 kB / 439.4 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.467e-05/0.2878, allocations: 27.8 kB / 439.4 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.697e-05/0.2878, allocations: 11.98 kB / 439.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.343e-05/0.2879, allocations: 4 kB / 439.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.535e-05/0.288, allocations: 23.91 kB / 439.4 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.731e-05/0.288, allocations: 4 kB / 439.4 MB, free: 13.9 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002475/0.2882, allocations: 224.4 kB / 439.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2882, allocations: 0 / 439.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002568/0.2885, allocations: 32 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.002164/0.2907, allocations: 1.065 MB / 440.7 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002796/0.2909, allocations: 91.89 kB / 440.8 MB, free: 12.65 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2909, allocations: 0 / 440.8 MB, free: 12.65 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001361/0.2911, allocations: 51.92 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.0003647/0.2914, allocations: 59.64 kB / 440.9 MB, free: 12.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002781/0.2942, allocations: 2.196 MB / 443.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001275/0.2943, allocations: 119.6 kB / 443.2 MB, free: 10.08 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.829e-05/0.2944, allocations: 33.61 kB / 443.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001061/0.2945, allocations: 55.42 kB / 443.3 MB, free: 9.992 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2945, allocations: 0 / 443.3 MB, free: 9.992 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03491/0.3294, allocations: 5.964 MB / 449.3 MB, free: 4.102 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.22, allocations: 4.906 kB / 449.3 MB, free: 4.102 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.644078159239143]