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.001786/0.001786, allocations: 109.1 kB / 21.22 MB, free: 0.6484 MB / 14.72 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.002071/0.002071, allocations: 208.7 kB / 24.51 MB, free: 3.941 MB / 14.72 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 1.415/1.415, allocations: 230.5 MB / 258.2 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001828/0.001828, allocations: 63.89 kB / 378.5 MB, free: 2.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2418/0.2436, allocations: 53.41 MB / 431.9 MB, free: 6.477 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003439/0.247, allocations: 2.087 MB / 434 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001099/0.2481, allocations: 0.5844 MB / 434.6 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001109/0.2482, allocations: 4 kB / 434.6 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001373/0.2484, allocations: 19.78 kB / 434.6 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.471e-05/0.2485, allocations: 47.56 kB / 434.7 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002683/0.2487, allocations: 51.88 kB / 434.7 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002087/0.249, allocations: 155.2 kB / 434.9 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001676/0.2491, allocations: 45.64 kB / 434.9 MB, free: 3.469 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001653/0.2493, allocations: 67.73 kB / 435 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001234/0.2494, allocations: 79.67 kB / 435.1 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.691e-05/0.2494, allocations: 12 kB / 435.1 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.427e-05/0.2495, allocations: 20 kB / 435.1 MB, free: 3.293 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.775e-05/0.2496, allocations: 27.92 kB / 435.1 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.526e-05/0.2496, allocations: 55.73 kB / 435.2 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002498/0.2499, allocations: 179.2 kB / 435.3 MB, free: 3.035 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2499, allocations: 0 / 435.3 MB, free: 3.035 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2499, allocations: 0 / 435.3 MB, free: 3.035 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.982e-06/0.2499, allocations: 0 / 435.3 MB, free: 3.035 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.0006085/0.2505, allocations: 369.9 kB / 435.7 MB, free: 2.641 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.2505, allocations: 8.031 kB / 435.7 MB, free: 2.633 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.083e-05/0.2506, allocations: 4.422 kB / 435.7 MB, free: 2.629 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.594e-05/0.2506, allocations: 46.73 kB / 435.8 MB, free: 2.574 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001868/0.2508, allocations: 28.83 kB / 435.8 MB, free: 2.547 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002705/0.2511, allocations: 154.3 kB / 435.9 MB, free: 2.371 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.583e-05/0.2511, allocations: 12.61 kB / 435.9 MB, free: 2.359 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.915e-05/0.2511, allocations: 8.375 kB / 436 MB, free: 2.352 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002612/0.2514, allocations: 149.1 kB / 436.1 MB, free: 2.195 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.2514, allocations: 4 kB / 436.1 MB, free: 2.191 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.572e-05/0.2514, allocations: 7.938 kB / 436.1 MB, free: 2.184 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.2514, allocations: 7.984 kB / 436.1 MB, free: 2.176 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001812/0.2516, allocations: 76.67 kB / 436.2 MB, free: 2.102 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008951/0.2525, allocations: 478.1 kB / 436.7 MB, free: 1.578 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002865/0.2527, allocations: 78.62 kB / 436.7 MB, free: 1.492 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.578e-05/0.2528, allocations: 32.97 kB / 436.8 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.411e-05/0.2528, allocations: 4 kB / 436.8 MB, free: 1.453 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.996e-05/0.2529, allocations: 30.56 kB / 436.8 MB, free: 1.414 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.233e-06/0.2529, allocations: 0 / 436.8 MB, free: 1.414 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006523/0.2535, allocations: 178.3 kB / 437 MB, free: 1.23 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.51e-05/0.2536, allocations: 51.41 kB / 437 MB, free: 1.168 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00014/0.2537, allocations: 161.6 kB / 437.2 MB, free: 1 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.888e-05/0.2537, allocations: 25.7 kB / 437.2 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.226e-05/0.2538, allocations: 124.2 kB / 437.3 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.256e-05/0.2538, allocations: 23.83 kB / 437.4 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.419e-05/0.2539, allocations: 21.67 kB / 437.4 MB, free: 0.793 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.254, allocations: 322.8 kB / 437.7 MB, free: 480 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.578e-05/0.2541, allocations: 27.98 kB / 437.7 MB, free: 452 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.186e-05/0.2542, allocations: 50.5 kB / 437.8 MB, free: 392 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001318/0.2543, allocations: 66.5 kB / 437.8 MB, free: 316 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.2543, allocations: 256 / 437.8 MB, free: 316 kB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002987/0.2546, allocations: 138.3 kB / 438 MB, free: 168 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/0.2546, allocations: 4 kB / 438 MB, free: 164 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.2546, allocations: 8.062 kB / 438 MB, free: 156 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001739/0.2548, allocations: 36.84 kB / 438 MB, free: 116 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.783e-05/0.2548, allocations: 11.92 kB / 438 MB, free: 104 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001719/0.2566, allocations: 1.578 MB / 439.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.822e-05/0.2566, allocations: 7.953 kB / 439.6 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.694e-06/0.2566, allocations: 0 / 439.6 MB, free: 14.4 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.0001052/0.2567, allocations: 125.8 kB / 439.7 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.348e-05/0.2568, allocations: 7.953 kB / 439.7 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.307e-05/0.2568, allocations: 16.7 kB / 439.8 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.2568, allocations: 0 / 439.8 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-06/0.2568, allocations: 0 / 439.8 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.884e-06/0.2568, allocations: 0 / 439.8 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002159/0.257, allocations: 176.7 kB / 439.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.257, allocations: 12.06 kB / 439.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.701e-05/0.2571, allocations: 3.984 kB / 440 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001206/0.2572, allocations: 36.84 kB / 440 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.025e-06/0.2572, allocations: 0 / 440 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001384/0.2586, allocations: 1.57 MB / 441.6 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.2586, allocations: 4.062 kB / 441.6 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003107/0.2589, allocations: 212.2 kB / 441.8 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.126e-05/0.2589, allocations: 11.94 kB / 441.8 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.371e-05/0.2589, allocations: 0 / 441.8 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.972e-05/0.259, allocations: 4.188 kB / 441.8 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.653e-05/0.2591, allocations: 19.92 kB / 441.8 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.854e-06/0.2591, allocations: 3.938 kB / 441.8 MB, free: 12.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.912e-05/0.2592, allocations: 114.8 kB / 441.9 MB, free: 11.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2592, allocations: 0 / 441.9 MB, free: 11.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000358/0.2595, allocations: 48.08 kB / 442 MB, free: 11.86 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.0006128/0.2601, allocations: 0.7444 MB / 442.7 MB, free: 11.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003964/0.2605, allocations: 182.6 kB / 442.9 MB, free: 10.9 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.2605, allocations: 0 / 442.9 MB, free: 10.9 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00023/0.2608, allocations: 162.7 kB / 443 MB, free: 10.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002564/0.261, allocations: 8.234 kB / 443.1 MB, free: 10.72 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002111/0.2631, allocations: 1.737 MB / 444.8 MB, free: 8.883 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001061/0.2632, allocations: 94.27 kB / 444.9 MB, free: 8.773 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.236e-05/0.2633, allocations: 8.469 kB / 444.9 MB, free: 8.766 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.922e-05/0.2633, allocations: 35.42 kB / 444.9 MB, free: 8.73 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2633, allocations: 0 / 444.9 MB, free: 8.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02533/0.2887, allocations: 3.159 MB / 448.1 MB, free: 5.703 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.57/12.86, allocations: 11.31 kB / 448.1 MB, free: 5.695 MB / 350.1 MB " [Timeout remaining time 647] (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/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_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: 15.381176686030813]