Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009574/0.0009574, allocations: 80.34 kB / 20.67 MB, free: 3.883 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009471/0.0009471, allocations: 156.9 kB / 23.95 MB, free: 0.6055 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8766/0.8766, allocations: 177 MB / 204.1 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 324.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.562e-05/1.71e-05, allocations: 3.266 kB / 324.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.002313/0.00233, allocations: 2.09 MB / 326.6 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007371/0.003067, allocations: 0.5766 MB / 327.2 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.341e-05/0.003151, allocations: 4 kB / 327.2 MB, free: 13.17 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000128/0.003279, allocations: 27.78 kB / 327.2 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.103e-05/0.00335, allocations: 43.58 kB / 327.3 MB, free: 13.1 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002498/0.003599, allocations: 63.73 kB / 327.3 MB, free: 13.04 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001585/0.003758, allocations: 171.1 kB / 327.5 MB, free: 12.87 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001416/0.0039, allocations: 33.66 kB / 327.5 MB, free: 12.83 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001669/0.004066, allocations: 95.73 kB / 327.6 MB, free: 12.74 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.097e-05/0.004147, allocations: 51.86 kB / 327.7 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.239e-05/0.00417, allocations: 12 kB / 327.7 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.177e-05/0.004232, allocations: 24 kB / 327.7 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.188e-05/0.004253, allocations: 27.84 kB / 327.7 MB, free: 12.62 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.253e-05/0.004296, allocations: 47.92 kB / 327.8 MB, free: 12.58 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002024/0.004498, allocations: 179.4 kB / 328 MB, free: 12.4 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.0045, allocations: 0 / 328 MB, free: 12.4 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.004502, allocations: 4 kB / 328 MB, free: 12.4 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.84e-06/0.004506, allocations: 0 / 328 MB, free: 12.4 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.0004369/0.004943, allocations: 365.9 kB / 328.3 MB, free: 12.01 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/0.004979, allocations: 15.98 kB / 328.3 MB, free: 11.99 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.183e-05/0.005011, allocations: 42.73 kB / 328.4 MB, free: 11.94 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001059/0.005117, allocations: 24.84 kB / 328.4 MB, free: 11.92 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001794/0.005296, allocations: 165.5 kB / 328.6 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.124e-05/0.005307, allocations: 8.609 kB / 328.6 MB, free: 11.72 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.434e-05/0.005322, allocations: 12.38 kB / 328.6 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001684/0.00549, allocations: 141.7 kB / 328.7 MB, free: 11.56 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.973e-06/0.005497, allocations: 192 / 328.7 MB, free: 11.56 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.375e-05/0.005511, allocations: 12.12 kB / 328.7 MB, free: 11.55 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.005516, allocations: 3.984 kB / 328.7 MB, free: 11.55 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001188/0.005635, allocations: 80.61 kB / 328.8 MB, free: 11.47 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004965/0.006131, allocations: 470.9 kB / 329.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001902/0.006321, allocations: 78.62 kB / 329.4 MB, free: 10.87 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.521e-05/0.006367, allocations: 36.84 kB / 329.4 MB, free: 10.83 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.172e-05/0.006378, allocations: 4 kB / 329.4 MB, free: 10.83 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.648e-05/0.006395, allocations: 30.56 kB / 329.4 MB, free: 10.79 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 9.62e-07/0.006396, allocations: 0 / 329.4 MB, free: 10.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003957/0.006791, allocations: 178.3 kB / 329.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.439e-05/0.006816, allocations: 55.41 kB / 329.7 MB, free: 10.54 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.725e-05/0.006903, allocations: 157.7 kB / 329.8 MB, free: 10.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.989e-06/0.006913, allocations: 29.7 kB / 329.8 MB, free: 10.34 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.5e-05/0.006968, allocations: 128.1 kB / 330 MB, free: 10.21 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.236e-05/0.00698, allocations: 27.78 kB / 330 MB, free: 10.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.887e-05/0.007009, allocations: 17.72 kB / 330 MB, free: 10.16 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.017e-05/0.007079, allocations: 322.8 kB / 330.3 MB, free: 9.836 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.643e-05/0.007116, allocations: 23.98 kB / 330.3 MB, free: 9.812 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.284e-05/0.007159, allocations: 42.56 kB / 330.4 MB, free: 9.762 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.26e-05/0.007241, allocations: 66.5 kB / 330.5 MB, free: 9.688 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.007243, allocations: 4 kB / 330.5 MB, free: 9.684 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001592/0.007402, allocations: 138.3 kB / 330.6 MB, free: 9.539 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.214e-05/0.007415, allocations: 4 kB / 330.6 MB, free: 9.535 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/0.007419, allocations: 0 / 330.6 MB, free: 9.535 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001203/0.007539, allocations: 40.83 kB / 330.6 MB, free: 9.492 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.426e-05/0.007573, allocations: 11.98 kB / 330.6 MB, free: 9.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001175/0.008749, allocations: 1.576 MB / 332.2 MB, free: 7.797 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.589e-05/0.008784, allocations: 12.3 kB / 332.2 MB, free: 7.785 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.502e-06/0.008791, allocations: 4.188 kB / 332.2 MB, free: 7.781 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.43e-05/0.008855, allocations: 120.8 kB / 332.4 MB, free: 7.656 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.732e-05/0.008873, allocations: 19.89 kB / 332.4 MB, free: 7.637 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.388e-05/0.008886, allocations: 20.78 kB / 332.4 MB, free: 7.617 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.31e-07/0.008887, allocations: 0 / 332.4 MB, free: 7.617 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.00889, allocations: 3.984 kB / 332.4 MB, free: 7.613 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.008892, allocations: 0 / 332.4 MB, free: 7.613 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001227/0.009015, allocations: 172.7 kB / 332.6 MB, free: 7.402 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.009016, allocations: 0 / 332.6 MB, free: 7.402 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.309e-05/0.009029, allocations: 7.938 kB / 332.6 MB, free: 7.395 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.302e-05/0.009102, allocations: 40.77 kB / 332.6 MB, free: 7.352 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.472e-06/0.009108, allocations: 0 / 332.6 MB, free: 7.352 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007363/0.009844, allocations: 1.574 MB / 334.2 MB, free: 5.66 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.009845, allocations: 0 / 334.2 MB, free: 5.66 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001638/0.01001, allocations: 216.4 kB / 334.4 MB, free: 5.43 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.578e-06/0.01002, allocations: 7.953 kB / 334.4 MB, free: 5.422 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.352e-06/0.01002, allocations: 0 / 334.4 MB, free: 5.422 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.726e-05/0.01007, allocations: 12.05 kB / 334.4 MB, free: 5.41 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.919e-05/0.0101, allocations: 11.98 kB / 334.4 MB, free: 5.398 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.707e-06/0.0101, allocations: 0 / 334.4 MB, free: 5.398 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.737e-05/0.01015, allocations: 107.3 kB / 334.5 MB, free: 5.293 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01015, allocations: 0 / 334.5 MB, free: 5.293 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002166/0.01037, allocations: 43.89 kB / 334.6 MB, free: 5.25 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.0003205/0.01069, allocations: 0.7443 MB / 335.3 MB, free: 4.477 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002411/0.01093, allocations: 198.5 kB / 335.5 MB, free: 4.27 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.01093, allocations: 0 / 335.5 MB, free: 4.27 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.72e-05/0.01103, allocations: 150.7 kB / 335.7 MB, free: 4.109 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001745/0.0112, allocations: 14.95 kB / 335.7 MB, free: 4.098 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001153/0.01236, allocations: 1.701 MB / 337.4 MB, free: 2.289 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.48e-05/0.01241, allocations: 98.27 kB / 337.5 MB, free: 2.176 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.823e-05/0.01244, allocations: 4.5 kB / 337.5 MB, free: 2.172 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.743e-05/0.01249, allocations: 32.48 kB / 337.5 MB, free: 2.141 MB / 298.7 MB Notification: Performance of SimCode: time 5.01e-07/0.01249, allocations: 4 kB / 337.5 MB, free: 2.137 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01984/0.03233, allocations: 3.636 MB / 341.2 MB, free: 14.61 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.429/7.461, allocations: 240 / 341.2 MB, free: 14.61 MB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.116143468767405]