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.0008943/0.0008943, allocations: 91.67 kB / 20.68 MB, free: 3.871 MB / 18.57 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.0009148/0.0009148, allocations: 166 kB / 23.95 MB, free: 0.5977 MB / 18.57 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 0.8894/0.8894, allocations: 177.1 MB / 204.3 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.824e-06/1.824e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.796e-05/1.979e-05, allocations: 8.531 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.002383/0.002403, allocations: 2.093 MB / 326.7 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006718/0.003075, allocations: 0.5843 MB / 327.3 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.034e-05/0.003145, allocations: 4 kB / 327.3 MB, free: 13.24 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.508e-05/0.00324, allocations: 23.78 kB / 327.3 MB, free: 13.22 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.809e-05/0.003299, allocations: 43.56 kB / 327.3 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001915/0.00349, allocations: 63.75 kB / 327.4 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003602/0.00385, allocations: 171.1 kB / 327.6 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000117/0.003967, allocations: 33.66 kB / 327.6 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000137/0.004104, allocations: 99.78 kB / 327.7 MB, free: 12.81 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.902e-05/0.004173, allocations: 47.88 kB / 327.7 MB, free: 12.76 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.896e-05/0.004192, allocations: 15.94 kB / 327.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.862e-05/0.004241, allocations: 16 kB / 327.8 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.046e-05/0.004261, allocations: 31.84 kB / 327.8 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.769e-05/0.004299, allocations: 47.91 kB / 327.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001692/0.004468, allocations: 179.4 kB / 328 MB, free: 12.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.663e-06/0.00447, allocations: 0 / 328 MB, free: 12.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.004471, allocations: 4 kB / 328 MB, free: 12.47 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.346e-06/0.004474, allocations: 0 / 328 MB, free: 12.47 MB / 298.7 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.0003977/0.004872, allocations: 369.9 kB / 328.4 MB, free: 12.08 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.004909, allocations: 8.031 kB / 328.4 MB, free: 12.07 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.16e-05/0.004941, allocations: 42.73 kB / 328.4 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001083/0.005049, allocations: 28.83 kB / 328.5 MB, free: 11.99 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001749/0.005224, allocations: 161.5 kB / 328.6 MB, free: 11.81 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.079e-05/0.005235, allocations: 8.609 kB / 328.6 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.327e-05/0.005248, allocations: 12.38 kB / 328.6 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001655/0.005414, allocations: 137.8 kB / 328.8 MB, free: 11.64 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.633e-06/0.00542, allocations: 192 / 328.8 MB, free: 11.64 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.4e-05/0.005434, allocations: 12.12 kB / 328.8 MB, free: 11.63 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.887e-06/0.005438, allocations: 0 / 328.8 MB, free: 11.63 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001124/0.005551, allocations: 80.66 kB / 328.9 MB, free: 11.55 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004954/0.006046, allocations: 474.8 kB / 329.3 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001872/0.006233, allocations: 78.62 kB / 329.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.291e-05/0.006276, allocations: 32.91 kB / 329.4 MB, free: 10.92 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.169e-05/0.006288, allocations: 4 kB / 329.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.608e-05/0.006304, allocations: 34.55 kB / 329.5 MB, free: 10.87 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.001e-06/0.006305, allocations: 0 / 329.5 MB, free: 10.87 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.000382/0.006687, allocations: 178.3 kB / 329.6 MB, free: 10.69 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.427e-05/0.006711, allocations: 59.34 kB / 329.7 MB, free: 10.62 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.554e-05/0.006797, allocations: 160.6 kB / 329.9 MB, free: 10.45 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.098e-05/0.006808, allocations: 25.7 kB / 329.9 MB, free: 10.42 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.657e-05/0.006864, allocations: 132.1 kB / 330 MB, free: 10.29 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.169e-05/0.006876, allocations: 27.8 kB / 330 MB, free: 10.26 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.994e-05/0.006906, allocations: 21.7 kB / 330.1 MB, free: 10.23 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.57e-05/0.006972, allocations: 318.8 kB / 330.4 MB, free: 9.914 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.843e-05/0.00701, allocations: 23.98 kB / 330.4 MB, free: 9.891 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.339e-05/0.007054, allocations: 42.56 kB / 330.4 MB, free: 9.84 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.474e-05/0.007138, allocations: 70.48 kB / 330.5 MB, free: 9.762 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.00714, allocations: 0 / 330.5 MB, free: 9.762 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001597/0.0073, allocations: 138.3 kB / 330.6 MB, free: 9.617 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.009e-05/0.00731, allocations: 4 kB / 330.7 MB, free: 9.613 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.007314, allocations: 0 / 330.7 MB, free: 9.613 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001169/0.00743, allocations: 40.83 kB / 330.7 MB, free: 9.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.941e-05/0.00746, allocations: 11.94 kB / 330.7 MB, free: 9.559 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001033/0.008493, allocations: 1.581 MB / 332.3 MB, free: 7.871 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.826e-05/0.008531, allocations: 11.94 kB / 332.3 MB, free: 7.859 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.372e-06/0.008537, allocations: 0 / 332.3 MB, free: 7.859 MB / 298.7 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 6.621e-05/0.008603, allocations: 125.8 kB / 332.4 MB, free: 7.727 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.871e-05/0.008622, allocations: 11.89 kB / 332.4 MB, free: 7.715 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.221e-05/0.008634, allocations: 16.84 kB / 332.4 MB, free: 7.699 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.71e-07/0.008635, allocations: 0 / 332.4 MB, free: 7.699 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.91e-07/0.008636, allocations: 0 / 332.4 MB, free: 7.699 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.245e-06/0.008638, allocations: 0 / 332.4 MB, free: 7.699 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001285/0.008766, allocations: 180.7 kB / 332.6 MB, free: 7.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.008767, allocations: 0 / 332.6 MB, free: 7.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.779e-05/0.008785, allocations: 4 kB / 332.6 MB, free: 7.477 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.478e-05/0.00886, allocations: 40.77 kB / 332.7 MB, free: 7.434 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.811e-06/0.008866, allocations: 0 / 332.7 MB, free: 7.434 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007456/0.009611, allocations: 1.578 MB / 334.2 MB, free: 5.738 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.009612, allocations: 4.125 kB / 334.2 MB, free: 5.734 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004035/0.01002, allocations: 212.3 kB / 334.5 MB, free: 5.508 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.107e-06/0.01002, allocations: 11.89 kB / 334.5 MB, free: 5.496 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.803e-06/0.01003, allocations: 3.938 kB / 334.5 MB, free: 5.492 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.02e-05/0.01008, allocations: 4.062 kB / 334.5 MB, free: 5.488 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.69e-05/0.01011, allocations: 15.98 kB / 334.5 MB, free: 5.473 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.158e-06/0.01011, allocations: 0 / 334.5 MB, free: 5.473 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.835e-05/0.01016, allocations: 111.2 kB / 334.6 MB, free: 5.363 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01016, allocations: 0 / 334.6 MB, free: 5.363 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002219/0.01038, allocations: 43.89 kB / 334.6 MB, free: 5.32 MB / 298.7 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.0003127/0.0107, allocations: 0.7443 MB / 335.4 MB, free: 4.547 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000243/0.01094, allocations: 194.5 kB / 335.6 MB, free: 4.344 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.01094, allocations: 0 / 335.6 MB, free: 4.344 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.98e-05/0.01104, allocations: 154.8 kB / 335.7 MB, free: 4.18 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001802/0.01122, allocations: 18.78 kB / 335.7 MB, free: 4.164 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001165/0.01238, allocations: 1.702 MB / 337.4 MB, free: 2.355 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.339e-05/0.01244, allocations: 90.28 kB / 337.5 MB, free: 2.25 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.052e-05/0.01247, allocations: 12.48 kB / 337.5 MB, free: 2.238 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.145e-05/0.01251, allocations: 36.48 kB / 337.6 MB, free: 2.203 MB / 298.7 MB Notification: Performance of SimCode: time 4.01e-07/0.01251, allocations: 0 / 337.6 MB, free: 2.203 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01674/0.02925, allocations: 3.631 MB / 341.2 MB, free: 14.7 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.388/7.417, allocations: 3.203 kB / 341.2 MB, free: 14.7 MB / 314.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins/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: 9.08681150060147]