Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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.001302/0.001302, allocations: 112.2 kB / 21.19 MB, free: 0.7578 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.00141/0.00141, allocations: 209.8 kB / 24.5 MB, free: 4.133 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.385/1.385, allocations: 230.6 MB / 258.3 MB, free: 8.039 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: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00161/0.00161, allocations: 55.92 kB / 379.1 MB, free: 2.621 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2327/0.2344, allocations: 53.35 MB / 432.4 MB, free: 6.938 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.03643/0.2708, allocations: 31.18 MB / 463.6 MB, free: 7.621 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01902/0.2898, allocations: 8.931 MB / 472.5 MB, free: 14.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006182/0.296, allocations: 226.9 kB / 472.7 MB, free: 14.44 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01328/0.3093, allocations: 5.024 MB / 477.8 MB, free: 9.406 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01065/0.3199, allocations: 3.126 MB / 480.9 MB, free: 6.27 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005409/0.3253, allocations: 1.656 MB / 482.6 MB, free: 4.617 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01318/0.3385, allocations: 8.878 MB / 491.4 MB, free: 11.72 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01599/0.3545, allocations: 9.226 MB / 0.4889 GB, free: 2.391 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00694/0.3614, allocations: 4.355 MB / 0.4932 GB, free: 14.02 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008009/0.3694, allocations: 4.893 MB / 0.498 GB, free: 9.113 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002919/0.3724, allocations: 1.164 MB / 0.4991 GB, free: 7.949 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00449/0.3769, allocations: 1.562 MB / 0.5006 GB, free: 6.387 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003484/0.3803, allocations: 2.419 MB / 0.503 GB, free: 3.961 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008029/0.3884, allocations: 4.677 MB / 0.5075 GB, free: 15.26 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0205/0.4089, allocations: 15.88 MB / 0.5231 GB, free: 15.34 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.585e-06/0.4089, allocations: 3.984 kB / 0.5231 GB, free: 15.33 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4089, allocations: 0 / 0.5231 GB, free: 15.33 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003737/0.4092, allocations: 0 / 0.5231 GB, free: 15.33 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.02942/0.4387, allocations: 9.888 MB / 0.5327 GB, free: 5.355 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.4387, allocations: 12.03 kB / 0.5327 GB, free: 5.344 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02922/0.4679, allocations: 5.228 MB / 0.5378 GB, free: 108 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2241/0.692, allocations: 5.14 MB / 0.5429 GB, free: 89.26 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004136/0.6924, allocations: 0.5302 MB / 0.5434 GB, free: 89.02 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002636/0.6951, allocations: 0.7128 MB / 0.5441 GB, free: 88.79 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02336/0.7184, allocations: 11.35 MB / 0.5552 GB, free: 84.2 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002469/0.7187, allocations: 23.38 kB / 0.5552 GB, free: 84.19 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001388/0.7201, allocations: 298.9 kB / 0.5555 GB, free: 83.97 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004095/0.7205, allocations: 444.4 kB / 0.5559 GB, free: 83.92 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01905/0.7395, allocations: 10.87 MB / 0.5665 GB, free: 75.64 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05338/0.7929, allocations: 36.69 MB / 0.6023 GB, free: 38.7 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01034/0.8032, allocations: 7.518 MB / 0.6097 GB, free: 32.36 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003289/0.8065, allocations: 2.433 MB / 0.612 GB, free: 29.93 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01131/0.8178, allocations: 7.587 MB / 0.6195 GB, free: 22.51 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.735e-05/0.8179, allocations: 60.5 kB / 0.6195 GB, free: 22.44 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 3.707e-06/0.8179, allocations: 0 / 0.6195 GB, free: 22.44 MB / 446.1 MB Notification: Performance of matching and sorting (n=233): time 0.01625/0.8341, allocations: 10.33 MB / 0.6296 GB, free: 12.17 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001458/0.8356, allocations: 1.9 MB / 0.6315 GB, free: 10.13 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00436/0.8399, allocations: 3.843 MB / 0.6352 GB, free: 6.258 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003787/0.8403, allocations: 65.7 kB / 0.6353 GB, free: 6.188 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001506/0.8418, allocations: 3.686 MB / 0.6389 GB, free: 2.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007241/0.8425, allocations: 0.8748 MB / 0.6397 GB, free: 1.637 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001041/0.8436, allocations: 0.9614 MB / 0.6407 GB, free: 0.6641 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.958e-05/0.8436, allocations: 305.1 kB / 0.641 GB, free: 372 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002773/0.8464, allocations: 1.896 MB / 0.6428 GB, free: 14.46 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004845/0.8512, allocations: 4.4 MB / 0.6471 GB, free: 8.828 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008752/0.86, allocations: 6.796 MB / 0.6537 GB, free: 0.8242 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.267e-05/0.8601, allocations: 24 kB / 0.6538 GB, free: 0.8008 MB / 462.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01321/0.8733, allocations: 7.001 MB / 0.6606 GB, free: 9.781 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.752e-05/0.8734, allocations: 44 kB / 0.6606 GB, free: 9.738 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001411/0.8735, allocations: 87.94 kB / 0.6607 GB, free: 9.652 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002113/0.8756, allocations: 0.7414 MB / 0.6614 GB, free: 8.902 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003944/0.8796, allocations: 1.123 MB / 0.6625 GB, free: 7.777 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00807/0.8876, allocations: 5.541 MB / 0.668 GB, free: 2.117 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004122/0.8917, allocations: 311.4 kB / 0.6683 GB, free: 1.812 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009506/0.8927, allocations: 283.8 kB / 0.6685 GB, free: 1.535 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 393 * 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 (590): * Single equations (assignments): 587 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00515/0.8978, allocations: 2.522 MB / 0.671 GB, free: 15 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001206/0.8991, allocations: 409.4 kB / 0.6714 GB, free: 14.6 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008578/0.9076, allocations: 4.248 MB / 0.6755 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.452e-05/0.9077, allocations: 24 kB / 0.6755 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.057e-05/0.9077, allocations: 8 kB / 0.6756 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.722e-05/0.9077, allocations: 15.89 kB / 0.6756 GB, free: 10.27 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02742/0.9351, allocations: 14.02 MB / 0.6893 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.599e-05/0.9352, allocations: 8 kB / 0.6893 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001937/0.9371, allocations: 479.3 kB / 0.6897 GB, free: 11.56 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002099/0.9392, allocations: 0.6935 MB / 0.6904 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002999/0.9395, allocations: 71.97 kB / 0.6905 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009914/0.9494, allocations: 7.297 MB / 0.6976 GB, free: 3.25 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001896/0.9513, allocations: 1.853 MB / 0.6994 GB, free: 1.273 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01167/0.963, allocations: 6.754 MB / 0.706 GB, free: 10.24 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002479/0.9655, allocations: 0.7587 MB / 0.7067 GB, free: 9.477 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001023/0.9665, allocations: 67.92 kB / 0.7068 GB, free: 9.41 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002353/0.9688, allocations: 159.8 kB / 0.707 GB, free: 9.254 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004983/0.9693, allocations: 233.4 kB / 0.7072 GB, free: 9.023 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002467/0.9696, allocations: 95.97 kB / 0.7073 GB, free: 8.93 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.005209/0.9748, allocations: 2.518 MB / 0.7097 GB, free: 6.398 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9748, allocations: 0 / 0.7097 GB, free: 6.398 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005794/0.9806, allocations: 1.293 MB / 0.711 GB, free: 5.105 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 1 ($STATESET1.x) * 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 (241): * Single equations (assignments): 238 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007245/0.9813, allocations: 231.1 kB / 0.7112 GB, free: 4.871 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00916/0.9905, allocations: 4.826 MB / 0.7159 GB, free: 28 kB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.354e-05/0.9905, allocations: 5.625 kB / 0.7159 GB, free: 24 kB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.00427/0.9947, allocations: 2.181 MB / 0.7181 GB, free: 13.82 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005897/1.001, allocations: 1.01 MB / 0.719 GB, free: 12.84 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02574/1.026, allocations: 12.48 MB / 0.7312 GB, free: 144 kB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006723/1.033, allocations: 4.386 MB / 0.7355 GB, free: 11.71 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001394/1.034, allocations: 351.4 kB / 0.7359 GB, free: 11.37 MB / 0.545 GB Notification: Performance of SimCode: time 9.61e-07/1.034, allocations: 0 / 0.7359 GB, free: 11.37 MB / 0.545 GB Notification: Performance of Templates: time 0.3625/1.397, allocations: 203.3 MB / 0.9344 GB, free: 8.371 MB / 0.545 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_OpenCircuit/SMPM_OpenCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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: 16.073900230927393]