Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00157/0.00157, allocations: 112.2 kB / 18.49 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001815/0.001815, allocations: 218.9 kB / 21.46 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.429/1.429, allocations: 230.6 MB / 254.8 MB, free: 14.9 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 47.94 kB / 373.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1023, allocations: 53.33 MB / 427 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003477/0.1058, allocations: 2.164 MB / 429.2 MB, free: 2.598 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001027/0.1068, allocations: 0.6154 MB / 429.8 MB, free: 1.977 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.264e-05/0.1069, allocations: 4 kB / 429.8 MB, free: 1.973 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001202/0.107, allocations: 23.78 kB / 429.8 MB, free: 1.949 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.534e-05/0.1071, allocations: 47.56 kB / 429.9 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000215/0.1073, allocations: 51.88 kB / 429.9 MB, free: 1.852 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001886/0.1075, allocations: 159.2 kB / 430.1 MB, free: 1.695 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001361/0.1076, allocations: 37.47 kB / 430.1 MB, free: 1.652 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001517/0.1078, allocations: 71.72 kB / 430.2 MB, free: 1.582 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001075/0.1079, allocations: 67.7 kB / 430.3 MB, free: 1.516 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.345e-05/0.1079, allocations: 12 kB / 430.3 MB, free: 1.504 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.601e-05/0.108, allocations: 20 kB / 430.3 MB, free: 1.484 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.856e-05/0.108, allocations: 39.89 kB / 430.3 MB, free: 1.445 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.678e-05/0.1081, allocations: 75.55 kB / 430.4 MB, free: 1.371 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002394/0.1083, allocations: 167.3 kB / 430.6 MB, free: 1.207 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.1083, allocations: 3.938 kB / 430.6 MB, free: 1.203 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1083, allocations: 0 / 430.6 MB, free: 1.203 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.169e-06/0.1083, allocations: 0 / 430.6 MB, free: 1.203 MB / 350.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.0006274/0.109, allocations: 447 kB / 431 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.109, allocations: 8.031 kB / 431 MB, free: 0.707 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.632e-05/0.109, allocations: 8.422 kB / 431 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.334e-05/0.1091, allocations: 42.75 kB / 431.1 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000168/0.1092, allocations: 24.83 kB / 431.1 MB, free: 0.625 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000277/0.1095, allocations: 218.8 kB / 431.3 MB, free: 384 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.807e-05/0.1095, allocations: 12.59 kB / 431.3 MB, free: 372 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.224e-05/0.1095, allocations: 12.38 kB / 431.3 MB, free: 360 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002463/0.1098, allocations: 119.5 kB / 431.4 MB, free: 236 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.118e-06/0.1098, allocations: 4 kB / 431.4 MB, free: 232 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.559e-05/0.1098, allocations: 4 kB / 431.5 MB, free: 228 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.1098, allocations: 0 / 431.5 MB, free: 228 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001788/0.11, allocations: 76.67 kB / 431.5 MB, free: 152 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1897/0.2997, allocations: 0.5957 MB / 432.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002987/0.3, allocations: 81.31 kB / 432.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.496e-05/0.3, allocations: 36.34 kB / 432.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.368e-05/0.3001, allocations: 0.8438 kB / 432.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.9e-05/0.3001, allocations: 36.25 kB / 432.3 MB, free: 10.72 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.633e-06/0.3001, allocations: 0 / 432.3 MB, free: 10.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006553/0.3007, allocations: 253.1 kB / 432.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.946e-05/0.3008, allocations: 54.44 kB / 432.6 MB, free: 10.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.3009, allocations: 152.1 kB / 432.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.077e-06/0.3009, allocations: 25.7 kB / 432.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.881e-05/0.3009, allocations: 128 kB / 432.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.563e-05/0.3009, allocations: 25.69 kB / 432.9 MB, free: 10.29 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.779e-05/0.301, allocations: 18.97 kB / 432.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.124e-05/0.301, allocations: 321.3 kB / 433.2 MB, free: 9.957 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.246e-05/0.3011, allocations: 25.2 kB / 433.3 MB, free: 9.957 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.081e-05/0.3011, allocations: 45.89 kB / 433.3 MB, free: 9.934 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001207/0.3013, allocations: 70.3 kB / 433.4 MB, free: 9.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.3013, allocations: 1.188 kB / 433.4 MB, free: 9.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002569/0.3015, allocations: 140.2 kB / 433.5 MB, free: 9.863 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.3015, allocations: 5.938 kB / 433.5 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.3015, allocations: 0 / 433.5 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001662/0.3017, allocations: 39.64 kB / 433.5 MB, free: 9.855 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.908e-05/0.3018, allocations: 10.12 kB / 433.6 MB, free: 9.855 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001155/0.3029, allocations: 1.694 MB / 435.3 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.814e-05/0.303, allocations: 15.58 kB / 435.3 MB, free: 8.348 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.107e-06/0.303, allocations: 6.75 kB / 435.3 MB, free: 8.348 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 6.617e-05/0.3031, allocations: 126.7 kB / 435.4 MB, free: 8.234 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.029e-05/0.3031, allocations: 8.297 kB / 435.4 MB, free: 8.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.072e-05/0.3031, allocations: 12.44 kB / 435.4 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.3031, allocations: 2.5 kB / 435.4 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-06/0.3031, allocations: 1.344 kB / 435.4 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.3031, allocations: 0 / 435.4 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001697/0.3033, allocations: 216 kB / 435.6 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.3033, allocations: 0 / 435.6 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.465e-05/0.3033, allocations: 3.781 kB / 435.6 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00011/0.3034, allocations: 39.06 kB / 435.7 MB, free: 8.023 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.926e-06/0.3034, allocations: 3.938 kB / 435.7 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008482/0.3043, allocations: 1.682 MB / 437.4 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3043, allocations: 3.938 kB / 437.4 MB, free: 6.523 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002375/0.3045, allocations: 217.4 kB / 437.6 MB, free: 6.375 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.209e-05/0.3045, allocations: 83.53 kB / 437.7 MB, free: 6.277 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.152e-05/0.3046, allocations: 1.594 kB / 437.7 MB, free: 6.277 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.507e-05/0.3047, allocations: 10.97 kB / 437.7 MB, free: 6.277 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.116e-05/0.3047, allocations: 6.391 kB / 437.7 MB, free: 6.277 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.881e-06/0.3047, allocations: 2.469 kB / 437.7 MB, free: 6.277 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.292e-05/0.3047, allocations: 107.5 kB / 437.8 MB, free: 6.203 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3047, allocations: 5.828 kB / 437.8 MB, free: 6.199 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000344/0.3051, allocations: 41.23 kB / 437.8 MB, free: 6.195 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.0003827/0.3055, allocations: 0.7447 MB / 438.6 MB, free: 5.527 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003278/0.3058, allocations: 192.7 kB / 438.8 MB, free: 5.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3058, allocations: 1.969 kB / 438.8 MB, free: 5.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001634/0.306, allocations: 159.5 kB / 438.9 MB, free: 5.297 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000249/0.3062, allocations: 16.47 kB / 438.9 MB, free: 5.293 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001473/0.3077, allocations: 1.72 MB / 440.7 MB, free: 4.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001174/0.3078, allocations: 0.707 MB / 441.4 MB, free: 3.324 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.596e-05/0.3078, allocations: 7.375 kB / 441.4 MB, free: 3.324 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.33e-05/0.3079, allocations: 34.28 kB / 441.4 MB, free: 3.312 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3079, allocations: 0 / 441.4 MB, free: 3.312 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02313/0.331, allocations: 3.108 MB / 444.5 MB, free: 2.801 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.6, allocations: 20.33 kB / 444.5 MB, free: 2.785 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Resistor_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Resistor.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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: 14.109194622025825]