Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001645/0.001645, allocations: 112.2 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002147/0.002147, allocations: 181.3 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.542/1.542, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001558/0.001558, allocations: 47.92 kB / 370.5 MB, free: 9.832 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3144/0.316, allocations: 52.18 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003824/0.3198, allocations: 2.161 MB / 424.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001078/0.3209, allocations: 0.5494 MB / 425.3 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001267/0.321, allocations: 4 kB / 425.3 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001539/0.3212, allocations: 19.78 kB / 425.4 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.763e-05/0.3213, allocations: 51.62 kB / 425.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002415/0.3215, allocations: 39.89 kB / 425.5 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002308/0.3218, allocations: 155.3 kB / 425.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001647/0.3219, allocations: 45.58 kB / 425.7 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001256/0.322, allocations: 63.73 kB / 425.7 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001341/0.3222, allocations: 67.7 kB / 425.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.915e-05/0.3222, allocations: 12 kB / 425.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.975e-05/0.3223, allocations: 16 kB / 425.8 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.705e-05/0.3223, allocations: 39.89 kB / 425.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.198e-05/0.3224, allocations: 67.67 kB / 425.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002652/0.3227, allocations: 163.7 kB / 426.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.3227, allocations: 0 / 426.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3227, allocations: 0 / 426.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.3227, allocations: 0 / 426.1 MB, free: 11.14 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.00062/0.3233, allocations: 373.9 kB / 426.4 MB, free: 10.74 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.3233, allocations: 8.031 kB / 426.4 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.546e-05/0.3234, allocations: 50.67 kB / 426.5 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.757e-05/0.3235, allocations: 12.89 kB / 426.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002672/0.3238, allocations: 154.2 kB / 426.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.99e-05/0.3238, allocations: 8.609 kB / 426.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.998e-05/0.3238, allocations: 12.38 kB / 426.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000249/0.3241, allocations: 120.8 kB / 426.8 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.3241, allocations: 0 / 426.8 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.492e-05/0.3241, allocations: 4 kB / 426.8 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.3241, allocations: 4 kB / 426.8 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001817/0.3243, allocations: 80.66 kB / 426.9 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008785/0.3252, allocations: 0.5697 MB / 427.5 MB, free: 9.613 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003059/0.3255, allocations: 78.61 kB / 427.5 MB, free: 9.527 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.982e-05/0.3255, allocations: 36.91 kB / 427.6 MB, free: 9.488 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.647e-05/0.3256, allocations: 4 kB / 427.6 MB, free: 9.484 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.263e-05/0.3256, allocations: 34.56 kB / 427.6 MB, free: 9.441 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.112e-06/0.3256, allocations: 0 / 427.6 MB, free: 9.441 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006836/0.3263, allocations: 182.3 kB / 427.8 MB, free: 9.254 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.226e-05/0.3263, allocations: 51.41 kB / 427.8 MB, free: 9.191 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001483/0.3265, allocations: 144.9 kB / 428 MB, free: 9.043 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.986e-05/0.3265, allocations: 25.7 kB / 428 MB, free: 9.012 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.481e-05/0.3266, allocations: 136 kB / 428.1 MB, free: 8.871 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.348e-05/0.3266, allocations: 23.8 kB / 428.2 MB, free: 8.848 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.794e-05/0.3267, allocations: 25.7 kB / 428.2 MB, free: 8.816 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.3268, allocations: 318.8 kB / 428.5 MB, free: 8.496 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.612e-05/0.3269, allocations: 20 kB / 428.5 MB, free: 8.477 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.279e-05/0.327, allocations: 46.55 kB / 428.6 MB, free: 8.422 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001487/0.3271, allocations: 70.5 kB / 428.6 MB, free: 8.344 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.3271, allocations: 4 kB / 428.6 MB, free: 8.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002847/0.3274, allocations: 126.3 kB / 428.8 MB, free: 8.207 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.3274, allocations: 8 kB / 428.8 MB, free: 8.199 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.3274, allocations: 0 / 428.8 MB, free: 8.199 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002184/0.3276, allocations: 41.14 kB / 428.8 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.49e-05/0.3277, allocations: 11.94 kB / 428.8 MB, free: 8.145 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001696/0.3294, allocations: 1.589 MB / 430.4 MB, free: 6.445 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.174e-05/0.3295, allocations: 11.92 kB / 430.4 MB, free: 6.434 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.333e-06/0.3295, allocations: 0 / 430.4 MB, free: 6.434 MB / 334.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.0001138/0.3296, allocations: 125.9 kB / 430.5 MB, free: 6.301 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.621e-05/0.3296, allocations: 11.89 kB / 430.5 MB, free: 6.289 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.066e-05/0.3296, allocations: 12.72 kB / 430.6 MB, free: 6.281 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.3296, allocations: 0 / 430.6 MB, free: 6.281 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-06/0.3296, allocations: 0 / 430.6 MB, free: 6.281 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.3296, allocations: 0 / 430.6 MB, free: 6.281 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002383/0.3299, allocations: 188.6 kB / 430.7 MB, free: 6.055 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.3299, allocations: 7.938 kB / 430.8 MB, free: 6.047 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.69e-05/0.3299, allocations: 4.031 kB / 430.8 MB, free: 6.043 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001344/0.3301, allocations: 44.95 kB / 430.8 MB, free: 5.996 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.218e-05/0.3301, allocations: 4 kB / 430.8 MB, free: 5.992 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001496/0.3316, allocations: 1.575 MB / 432.4 MB, free: 4.297 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3316, allocations: 3.938 kB / 432.4 MB, free: 4.293 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003415/0.3319, allocations: 220.3 kB / 432.6 MB, free: 4.059 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.732e-05/0.3319, allocations: 7.953 kB / 432.6 MB, free: 4.051 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.275e-05/0.3319, allocations: 0 / 432.6 MB, free: 4.051 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001001/0.332, allocations: 8 kB / 432.6 MB, free: 4.043 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.57e-05/0.3321, allocations: 7.922 kB / 432.6 MB, free: 4.035 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.49e-06/0.3321, allocations: 4 kB / 432.6 MB, free: 4.031 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.143e-05/0.3322, allocations: 118.1 kB / 432.7 MB, free: 3.918 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3322, allocations: 0 / 432.7 MB, free: 3.918 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003569/0.3325, allocations: 35.94 kB / 432.8 MB, free: 3.883 MB / 334.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.0006439/0.3332, allocations: 0.7563 MB / 433.5 MB, free: 3.098 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004324/0.3336, allocations: 186.7 kB / 433.7 MB, free: 2.902 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3336, allocations: 0 / 433.7 MB, free: 2.902 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002221/0.3338, allocations: 158.5 kB / 433.9 MB, free: 2.734 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002567/0.3341, allocations: 8 kB / 433.9 MB, free: 2.727 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002195/0.3363, allocations: 1.707 MB / 435.6 MB, free: 0.918 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003984/0.3367, allocations: 0.7157 MB / 436.3 MB, free: 180 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.97e-05/0.3367, allocations: 4.438 kB / 436.3 MB, free: 176 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.983e-05/0.3368, allocations: 31.36 kB / 436.3 MB, free: 144 kB / 334.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3368, allocations: 0 / 436.3 MB, free: 144 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04309/0.3799, allocations: 3.14 MB / 439.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.24/12.62, allocations: 7.594 kB / 439.5 MB, free: 13.14 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Analog_Examples_Resistor.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.csv. Warning: Get data of variable resistor.i from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.csv failed! Error: Could not read variable resistor.LossPower in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.csv. Warning: Get data of variable resistor.LossPower from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.307550650999474]