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.0009427/0.0009427, allocations: 76.06 kB / 20.67 MB, free: 3.887 MB / 18.57 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.001106/0.001106, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.925/0.925, allocations: 173.4 MB / 200.4 MB, free: 9.418 MB / 186.7 MB " [Timeout remaining time 179] 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 2.004e-06/2.004e-06, allocations: 0 / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.795e-05/1.996e-05, allocations: 10.22 kB / 318.4 MB, free: 6.336 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.002492/0.002512, allocations: 2.053 MB / 320.5 MB, free: 4.266 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007119/0.003224, allocations: 0.5259 MB / 321 MB, free: 3.734 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.674e-05/0.003311, allocations: 4 kB / 321 MB, free: 3.73 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001033/0.003414, allocations: 19.8 kB / 321 MB, free: 3.711 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.368e-05/0.003488, allocations: 55.55 kB / 321.1 MB, free: 3.656 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002228/0.003711, allocations: 31.95 kB / 321.1 MB, free: 3.625 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001641/0.003875, allocations: 171.1 kB / 321.3 MB, free: 3.457 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001311/0.004006, allocations: 40.92 kB / 321.3 MB, free: 3.414 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001135/0.004119, allocations: 95.73 kB / 321.4 MB, free: 3.32 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.068e-05/0.0042, allocations: 51.81 kB / 321.5 MB, free: 3.27 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.072e-05/0.004221, allocations: 12 kB / 321.5 MB, free: 3.258 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.324e-05/0.004274, allocations: 16 kB / 321.5 MB, free: 3.242 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.267e-05/0.004297, allocations: 27.91 kB / 321.5 MB, free: 3.215 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.033e-05/0.004337, allocations: 47.86 kB / 321.6 MB, free: 3.168 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000176/0.004513, allocations: 171.4 kB / 321.8 MB, free: 3 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.004515, allocations: 0 / 321.8 MB, free: 3 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.001e-06/0.004516, allocations: 0 / 321.8 MB, free: 3 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.939e-06/0.004526, allocations: 0 / 321.8 MB, free: 3 MB / 282.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.0004295/0.004956, allocations: 365.9 kB / 322.1 MB, free: 2.609 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.004997, allocations: 12.91 kB / 322.1 MB, free: 2.598 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.473e-05/0.005031, allocations: 42.75 kB / 322.2 MB, free: 2.547 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.935e-05/0.005101, allocations: 16.84 kB / 322.2 MB, free: 2.531 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002004/0.005301, allocations: 145.6 kB / 322.3 MB, free: 2.363 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.162e-05/0.005313, allocations: 12.61 kB / 322.3 MB, free: 2.352 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.406e-05/0.005327, allocations: 8.375 kB / 322.3 MB, free: 2.344 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002003/0.005527, allocations: 145.8 kB / 322.5 MB, free: 2.191 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.005535, allocations: 192 / 322.5 MB, free: 2.191 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.309e-05/0.005548, allocations: 16 kB / 322.5 MB, free: 2.176 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.005554, allocations: 4 kB / 322.5 MB, free: 2.172 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001186/0.005673, allocations: 80.66 kB / 322.6 MB, free: 2.094 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005411/0.006214, allocations: 474.8 kB / 323 MB, free: 1.574 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001994/0.006413, allocations: 78.62 kB / 323.1 MB, free: 1.488 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.326e-05/0.006457, allocations: 28.92 kB / 323.2 MB, free: 1.457 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.723e-05/0.006474, allocations: 3.984 kB / 323.2 MB, free: 1.453 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.016e-05/0.006494, allocations: 38.5 kB / 323.2 MB, free: 1.406 MB / 282.7 MB Notification: Performance of pre-optimization done (n=6): time 9.92e-07/0.006495, allocations: 0 / 323.2 MB, free: 1.406 MB / 282.7 MB Notification: Performance of matching and sorting (n=6): time 0.000399/0.006894, allocations: 178.3 kB / 323.4 MB, free: 1.223 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.713e-05/0.006921, allocations: 55.41 kB / 323.4 MB, free: 1.156 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.648e-05/0.007008, allocations: 141.8 kB / 323.6 MB, free: 1.008 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.18e-05/0.007019, allocations: 29.7 kB / 323.6 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.83e-05/0.007078, allocations: 132.1 kB / 323.7 MB, free: 0.8359 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.424e-05/0.007092, allocations: 27.8 kB / 323.7 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.022e-05/0.007122, allocations: 21.7 kB / 323.8 MB, free: 0.7812 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.516e-05/0.007197, allocations: 318.8 kB / 324.1 MB, free: 472 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.802e-05/0.007235, allocations: 23.98 kB / 324.1 MB, free: 448 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.631e-05/0.007282, allocations: 42.56 kB / 324.1 MB, free: 396 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.465e-05/0.007366, allocations: 70.5 kB / 324.2 MB, free: 316 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.007369, allocations: 0 / 324.2 MB, free: 316 kB / 282.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001759/0.007545, allocations: 138.3 kB / 324.3 MB, free: 168 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.218e-05/0.007557, allocations: 4 kB / 324.4 MB, free: 164 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.007562, allocations: 4 kB / 324.4 MB, free: 160 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001256/0.007687, allocations: 40.77 kB / 324.4 MB, free: 116 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.292e-05/0.00772, allocations: 8 kB / 324.4 MB, free: 108 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001174/0.008894, allocations: 1.585 MB / 326 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.547e-05/0.00894, allocations: 11.95 kB / 326 MB, free: 14.4 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.592e-06/0.008946, allocations: 4 kB / 326 MB, free: 14.4 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 7.099e-05/0.009017, allocations: 117.8 kB / 326.1 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.922e-05/0.009036, allocations: 12.12 kB / 326.1 MB, free: 14.26 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.242e-05/0.009049, allocations: 16.72 kB / 326.1 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.92e-07/0.00905, allocations: 8 kB / 326.2 MB, free: 14.24 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.52e-07/0.009051, allocations: 0 / 326.2 MB, free: 14.24 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.009053, allocations: 0 / 326.2 MB, free: 14.24 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001364/0.009189, allocations: 176.7 kB / 326.3 MB, free: 14.03 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.009191, allocations: 3.938 kB / 326.3 MB, free: 14.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.823e-05/0.009209, allocations: 7.984 kB / 326.3 MB, free: 14.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.778e-05/0.009287, allocations: 36.78 kB / 326.4 MB, free: 13.98 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.244e-06/0.009294, allocations: 3.938 kB / 326.4 MB, free: 13.97 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008141/0.01011, allocations: 1.574 MB / 328 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.01011, allocations: 3.938 kB / 328 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001748/0.01028, allocations: 212.2 kB / 328.2 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.07e-05/0.0103, allocations: 11.94 kB / 328.2 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.853e-06/0.0103, allocations: 0 / 328.2 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.43e-05/0.01036, allocations: 4 kB / 328.2 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.145e-05/0.01039, allocations: 16.05 kB / 328.2 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.749e-06/0.01039, allocations: 0 / 328.2 MB, free: 12.02 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.522e-05/0.01045, allocations: 114.2 kB / 328.3 MB, free: 11.91 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01045, allocations: 0 / 328.3 MB, free: 11.91 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002359/0.01068, allocations: 43.89 kB / 328.3 MB, free: 11.86 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.0003355/0.01102, allocations: 0.7395 MB / 329.1 MB, free: 11.1 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002619/0.01128, allocations: 194.6 kB / 329.3 MB, free: 10.89 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.01128, allocations: 0 / 329.3 MB, free: 10.89 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000114/0.0114, allocations: 154.6 kB / 329.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001842/0.01158, allocations: 12.25 kB / 329.4 MB, free: 10.72 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001261/0.01284, allocations: 1.694 MB / 331.1 MB, free: 8.922 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.704e-05/0.01293, allocations: 98.27 kB / 331.2 MB, free: 8.809 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.328e-05/0.01296, allocations: 4.5 kB / 331.2 MB, free: 8.805 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.549e-05/0.01301, allocations: 32.48 kB / 331.3 MB, free: 8.773 MB / 298.7 MB Notification: Performance of SimCode: time 7.61e-07/0.01301, allocations: 0 / 331.3 MB, free: 8.773 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01783/0.03084, allocations: 3.606 MB / 334.9 MB, free: 5.293 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.763/7.794, allocations: 13.88 kB / 334.9 MB, free: 5.285 MB / 298.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins/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: 9.681011653505266]