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.0009839/0.0009839, allocations: 80.34 kB / 20.67 MB, free: 3.891 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.0009257/0.0009257, allocations: 156.9 kB / 23.95 MB, free: 0.6133 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.9006/0.9006, allocations: 177 MB / 204.1 MB, free: 5.758 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.894e-06/1.894e-06, allocations: 0 / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.123e-05/2.312e-05, allocations: 6.984 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.002918/0.002941, allocations: 2.094 MB / 326.6 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000933/0.003874, allocations: 0.5805 MB / 327.2 MB, free: 13.19 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.528e-05/0.00397, allocations: 4 kB / 327.2 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001261/0.004096, allocations: 23.78 kB / 327.2 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.434e-05/0.00417, allocations: 43.58 kB / 327.3 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002644/0.004435, allocations: 63.73 kB / 327.3 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001586/0.004593, allocations: 167.1 kB / 327.5 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001426/0.004736, allocations: 37.66 kB / 327.5 MB, free: 12.85 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001738/0.00491, allocations: 103.7 kB / 327.6 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.084e-05/0.00499, allocations: 47.88 kB / 327.7 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.251e-05/0.005013, allocations: 12 kB / 327.7 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.049e-05/0.005073, allocations: 20 kB / 327.7 MB, free: 12.67 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.472e-05/0.005098, allocations: 31.84 kB / 327.7 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.128e-05/0.005139, allocations: 43.92 kB / 327.8 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002165/0.005356, allocations: 179.4 kB / 328 MB, free: 12.42 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.00536, allocations: 0 / 328 MB, free: 12.42 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.005361, allocations: 0 / 328 MB, free: 12.42 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.005366, allocations: 0 / 328 MB, free: 12.42 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.0005007/0.005867, allocations: 373.9 kB / 328.3 MB, free: 12.02 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.005909, allocations: 11.98 kB / 328.3 MB, free: 12.01 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.136e-05/0.00595, allocations: 46.73 kB / 328.4 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001345/0.006085, allocations: 28.83 kB / 328.4 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002527/0.006338, allocations: 149.5 kB / 328.6 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.309e-05/0.006351, allocations: 8.609 kB / 328.6 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.653e-05/0.006367, allocations: 12.38 kB / 328.6 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002055/0.006573, allocations: 141.8 kB / 328.7 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.288e-06/0.006582, allocations: 192 / 328.7 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.774e-05/0.0066, allocations: 12.11 kB / 328.7 MB, free: 11.57 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.463e-06/0.006606, allocations: 4 kB / 328.7 MB, free: 11.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001213/0.006728, allocations: 80.61 kB / 328.8 MB, free: 11.49 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005822/0.00731, allocations: 474.8 kB / 329.3 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002155/0.007525, allocations: 78.62 kB / 329.4 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.951e-05/0.007575, allocations: 36.84 kB / 329.4 MB, free: 10.85 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.395e-05/0.007589, allocations: 3.984 kB / 329.4 MB, free: 10.85 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.104e-05/0.00761, allocations: 34.56 kB / 329.4 MB, free: 10.8 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.232e-06/0.007611, allocations: 4 kB / 329.4 MB, free: 10.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004315/0.008042, allocations: 174.3 kB / 329.6 MB, free: 10.62 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.001e-05/0.008072, allocations: 59.34 kB / 329.7 MB, free: 10.55 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001159/0.008188, allocations: 165.6 kB / 329.8 MB, free: 10.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.28e-05/0.008201, allocations: 25.7 kB / 329.8 MB, free: 10.35 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.816e-05/0.008269, allocations: 128.1 kB / 330 MB, free: 10.22 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.569e-05/0.008285, allocations: 19.84 kB / 330 MB, free: 10.2 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.333e-05/0.008318, allocations: 21.72 kB / 330 MB, free: 10.17 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.139e-05/0.00841, allocations: 322.8 kB / 330.3 MB, free: 9.848 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.413e-05/0.008454, allocations: 23.98 kB / 330.3 MB, free: 9.824 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.675e-05/0.008501, allocations: 38.56 kB / 330.4 MB, free: 9.777 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.882e-05/0.008589, allocations: 70.5 kB / 330.5 MB, free: 9.699 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.008591, allocations: 0 / 330.5 MB, free: 9.699 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001899/0.008781, allocations: 138.3 kB / 330.6 MB, free: 9.555 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.008797, allocations: 11.44 kB / 330.6 MB, free: 9.547 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.008803, allocations: 3.984 kB / 330.6 MB, free: 9.543 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001461/0.008949, allocations: 32.84 kB / 330.6 MB, free: 9.508 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.584e-05/0.008985, allocations: 16.05 kB / 330.7 MB, free: 9.492 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001109/0.01009, allocations: 1.577 MB / 332.2 MB, free: 7.805 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.756e-05/0.01014, allocations: 8.312 kB / 332.2 MB, free: 7.797 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.506e-06/0.01015, allocations: 4 kB / 332.2 MB, free: 7.793 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 8.321e-05/0.01023, allocations: 128.9 kB / 332.4 MB, free: 7.66 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.06e-05/0.01025, allocations: 11.89 kB / 332.4 MB, free: 7.648 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.547e-05/0.01027, allocations: 12.78 kB / 332.4 MB, free: 7.637 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.01027, allocations: 4 kB / 332.4 MB, free: 7.633 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.883e-06/0.01027, allocations: 3.984 kB / 332.4 MB, free: 7.629 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.01028, allocations: 0 / 332.4 MB, free: 7.629 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001447/0.01042, allocations: 168.7 kB / 332.6 MB, free: 7.422 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.01042, allocations: 4 kB / 332.6 MB, free: 7.418 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.746e-05/0.01044, allocations: 3.938 kB / 332.6 MB, free: 7.414 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.808e-05/0.01053, allocations: 48.77 kB / 332.6 MB, free: 7.363 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.585e-06/0.01054, allocations: 0 / 332.6 MB, free: 7.363 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008733/0.01141, allocations: 1.566 MB / 334.2 MB, free: 5.68 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.01141, allocations: 0 / 334.2 MB, free: 5.68 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001771/0.01159, allocations: 224.3 kB / 334.4 MB, free: 5.441 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.067e-06/0.0116, allocations: 12.02 kB / 334.4 MB, free: 5.43 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.682e-06/0.0116, allocations: 0 / 334.4 MB, free: 5.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.183e-05/0.01166, allocations: 7.984 kB / 334.4 MB, free: 5.422 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.03e-05/0.01169, allocations: 7.984 kB / 334.4 MB, free: 5.414 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.088e-06/0.01169, allocations: 7.938 kB / 334.4 MB, free: 5.406 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.075e-05/0.01174, allocations: 107.3 kB / 334.5 MB, free: 5.301 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01174, allocations: 0 / 334.5 MB, free: 5.301 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002288/0.01197, allocations: 35.95 kB / 334.6 MB, free: 5.266 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.0003755/0.01234, allocations: 0.7515 MB / 335.3 MB, free: 4.488 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000275/0.01262, allocations: 202.5 kB / 335.5 MB, free: 4.277 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.01262, allocations: 0 / 335.5 MB, free: 4.277 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001047/0.01273, allocations: 146.7 kB / 335.7 MB, free: 4.121 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001938/0.01292, allocations: 16.11 kB / 335.7 MB, free: 4.105 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00129/0.01421, allocations: 1.693 MB / 337.4 MB, free: 2.305 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.774e-05/0.01428, allocations: 102.3 kB / 337.5 MB, free: 2.188 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.46e-05/0.01431, allocations: 0.5 kB / 337.5 MB, free: 2.188 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.796e-05/0.01436, allocations: 36.48 kB / 337.5 MB, free: 2.152 MB / 298.7 MB Notification: Performance of SimCode: time 5.21e-07/0.01436, allocations: 0 / 337.5 MB, free: 2.152 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01835/0.03271, allocations: 3.632 MB / 341.1 MB, free: 14.63 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.51/7.543, allocations: 8.234 kB / 341.2 MB, free: 14.62 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 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.csv","/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] "Error: Could not read variable resistor.i in file Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.csv. Warning: Get data of variable resistor.i from file Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.csv failed! Error: Could not read variable resistor.LossPower in file Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.csv. Warning: Get data of variable resistor.LossPower from file Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.358708873391151]