Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.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.001619/0.001619, allocations: 112.2 kB / 21.22 MB, free: 0.7344 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.001776/0.001776, allocations: 208.4 kB / 24.52 MB, free: 4.141 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.362/1.362, allocations: 230.6 MB / 258.3 MB, free: 7.973 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.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 39.94 kB / 378.6 MB, free: 3.137 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2515/0.2529, allocations: 53.36 MB / 431.9 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.0039/0.2568, allocations: 2.19 MB / 434.1 MB, free: 4.668 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0012/0.258, allocations: 0.6194 MB / 434.7 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001057/0.2581, allocations: 7.938 kB / 434.7 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001273/0.2582, allocations: 23.78 kB / 434.8 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.259e-05/0.2583, allocations: 35.64 kB / 434.8 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002695/0.2586, allocations: 55.86 kB / 434.9 MB, free: 3.922 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002166/0.2588, allocations: 167.2 kB / 435 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001585/0.259, allocations: 39.36 kB / 435.1 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001661/0.2591, allocations: 71.7 kB / 435.1 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001327/0.2593, allocations: 67.64 kB / 435.2 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.478e-05/0.2593, allocations: 12 kB / 435.2 MB, free: 3.566 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.139e-05/0.2594, allocations: 28 kB / 435.2 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.061e-05/0.2594, allocations: 27.92 kB / 435.3 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.647e-05/0.2595, allocations: 67.67 kB / 435.3 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002613/0.2597, allocations: 175.2 kB / 435.5 MB, free: 3.273 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.2597, allocations: 0 / 435.5 MB, free: 3.273 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2597, allocations: 4 kB / 435.5 MB, free: 3.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.162e-06/0.2597, allocations: 3.938 kB / 435.5 MB, free: 3.266 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0006244/0.2604, allocations: 365.9 kB / 435.9 MB, free: 2.875 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.2604, allocations: 12.03 kB / 435.9 MB, free: 2.863 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.298e-05/0.2604, allocations: 432 / 435.9 MB, free: 2.863 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.691e-05/0.2605, allocations: 46.73 kB / 435.9 MB, free: 2.809 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001864/0.2607, allocations: 36.77 kB / 436 MB, free: 2.773 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002636/0.2609, allocations: 146.4 kB / 436.1 MB, free: 2.605 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.163e-05/0.2609, allocations: 8.609 kB / 436.1 MB, free: 2.598 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.358e-05/0.261, allocations: 12.38 kB / 436.1 MB, free: 2.586 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002441/0.2612, allocations: 127.4 kB / 436.2 MB, free: 2.457 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.248e-06/0.2612, allocations: 0 / 436.2 MB, free: 2.457 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.576e-05/0.2612, allocations: 4 kB / 436.2 MB, free: 2.453 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.2612, allocations: 4 kB / 436.2 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001888/0.2614, allocations: 80.61 kB / 436.3 MB, free: 2.371 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008667/0.2623, allocations: 0.5656 MB / 436.9 MB, free: 1.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002866/0.2626, allocations: 82.56 kB / 437 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.045e-05/0.2626, allocations: 32.97 kB / 437 MB, free: 1.605 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.667e-05/0.2627, allocations: 4 kB / 437 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.16e-05/0.2627, allocations: 34.55 kB / 437 MB, free: 1.559 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.132e-06/0.2627, allocations: 0 / 437 MB, free: 1.559 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006701/0.2634, allocations: 182.3 kB / 437.2 MB, free: 1.371 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.154e-05/0.2634, allocations: 59.41 kB / 437.3 MB, free: 1.301 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000152/0.2636, allocations: 149.7 kB / 437.4 MB, free: 1.145 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.809e-05/0.2636, allocations: 29.7 kB / 437.5 MB, free: 1.109 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001117/0.2637, allocations: 124.1 kB / 437.6 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.084e-05/0.2637, allocations: 19.84 kB / 437.6 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.025e-05/0.2638, allocations: 33.66 kB / 437.6 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.2639, allocations: 326.8 kB / 437.9 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.679e-05/0.264, allocations: 16 kB / 438 MB, free: 0.582 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.649e-05/0.2641, allocations: 46.48 kB / 438 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001401/0.2642, allocations: 70.56 kB / 438.1 MB, free: 460 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.2642, allocations: 0 / 438.1 MB, free: 460 kB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002952/0.2645, allocations: 134.3 kB / 438.2 MB, free: 316 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.2645, allocations: 8 kB / 438.2 MB, free: 308 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.399e-06/0.2646, allocations: 0 / 438.2 MB, free: 308 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001894/0.2647, allocations: 41.08 kB / 438.3 MB, free: 264 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.25e-05/0.2648, allocations: 12.25 kB / 438.3 MB, free: 252 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00168/0.2665, allocations: 1.578 MB / 439.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.522e-05/0.2665, allocations: 7.938 kB / 439.9 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.928e-06/0.2666, allocations: 4 kB / 439.9 MB, free: 14.54 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001208/0.2667, allocations: 129.8 kB / 440 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.274e-05/0.2667, allocations: 11.95 kB / 440 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.842e-05/0.2667, allocations: 8.719 kB / 440 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.2667, allocations: 4 kB / 440 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-06/0.2667, allocations: 0 / 440 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.2667, allocations: 0 / 440 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002269/0.267, allocations: 192.6 kB / 440.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.041e-06/0.267, allocations: 0 / 440.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.202e-05/0.267, allocations: 4 kB / 440.2 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001196/0.2671, allocations: 44.89 kB / 440.2 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.466e-06/0.2671, allocations: 8 kB / 440.3 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001349/0.2685, allocations: 1.578 MB / 441.8 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.2685, allocations: 3.984 kB / 441.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003101/0.2688, allocations: 216.2 kB / 442 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.717e-05/0.2688, allocations: 7.953 kB / 442.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.509e-05/0.2688, allocations: 8.062 kB / 442.1 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.381e-05/0.2689, allocations: 4 kB / 442.1 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.847e-05/0.2689, allocations: 3.984 kB / 442.1 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.438e-06/0.269, allocations: 8.125 kB / 442.1 MB, free: 12.13 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.26e-05/0.269, allocations: 112.9 kB / 442.2 MB, free: 12.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.269, allocations: 4 kB / 442.2 MB, free: 12.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003404/0.2694, allocations: 35.89 kB / 442.2 MB, free: 11.98 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006276/0.27, allocations: 0.7522 MB / 443 MB, free: 11.2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004027/0.2704, allocations: 182.7 kB / 443.2 MB, free: 11.01 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.2704, allocations: 8 kB / 443.2 MB, free: 11 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002145/0.2706, allocations: 154.6 kB / 443.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002559/0.2709, allocations: 17.42 kB / 443.3 MB, free: 10.83 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002137/0.273, allocations: 1.73 MB / 445.1 MB, free: 8.996 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003468/0.2734, allocations: 0.7119 MB / 445.8 MB, free: 8.258 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.255e-05/0.2734, allocations: 4.438 kB / 445.8 MB, free: 8.254 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.103e-05/0.2735, allocations: 31.42 kB / 445.8 MB, free: 8.223 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2735, allocations: 0 / 445.8 MB, free: 8.223 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02657/0.3, allocations: 3.19 MB / 449 MB, free: 5.184 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.84/12.14, allocations: 7.047 kB / 449 MB, free: 5.18 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Resistor_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Resistor.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.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: 14.587459146976471]