Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.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.001304/0.001304, allocations: 112.8 kB / 19.17 MB, free: 3.871 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.001373/0.001373, allocations: 210.5 kB / 22.13 MB, free: 0.918 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.446/1.446, allocations: 230.4 MB / 255.4 MB, free: 15.01 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.Batteries.Examples.ShowImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance") translateModel(Modelica.Electrical.Batteries.Examples.ShowImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance") [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.001911/0.001911, allocations: 67.83 kB / 374.7 MB, free: 9.773 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.1238, allocations: 53.31 MB / 428 MB, free: 4.367 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003542/0.1273, allocations: 1.929 MB / 430 MB, free: 2.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002018/0.1294, allocations: 1.25 MB / 431.2 MB, free: 1.172 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.524e-05/0.1295, allocations: 7.938 kB / 431.2 MB, free: 1.164 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001104/0.1306, allocations: 0.5024 MB / 431.7 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002494/0.1308, allocations: 195.4 kB / 431.9 MB, free: 480 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004632/0.1313, allocations: 167.4 kB / 432.1 MB, free: 312 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003815/0.1316, allocations: 223.1 kB / 432.3 MB, free: 88 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.944e-05/0.1317, allocations: 17.69 kB / 432.3 MB, free: 68 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2499/0.3817, allocations: 120.6 kB / 432.4 MB, free: 8.348 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004392/0.3821, allocations: 232.4 kB / 432.7 MB, free: 8.348 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.74e-05/0.3821, allocations: 6.875 kB / 432.7 MB, free: 8.348 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002187/0.3824, allocations: 64.48 kB / 432.7 MB, free: 8.348 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002555/0.3826, allocations: 264.5 kB / 433 MB, free: 8.312 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002224/0.3828, allocations: 277.6 kB / 433.3 MB, free: 8.188 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008307/0.3837, allocations: 0.7755 MB / 434 MB, free: 8.039 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.3837, allocations: 0.9688 kB / 434 MB, free: 8.039 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3837, allocations: 0 / 434 MB, free: 8.039 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.033e-05/0.3837, allocations: 4.938 kB / 434 MB, free: 8.039 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.002377/0.3861, allocations: 1.208 MB / 435.3 MB, free: 7.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.3861, allocations: 8.938 kB / 435.3 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001925/0.3863, allocations: 96.31 kB / 435.4 MB, free: 7.219 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009955/0.3873, allocations: 0.751 MB / 436.1 MB, free: 6.859 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.325e-05/0.3873, allocations: 8.844 kB / 436.1 MB, free: 6.859 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.27e-05/0.3873, allocations: 384 / 436.1 MB, free: 6.859 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002856/0.3876, allocations: 116.6 kB / 436.2 MB, free: 6.828 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.3876, allocations: 5.312 kB / 436.2 MB, free: 6.824 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.735e-05/0.3876, allocations: 0 / 436.2 MB, free: 6.824 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.3876, allocations: 1.656 kB / 436.2 MB, free: 6.824 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003822/0.388, allocations: 146.6 kB / 436.4 MB, free: 6.824 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001234/0.3893, allocations: 0.8047 MB / 437.2 MB, free: 6.562 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002288/0.3895, allocations: 94.48 kB / 437.3 MB, free: 6.535 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001905/0.3897, allocations: 73.27 kB / 437.3 MB, free: 6.527 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.059e-05/0.3897, allocations: 2 kB / 437.3 MB, free: 6.527 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.696e-05/0.3897, allocations: 30.56 kB / 437.4 MB, free: 6.488 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.272e-06/0.3897, allocations: 0 / 437.4 MB, free: 6.488 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008791/0.3906, allocations: 334.6 kB / 437.7 MB, free: 6.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.796e-05/0.3906, allocations: 52.44 kB / 437.8 MB, free: 6.348 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001982/0.3926, allocations: 1.407 MB / 439.2 MB, free: 6.203 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.3926, allocations: 26.8 kB / 439.2 MB, free: 6.172 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003182/0.3929, allocations: 389.7 kB / 439.6 MB, free: 6.074 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.778e-05/0.393, allocations: 10.59 kB / 439.6 MB, free: 6.066 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.666e-05/0.393, allocations: 21 kB / 439.6 MB, free: 6.047 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.485e-05/0.3931, allocations: 310.8 kB / 439.9 MB, free: 5.742 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001799/0.3933, allocations: 66.77 kB / 440 MB, free: 5.723 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001835/0.3935, allocations: 86.38 kB / 440.1 MB, free: 5.676 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003492/0.3938, allocations: 159.7 kB / 440.2 MB, free: 5.605 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.3938, allocations: 7.156 kB / 440.2 MB, free: 5.602 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005791/0.3944, allocations: 266.8 kB / 440.5 MB, free: 5.477 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.3944, allocations: 6.562 kB / 440.5 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.3944, allocations: 1.094 kB / 440.5 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.3944, allocations: 1.812 kB / 440.5 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001821/0.3946, allocations: 15.39 kB / 440.5 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.02e-06/0.3946, allocations: 0.625 kB / 440.5 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002024/0.3948, allocations: 17.58 kB / 440.5 MB, free: 5.469 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.724e-05/0.3948, allocations: 3.328 kB / 440.5 MB, free: 5.469 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 (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003447/0.3952, allocations: 344.9 kB / 440.9 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001988/0.3954, allocations: 90.27 kB / 440.9 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006812/0.3961, allocations: 281.3 kB / 441.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.575e-06/0.3961, allocations: 1.984 kB / 441.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.311e-06/0.3961, allocations: 1.188 kB / 441.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.3961, allocations: 0 / 441.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007542/0.3968, allocations: 0.5087 MB / 441.7 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.3968, allocations: 0.75 kB / 441.7 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.853e-05/0.3969, allocations: 11.12 kB / 441.7 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.63e-06/0.3969, allocations: 1.328 kB / 441.7 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.474e-05/0.3969, allocations: 9.234 kB / 441.8 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.3969, allocations: 0.5312 kB / 441.8 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.397, allocations: 2 kB / 441.8 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005577/0.3975, allocations: 323.1 kB / 442.1 MB, free: 4.609 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002893/0.3978, allocations: 231.4 kB / 442.3 MB, free: 4.445 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.618e-05/0.3979, allocations: 1.219 kB / 442.3 MB, free: 4.445 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001872/0.3981, allocations: 11.48 kB / 442.3 MB, free: 4.441 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.062e-05/0.3981, allocations: 4.078 kB / 442.3 MB, free: 4.441 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.042e-05/0.3981, allocations: 1.938 kB / 442.3 MB, free: 4.441 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001277/0.3994, allocations: 1.015 MB / 443.3 MB, free: 4.105 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3994, allocations: 0 / 443.3 MB, free: 4.105 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003652/0.3998, allocations: 68.75 kB / 443.4 MB, free: 4.098 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 (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001887/0.3999, allocations: 115.5 kB / 443.5 MB, free: 4 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004058/0.4003, allocations: 125 kB / 443.6 MB, free: 3.961 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.4004, allocations: 0.9688 kB / 443.6 MB, free: 3.961 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000167/0.4005, allocations: 56.02 kB / 443.7 MB, free: 3.945 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005941/0.4011, allocations: 109.3 kB / 443.8 MB, free: 3.895 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001951/0.4031, allocations: 1.433 MB / 445.2 MB, free: 3.238 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00056/0.4036, allocations: 0.9979 MB / 446.2 MB, free: 2.488 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001436/0.4038, allocations: 41.67 kB / 446.3 MB, free: 2.477 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4038, allocations: 0 / 446.3 MB, free: 2.477 MB / 350.1 MB Notification: Performance of Templates: time 0.01691/0.4207, allocations: 9.181 MB / 455.4 MB, free: 15.57 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.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.99070553900674]