Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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.001477/0.001477, allocations: 107.6 kB / 21.19 MB, free: 0.6484 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.001861/0.001861, allocations: 211.5 kB / 24.48 MB, free: 3.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.605/1.605, allocations: 230.5 MB / 258.1 MB, free: 7.762 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00223/0.00223, allocations: 67.89 kB / 379 MB, free: 2.293 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2928/0.295, allocations: 53.4 MB / 432.4 MB, free: 6.539 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.03672/0.3318, allocations: 26.62 MB / 459 MB, free: 11.8 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02145/0.3532, allocations: 8.553 MB / 467.6 MB, free: 3.223 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006959/0.3602, allocations: 226.9 kB / 467.8 MB, free: 3 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01384/0.374, allocations: 4.652 MB / 472.5 MB, free: 14.34 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0118/0.3858, allocations: 3.054 MB / 475.5 MB, free: 11.27 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005642/0.3915, allocations: 1.589 MB / 477.1 MB, free: 9.684 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01466/0.4061, allocations: 8.863 MB / 486 MB, free: 0.7969 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01727/0.4234, allocations: 9.086 MB / 495.1 MB, free: 7.613 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009446/0.4328, allocations: 4.343 MB / 499.4 MB, free: 3.258 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01008/0.4429, allocations: 4.624 MB / 0.4922 GB, free: 14.62 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004123/0.447, allocations: 1.16 MB / 0.4934 GB, free: 13.46 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00617/0.4532, allocations: 1.519 MB / 0.4948 GB, free: 11.94 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005169/0.4584, allocations: 2.419 MB / 0.4972 GB, free: 9.512 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01061/0.469, allocations: 3.657 MB / 0.5008 GB, free: 5.84 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02769/0.4967, allocations: 15.94 MB / 0.5163 GB, free: 5.852 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.085e-06/0.4967, allocations: 0 / 0.5163 GB, free: 5.852 MB / 430.1 MB Notification: Performance of FrontEnd: time 4.748e-06/0.4967, allocations: 3.984 kB / 0.5163 GB, free: 5.848 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005298/0.4972, allocations: 0 / 0.5163 GB, free: 5.848 MB / 430.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.03579/0.533, allocations: 9.88 MB / 0.526 GB, free: 11.88 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.615e-05/0.5331, allocations: 8.031 kB / 0.526 GB, free: 11.87 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03097/0.564, allocations: 5.228 MB / 0.5311 GB, free: 6.633 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01642/0.5805, allocations: 5.109 MB / 0.5361 GB, free: 1.434 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008142/0.5813, allocations: 0.5299 MB / 0.5366 GB, free: 0.9023 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003596/0.5849, allocations: 0.7147 MB / 0.5373 GB, free: 192 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3081/0.893, allocations: 11.57 MB / 0.5486 GB, free: 90.74 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002838/0.8933, allocations: 18.64 kB / 0.5486 GB, free: 90.74 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001614/0.8949, allocations: 300.4 kB / 0.5489 GB, free: 90.52 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004997/0.8954, allocations: 445.2 kB / 0.5493 GB, free: 90.47 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02135/0.9168, allocations: 10.82 MB / 0.5599 GB, free: 82.62 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05838/0.9751, allocations: 32.69 MB / 0.5918 GB, free: 49.68 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01231/0.9875, allocations: 7.434 MB / 0.5991 GB, free: 43.45 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00373/0.9912, allocations: 2.444 MB / 0.6015 GB, free: 41 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01308/1.004, allocations: 6.9 MB / 0.6082 GB, free: 34.14 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.381e-05/1.004, allocations: 56.55 kB / 0.6083 GB, free: 34.08 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 5.31e-06/1.004, allocations: 0 / 0.6083 GB, free: 34.08 MB / 446.1 MB Notification: Performance of matching and sorting (n=233): time 0.01864/1.023, allocations: 10.29 MB / 0.6183 GB, free: 23.83 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001553/1.025, allocations: 1.861 MB / 0.6201 GB, free: 21.84 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005798/1.03, allocations: 3.639 MB / 0.6237 GB, free: 18.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001979/1.031, allocations: 61.7 kB / 0.6237 GB, free: 18.14 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001691/1.032, allocations: 3.697 MB / 0.6274 GB, free: 14.43 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000576/1.033, allocations: 0.8749 MB / 0.6282 GB, free: 13.57 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001317/1.034, allocations: 0.9614 MB / 0.6291 GB, free: 12.6 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.573e-05/1.034, allocations: 301.1 kB / 0.6294 GB, free: 12.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002542/1.037, allocations: 1.899 MB / 0.6313 GB, free: 10.39 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003919/1.041, allocations: 4.446 MB / 0.6356 GB, free: 4.703 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007719/1.048, allocations: 6.804 MB / 0.6423 GB, free: 12.69 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001105/1.048, allocations: 24.44 kB / 0.6423 GB, free: 12.66 MB / 462.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.0138/1.062, allocations: 6.966 MB / 0.6491 GB, free: 5.68 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000133/1.062, allocations: 44 kB / 0.6491 GB, free: 5.637 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002192/1.063, allocations: 88.12 kB / 0.6492 GB, free: 5.551 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002572/1.065, allocations: 0.7407 MB / 0.6499 GB, free: 4.801 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004078/1.069, allocations: 1.127 MB / 0.651 GB, free: 3.672 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008903/1.078, allocations: 5.406 MB / 0.6563 GB, free: 14.17 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00445/1.083, allocations: 315.4 kB / 0.6566 GB, free: 13.86 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001015/1.084, allocations: 276 kB / 0.6569 GB, free: 13.59 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.0061/1.09, allocations: 2.524 MB / 0.6594 GB, free: 11.05 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001401/1.091, allocations: 377.6 kB / 0.6597 GB, free: 10.68 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009948/1.101, allocations: 4.229 MB / 0.6638 GB, free: 6.426 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.874e-05/1.101, allocations: 31.94 kB / 0.6639 GB, free: 6.395 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.016e-05/1.101, allocations: 4 kB / 0.6639 GB, free: 6.391 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.51e-05/1.101, allocations: 11.95 kB / 0.6639 GB, free: 6.379 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03044/1.132, allocations: 12.67 MB / 0.6763 GB, free: 9.523 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.247e-05/1.132, allocations: 12 kB / 0.6763 GB, free: 9.512 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002323/1.134, allocations: 487.2 kB / 0.6767 GB, free: 9.035 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002459/1.136, allocations: 0.686 MB / 0.6774 GB, free: 8.34 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004597/1.137, allocations: 71.97 kB / 0.6775 GB, free: 8.27 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01249/1.149, allocations: 7.119 MB / 0.6844 GB, free: 0.9453 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002274/1.152, allocations: 1.814 MB / 0.6862 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0136/1.165, allocations: 6.737 MB / 0.6928 GB, free: 8.012 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002752/1.168, allocations: 0.7238 MB / 0.6935 GB, free: 7.285 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001191/1.169, allocations: 59.98 kB / 0.6935 GB, free: 7.227 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002663/1.172, allocations: 159.8 kB / 0.6937 GB, free: 7.07 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006528/1.172, allocations: 237.2 kB / 0.6939 GB, free: 6.836 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003716/1.173, allocations: 99.98 kB / 0.694 GB, free: 6.738 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005448/1.178, allocations: 2.272 MB / 0.6962 GB, free: 4.48 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/1.178, allocations: 0 / 0.6962 GB, free: 4.48 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.006915/1.185, allocations: 1.289 MB / 0.6975 GB, free: 3.191 MB / 0.4981 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.0009932/1.186, allocations: 232.5 kB / 0.6977 GB, free: 2.961 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01052/1.197, allocations: 4.823 MB / 0.7024 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.988e-05/1.197, allocations: 4 kB / 0.7024 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004882/1.202, allocations: 2.182 MB / 0.7046 GB, free: 11.92 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006478/1.208, allocations: 0.8675 MB / 0.7054 GB, free: 11.07 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03014/1.238, allocations: 12.42 MB / 0.7175 GB, free: 14.45 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008738/1.247, allocations: 3.902 MB / 0.7214 GB, free: 10.5 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001674/1.249, allocations: 335.3 kB / 0.7217 GB, free: 10.17 MB / 0.5294 GB Notification: Performance of SimCode: time 1.302e-06/1.249, allocations: 4 kB / 0.7217 GB, free: 10.16 MB / 0.5294 GB Notification: Performance of Templates: time 0.4417/1.69, allocations: 203.5 MB / 0.9204 GB, free: 19 MB / 0.545 GB " [Timeout remaining time 658] make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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: 17.406426414381713]