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.001549/0.001549, allocations: 96.03 kB / 21.18 MB, free: 0.5312 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.001661/0.001661, allocations: 187 kB / 24.46 MB, free: 3.863 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.511/1.511, allocations: 225.7 MB / 253.3 MB, free: 12.86 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: translateModel(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Electrical.Analog.Examples.Resistor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001644/0.001644, allocations: 47.91 kB / 371.6 MB, free: 9.219 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3158/0.3174, allocations: 52.18 MB / 423.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.00367/0.3211, allocations: 2.079 MB / 425.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009934/0.3221, allocations: 0.5144 MB / 426.4 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.484e-05/0.3222, allocations: 4 kB / 426.4 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001226/0.3223, allocations: 19.78 kB / 426.4 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.793e-05/0.3224, allocations: 39.58 kB / 426.5 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002397/0.3226, allocations: 43.89 kB / 426.5 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002048/0.3228, allocations: 155.3 kB / 426.7 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001564/0.323, allocations: 44.56 kB / 426.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001331/0.3231, allocations: 75.7 kB / 426.8 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001164/0.3232, allocations: 59.64 kB / 426.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.716e-05/0.3233, allocations: 12 kB / 426.9 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.507e-05/0.3233, allocations: 20 kB / 426.9 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.124e-05/0.3234, allocations: 19.92 kB / 426.9 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.828e-05/0.3234, allocations: 63.72 kB / 427 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002596/0.3237, allocations: 163.1 kB / 427.1 MB, free: 11.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.3237, allocations: 0 / 427.1 MB, free: 11.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3237, allocations: 0 / 427.1 MB, free: 11.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.3237, allocations: 0 / 427.1 MB, free: 11.16 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.0006599/0.3244, allocations: 373.9 kB / 427.5 MB, free: 10.77 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.3244, allocations: 8.031 kB / 427.5 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001036/0.3245, allocations: 16.84 kB / 427.5 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000269/0.3248, allocations: 154.3 kB / 427.7 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.916e-05/0.3248, allocations: 12.61 kB / 427.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.666e-05/0.3248, allocations: 4.375 kB / 427.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002838/0.3251, allocations: 150.7 kB / 427.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.3251, allocations: 0 / 427.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.672e-05/0.3251, allocations: 8 kB / 427.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.3251, allocations: 7.938 kB / 427.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001894/0.3253, allocations: 80.66 kB / 427.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008074/0.3261, allocations: 435 kB / 428.3 MB, free: 9.832 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003036/0.3264, allocations: 82.5 kB / 428.4 MB, free: 9.742 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.152e-05/0.3265, allocations: 32.97 kB / 428.5 MB, free: 9.707 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.241e-05/0.3265, allocations: 4 kB / 428.5 MB, free: 9.703 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.526e-05/0.3266, allocations: 34.56 kB / 428.5 MB, free: 9.66 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.182e-06/0.3266, allocations: 0 / 428.5 MB, free: 9.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006698/0.3272, allocations: 178.3 kB / 428.7 MB, free: 9.477 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.732e-05/0.3273, allocations: 55.34 kB / 428.7 MB, free: 9.41 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001426/0.3274, allocations: 148.3 kB / 428.9 MB, free: 9.258 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.17e-05/0.3274, allocations: 29.69 kB / 428.9 MB, free: 9.223 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.944e-05/0.3275, allocations: 124.1 kB / 429 MB, free: 9.094 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.221e-05/0.3275, allocations: 23.84 kB / 429 MB, free: 9.07 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.181e-05/0.3276, allocations: 21.66 kB / 429.1 MB, free: 9.043 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.3277, allocations: 322.8 kB / 429.4 MB, free: 8.719 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.568e-05/0.3278, allocations: 20.25 kB / 429.4 MB, free: 8.699 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.398e-05/0.3279, allocations: 54.48 kB / 429.4 MB, free: 8.637 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001453/0.328, allocations: 74.55 kB / 429.5 MB, free: 8.555 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.328, allocations: 0 / 429.5 MB, free: 8.555 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002952/0.3283, allocations: 138.3 kB / 429.7 MB, free: 8.41 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.3283, allocations: 4 kB / 429.7 MB, free: 8.406 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.3283, allocations: 0 / 429.7 MB, free: 8.406 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002026/0.3285, allocations: 44.89 kB / 429.7 MB, free: 8.359 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.651e-05/0.3286, allocations: 8 kB / 429.7 MB, free: 8.352 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001576/0.3302, allocations: 1.555 MB / 431.3 MB, free: 6.699 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.666e-05/0.3302, allocations: 8 kB / 431.3 MB, free: 6.691 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.154e-06/0.3302, allocations: 4 kB / 431.3 MB, free: 6.688 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.0001154/0.3304, allocations: 125.8 kB / 431.4 MB, free: 6.555 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.173e-05/0.3304, allocations: 7.953 kB / 431.4 MB, free: 6.547 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.331e-05/0.3304, allocations: 16.59 kB / 431.4 MB, free: 6.535 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.3304, allocations: 4 kB / 431.4 MB, free: 6.531 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.32e-07/0.3304, allocations: 128 / 431.4 MB, free: 6.531 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.3304, allocations: 4 kB / 431.4 MB, free: 6.527 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001814/0.3306, allocations: 145.2 kB / 431.6 MB, free: 6.355 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.3306, allocations: 0 / 431.6 MB, free: 6.355 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.731e-05/0.3306, allocations: 8 kB / 431.6 MB, free: 6.348 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001209/0.3308, allocations: 36.83 kB / 431.6 MB, free: 6.309 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.516e-06/0.3308, allocations: 0 / 431.6 MB, free: 6.309 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001359/0.3321, allocations: 1.548 MB / 433.2 MB, free: 4.652 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3321, allocations: 0 / 433.2 MB, free: 4.652 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003204/0.3325, allocations: 232.3 kB / 433.4 MB, free: 4.406 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.744e-05/0.3325, allocations: 8.016 kB / 433.4 MB, free: 4.398 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.827e-05/0.3325, allocations: 7.938 kB / 433.4 MB, free: 4.391 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001006/0.3326, allocations: 7.984 kB / 433.4 MB, free: 4.383 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.761e-05/0.3326, allocations: 8 kB / 433.4 MB, free: 4.375 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.404e-06/0.3326, allocations: 3.984 kB / 433.4 MB, free: 4.371 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.587e-05/0.3327, allocations: 107.3 kB / 433.5 MB, free: 4.266 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3327, allocations: 0 / 433.5 MB, free: 4.266 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003702/0.3331, allocations: 39.95 kB / 433.6 MB, free: 4.227 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.0001026/0.3332, allocations: 99.19 kB / 433.7 MB, free: 4.121 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004045/0.3336, allocations: 190.6 kB / 433.9 MB, free: 3.922 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3336, allocations: 0 / 433.9 MB, free: 3.922 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000213/0.3338, allocations: 154.6 kB / 434 MB, free: 3.758 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002656/0.3341, allocations: 16.12 kB / 434 MB, free: 3.742 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005858/0.3347, allocations: 326.3 kB / 434.3 MB, free: 3.391 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.447e-05/0.3348, allocations: 90.28 kB / 434.4 MB, free: 3.277 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.075e-05/0.3348, allocations: 15.44 kB / 434.4 MB, free: 3.262 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3348, allocations: 0 / 434.4 MB, free: 3.262 MB / 334.1 MB Notification: Performance of Templates: time 0.003926/0.3387, allocations: 1.957 MB / 436.4 MB, free: 1.305 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.182384024839848]