Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001371/0.001371, allocations: 116.2 kB / 18.5 MB, free: 4.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001461/0.001461, allocations: 201 kB / 21.45 MB, free: 1.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.452/1.452, allocations: 230.4 MB / 254.7 MB, free: 15 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor") translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002077/0.002077, allocations: 67.89 kB / 374.1 MB, free: 9.719 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1084, allocations: 53.3 MB / 427.4 MB, free: 4.324 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004356/0.1127, allocations: 3.039 MB / 430.4 MB, free: 1.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001312/0.114, allocations: 0.7556 MB / 431.2 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001253/0.1142, allocations: 8 kB / 431.2 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001717/0.1143, allocations: 55.44 kB / 431.2 MB, free: 456 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001784/0.1145, allocations: 107 kB / 431.3 MB, free: 348 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003156/0.1148, allocations: 103.8 kB / 431.4 MB, free: 244 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2551/0.3699, allocations: 400.9 kB / 431.8 MB, free: 8.184 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003045/0.3702, allocations: 79.12 kB / 431.9 MB, free: 8.172 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004214/0.3706, allocations: 157.3 kB / 432.1 MB, free: 8.168 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001949/0.3708, allocations: 166.2 kB / 432.2 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.232e-05/0.3709, allocations: 31.97 kB / 432.3 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000102/0.371, allocations: 37.12 kB / 432.3 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.892e-05/0.371, allocations: 74.19 kB / 432.4 MB, free: 8.121 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001421/0.3712, allocations: 176.4 kB / 432.5 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004186/0.3716, allocations: 402.2 kB / 432.9 MB, free: 8.008 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.3716, allocations: 0 / 432.9 MB, free: 8.008 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3716, allocations: 0 / 432.9 MB, free: 8.008 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.3716, allocations: 0.5625 kB / 432.9 MB, free: 8.008 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0008957/0.3725, allocations: 0.6406 MB / 433.6 MB, free: 7.547 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.3725, allocations: 10.19 kB / 433.6 MB, free: 7.547 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001823/0.3727, allocations: 47.25 kB / 433.6 MB, free: 7.527 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003239/0.373, allocations: 286.8 kB / 433.9 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.002e-05/0.3731, allocations: 21.25 kB / 433.9 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.041e-05/0.3731, allocations: 27.16 kB / 434 MB, free: 7.297 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004542/0.3735, allocations: 262 kB / 434.2 MB, free: 7.254 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/0.3736, allocations: 3.938 kB / 434.2 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.705e-05/0.3736, allocations: 12.47 kB / 434.2 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.134e-06/0.3736, allocations: 8.094 kB / 434.2 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004594/0.3741, allocations: 214.4 kB / 434.4 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001489/0.3755, allocations: 0.9736 MB / 435.4 MB, free: 6.828 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004902/0.376, allocations: 278.9 kB / 435.7 MB, free: 6.711 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002189/0.3763, allocations: 95.56 kB / 435.8 MB, free: 6.703 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.278e-05/0.3763, allocations: 1.594 kB / 435.8 MB, free: 6.703 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.055e-05/0.3763, allocations: 41.95 kB / 435.8 MB, free: 6.664 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.763e-06/0.3763, allocations: 1.312 kB / 435.8 MB, free: 6.664 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001267/0.3776, allocations: 0.5526 MB / 436.4 MB, free: 6.402 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.201e-05/0.3776, allocations: 57.44 kB / 436.4 MB, free: 6.336 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002365/0.3778, allocations: 265.1 kB / 436.7 MB, free: 6.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.739e-05/0.3778, allocations: 30.08 kB / 436.7 MB, free: 6.199 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.756e-05/0.3779, allocations: 184.5 kB / 436.9 MB, free: 6.074 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.281e-05/0.378, allocations: 72.48 kB / 437 MB, free: 6.027 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.747e-05/0.378, allocations: 47.2 kB / 437 MB, free: 6.004 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.225e-05/0.3781, allocations: 336.3 kB / 437.4 MB, free: 5.691 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000196/0.3783, allocations: 77.69 kB / 437.4 MB, free: 5.691 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002067/0.3785, allocations: 113.7 kB / 437.5 MB, free: 5.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003744/0.3789, allocations: 180 kB / 437.7 MB, free: 5.637 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3789, allocations: 0 / 437.7 MB, free: 5.637 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006195/0.3795, allocations: 328.5 kB / 438 MB, free: 5.559 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.3795, allocations: 6.141 kB / 438 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.3795, allocations: 1.25 kB / 438 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002752/0.3798, allocations: 77.7 kB / 438.1 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001954/0.38, allocations: 37.86 kB / 438.2 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001732/0.3817, allocations: 3.053 MB / 441.2 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000222/0.382, allocations: 28.55 kB / 441.2 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.843e-05/0.382, allocations: 9.531 kB / 441.2 MB, free: 2.688 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 (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001233/0.3821, allocations: 134.7 kB / 441.4 MB, free: 2.559 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.419e-05/0.3822, allocations: 37.66 kB / 441.4 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.538e-05/0.3822, allocations: 33.17 kB / 441.4 MB, free: 2.508 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.3822, allocations: 6.406 kB / 441.5 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.345e-06/0.3822, allocations: 1.75 kB / 441.5 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.3822, allocations: 2.297 kB / 441.5 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009588/0.3832, allocations: 0.6896 MB / 442.1 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.3832, allocations: 0 / 442.1 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001369/0.3833, allocations: 27.36 kB / 442.2 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001873/0.3835, allocations: 73.84 kB / 442.2 MB, free: 2.008 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.328e-05/0.3835, allocations: 1.953 kB / 442.2 MB, free: 2.008 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001998/0.3855, allocations: 3.046 MB / 445.3 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3855, allocations: 0 / 445.3 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006804/0.3862, allocations: 382.2 kB / 445.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.822e-05/0.3863, allocations: 106.3 kB / 445.8 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.276e-05/0.3863, allocations: 5.656 kB / 445.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002679/0.3866, allocations: 31.19 kB / 445.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.397e-05/0.3867, allocations: 22.38 kB / 445.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.686e-05/0.3867, allocations: 5.672 kB / 445.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002125/0.3869, allocations: 192.4 kB / 446 MB, free: 14.58 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3869, allocations: 0 / 446 MB, free: 14.58 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004113/0.3873, allocations: 93.98 kB / 446.1 MB, free: 14.56 MB / 366.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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001346/0.3874, allocations: 104.1 kB / 446.2 MB, free: 14.47 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008182/0.3883, allocations: 434 kB / 446.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.3883, allocations: 1.156 kB / 446.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004585/0.3887, allocations: 344.7 kB / 447 MB, free: 13.92 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004057/0.3891, allocations: 54.12 kB / 447 MB, free: 13.9 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001009/0.3901, allocations: 0.5066 MB / 447.5 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003876/0.3905, allocations: 0.7643 MB / 448.3 MB, free: 12.89 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001188/0.3906, allocations: 28.94 kB / 448.3 MB, free: 12.87 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.851e-05/0.3907, allocations: 19.23 kB / 448.3 MB, free: 12.87 MB / 366.1 MB Notification: Performance of SimCode: time 3e-07/0.3907, allocations: 1.062 kB / 448.3 MB, free: 12.87 MB / 366.1 MB Notification: Performance of Templates: time 0.008581/0.3993, allocations: 3.792 MB / 452.1 MB, free: 12.63 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.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.68203307595104]