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.002081/0.002081, allocations: 88.31 kB / 20.96 MB, free: 3.477 MB / 18.57 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.002638/0.002638, allocations: 161.6 kB / 24.27 MB, free: 172 kB / 18.57 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.459/1.459, allocations: 177.1 MB / 204.6 MB, free: 5.586 MB / 186.7 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: translateModel(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor") translateModel(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 272.3 MB, free: 1.805 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.614e-05/2.76e-05, allocations: 2.312 kB / 272.3 MB, free: 1.801 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003923/0.00395, allocations: 2.093 MB / 274.4 MB, free: 15.7 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001293/0.005244, allocations: 0.5881 MB / 275 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001298/0.005373, allocations: 8 kB / 275 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001494/0.005523, allocations: 23.72 kB / 275 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000116/0.005639, allocations: 39.58 kB / 275.1 MB, free: 15.03 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002677/0.005907, allocations: 59.86 kB / 275.1 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002688/0.006175, allocations: 167.1 kB / 275.3 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001444/0.00632, allocations: 37.66 kB / 275.3 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002418/0.006562, allocations: 91.78 kB / 275.4 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001139/0.006675, allocations: 51.81 kB / 275.5 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.491e-05/0.00671, allocations: 20 kB / 275.5 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.502e-05/0.006795, allocations: 23.94 kB / 275.5 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.673e-05/0.006832, allocations: 31.84 kB / 275.6 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.807e-05/0.00691, allocations: 51.84 kB / 275.6 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000299/0.007209, allocations: 167.5 kB / 275.8 MB, free: 14.34 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.435e-06/0.007212, allocations: 0 / 275.8 MB, free: 14.34 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.007212, allocations: 0 / 275.8 MB, free: 14.34 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.06e-06/0.007218, allocations: 0 / 275.8 MB, free: 14.34 MB / 266.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.000724/0.007942, allocations: 365.9 kB / 276.1 MB, free: 13.95 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.00798, allocations: 12.03 kB / 276.1 MB, free: 13.94 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002459/0.008226, allocations: 40.77 kB / 276.2 MB, free: 13.9 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003122/0.008538, allocations: 161.5 kB / 276.3 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.812e-05/0.008556, allocations: 8.609 kB / 276.3 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.603e-05/0.008582, allocations: 12.38 kB / 276.4 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003348/0.008917, allocations: 141.8 kB / 276.5 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.008929, allocations: 192 / 276.5 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.983e-05/0.008949, allocations: 4.375 kB / 276.5 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.008959, allocations: 7.938 kB / 276.5 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002217/0.009181, allocations: 80.66 kB / 276.6 MB, free: 13.46 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008952/0.01008, allocations: 443.4 kB / 277 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003226/0.0104, allocations: 78.62 kB / 277.1 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.328e-05/0.01049, allocations: 32.97 kB / 277.1 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.447e-05/0.01051, allocations: 0 / 277.1 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.281e-05/0.01054, allocations: 38.5 kB / 277.2 MB, free: 12.81 MB / 266.7 MB Notification: Performance of pre-optimization done (n=6): time 7.21e-07/0.01054, allocations: 0 / 277.2 MB, free: 12.81 MB / 266.7 MB Notification: Performance of matching and sorting (n=6): time 0.0007688/0.01131, allocations: 174.3 kB / 277.3 MB, free: 12.63 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.603e-05/0.01135, allocations: 59.34 kB / 277.4 MB, free: 12.56 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000175/0.01153, allocations: 165 kB / 277.6 MB, free: 12.39 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.331e-05/0.01155, allocations: 25.7 kB / 277.6 MB, free: 12.36 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001093/0.01166, allocations: 124.2 kB / 277.7 MB, free: 12.24 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.08e-05/0.01168, allocations: 15.84 kB / 277.7 MB, free: 12.22 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.814e-05/0.01174, allocations: 29.66 kB / 277.7 MB, free: 12.19 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.00019/0.01193, allocations: 322.8 kB / 278.1 MB, free: 11.86 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.448e-05/0.01201, allocations: 20 kB / 278.1 MB, free: 11.84 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.025e-05/0.0121, allocations: 42.55 kB / 278.1 MB, free: 11.79 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001663/0.01226, allocations: 78.73 kB / 278.2 MB, free: 11.71 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.01226, allocations: 0 / 278.2 MB, free: 11.71 MB / 266.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000343/0.01261, allocations: 138.3 kB / 278.3 MB, free: 11.56 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.01262, allocations: 4 kB / 278.3 MB, free: 11.56 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.595e-06/0.01263, allocations: 4 kB / 278.3 MB, free: 11.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002487/0.01288, allocations: 44.83 kB / 278.4 MB, free: 11.51 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.822e-05/0.01294, allocations: 8 kB / 278.4 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001974/0.01491, allocations: 1.555 MB / 279.9 MB, free: 9.848 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.008e-05/0.01499, allocations: 16.02 kB / 280 MB, free: 9.832 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.247e-05/0.015, allocations: 4 kB / 280 MB, free: 9.828 MB / 266.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 0.000121/0.01513, allocations: 121.8 kB / 280.1 MB, free: 9.699 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.136e-05/0.01517, allocations: 11.95 kB / 280.1 MB, free: 9.688 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.529e-05/0.01519, allocations: 12.72 kB / 280.1 MB, free: 9.676 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.0152, allocations: 3.938 kB / 280.1 MB, free: 9.672 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-06/0.0152, allocations: 4.125 kB / 280.1 MB, free: 9.668 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.01521, allocations: 4 kB / 280.1 MB, free: 9.664 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002166/0.01542, allocations: 141.3 kB / 280.3 MB, free: 9.496 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.01542, allocations: 0 / 280.3 MB, free: 9.496 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.014e-05/0.01546, allocations: 8 kB / 280.3 MB, free: 9.488 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001565/0.01562, allocations: 40.77 kB / 280.3 MB, free: 9.445 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.511e-05/0.01564, allocations: 4 kB / 280.3 MB, free: 9.441 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00171/0.01735, allocations: 1.559 MB / 281.9 MB, free: 7.777 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.01736, allocations: 4.062 kB / 281.9 MB, free: 7.773 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003931/0.01775, allocations: 220.4 kB / 282.1 MB, free: 7.539 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.857e-05/0.01777, allocations: 3.953 kB / 282.1 MB, free: 7.535 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.175e-05/0.01779, allocations: 7.938 kB / 282.1 MB, free: 7.527 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000107/0.0179, allocations: 7.984 kB / 282.1 MB, free: 7.52 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.557e-05/0.01794, allocations: 7.984 kB / 282.1 MB, free: 7.512 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.837e-06/0.01795, allocations: 4 kB / 282.1 MB, free: 7.508 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001016/0.01805, allocations: 103.3 kB / 282.2 MB, free: 7.406 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01805, allocations: 4 kB / 282.2 MB, free: 7.402 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003853/0.01844, allocations: 43.89 kB / 282.3 MB, free: 7.359 MB / 266.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.0001396/0.01858, allocations: 99.23 kB / 282.4 MB, free: 7.25 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004367/0.01901, allocations: 189.3 kB / 282.6 MB, free: 7.055 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.01902, allocations: 0 / 282.6 MB, free: 7.055 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002513/0.01927, allocations: 158.7 kB / 282.7 MB, free: 6.887 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002761/0.01954, allocations: 13.34 kB / 282.7 MB, free: 6.875 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006169/0.02016, allocations: 276.7 kB / 283 MB, free: 6.578 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001157/0.02028, allocations: 98.27 kB / 283.1 MB, free: 6.461 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.338e-05/0.02032, allocations: 4.5 kB / 283.1 MB, free: 6.453 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.103e-05/0.02035, allocations: 12.5 kB / 283.1 MB, free: 6.441 MB / 266.7 MB Notification: Performance of SimCode: time 4.8e-07/0.02035, allocations: 0 / 283.1 MB, free: 6.441 MB / 266.7 MB Notification: Performance of Templates: time 0.005079/0.02543, allocations: 1.482 MB / 284.6 MB, free: 4.977 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/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_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: 4.291080662980676]