Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_4.0.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=2000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001022/0.001022, allocations: 111.2 kB / 16.51 MB, free: 6.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009781/0.0009782, allocations: 190.5 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.28/1.28, allocations: 222.9 MB / 241.1 MB, free: 13.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009842/0.0009841, allocations: 47.42 kB / 300 MB, free: 6.008 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08998/0.09098, allocations: 49.45 MB / 349.4 MB, free: 4.562 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.1885/0.2796, allocations: 29.83 MB / 379.3 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01705/0.2967, allocations: 8.577 MB / 387.8 MB, free: 6.863 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006778/0.3035, allocations: 175.6 kB / 388 MB, free: 6.832 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01127/0.3148, allocations: 4.577 MB / 392.6 MB, free: 4.207 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009039/0.3239, allocations: 2.723 MB / 395.3 MB, free: 2.516 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00434/0.3282, allocations: 1.497 MB / 396.8 MB, free: 1.508 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01209/0.3403, allocations: 8.979 MB / 405.8 MB, free: 12.47 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01854/0.3589, allocations: 10.3 MB / 416.1 MB, free: 3.672 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006929/0.3659, allocations: 3.601 MB / 419.7 MB, free: 60 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007835/0.3738, allocations: 4.487 MB / 424.2 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002687/0.3765, allocations: 0.7305 MB / 424.9 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004689/0.3812, allocations: 1.086 MB / 426 MB, free: 9.734 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003197/0.3844, allocations: 1.97 MB / 428 MB, free: 7.758 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008469/0.3929, allocations: 4.208 MB / 432.2 MB, free: 3.531 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01824/0.4112, allocations: 15.41 MB / 447.6 MB, free: 4.074 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.764e-06/0.4112, allocations: 0 / 447.6 MB, free: 4.074 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4112, allocations: 0 / 447.6 MB, free: 4.074 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004632/0.4117, allocations: 4 kB / 447.6 MB, free: 4.07 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: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.02729/0.439, allocations: 9.759 MB / 457.3 MB, free: 10.21 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.4391, allocations: 12.03 kB / 457.4 MB, free: 10.2 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02888/0.468, allocations: 5.259 MB / 462.6 MB, free: 4.93 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01024/0.4782, allocations: 4.949 MB / 467.6 MB, free: 15.89 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000413/0.4787, allocations: 0.5377 MB / 468.1 MB, free: 15.36 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001972/0.4807, allocations: 0.7107 MB / 468.8 MB, free: 14.65 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02046/0.5011, allocations: 11.32 MB / 480.1 MB, free: 3.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000169/0.5014, allocations: 19.91 kB / 480.1 MB, free: 3.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008574/0.5022, allocations: 303.9 kB / 480.4 MB, free: 2.934 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000395/0.5026, allocations: 451 kB / 480.9 MB, free: 2.492 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02013/0.5228, allocations: 10.82 MB / 491.7 MB, free: 7.664 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05605/0.5789, allocations: 38 MB / 0.5173 GB, free: 0.5391 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.162/0.7409, allocations: 28.1 MB / 0.5447 GB, free: 97.37 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004266/0.7452, allocations: 2.644 MB / 0.5473 GB, free: 96.38 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01174/0.7569, allocations: 7.914 MB / 0.555 GB, free: 92.62 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.112e-05/0.757, allocations: 63.28 kB / 0.5551 GB, free: 92.56 MB / 430.1 MB Notification: Performance of pre-optimization done (n=217): time 3.487e-06/0.757, allocations: 0.9688 kB / 0.5551 GB, free: 92.56 MB / 430.1 MB Notification: Performance of matching and sorting (n=233): time 0.01779/0.7748, allocations: 10.36 MB / 0.5652 GB, free: 88.09 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001528/0.7764, allocations: 1.913 MB / 0.5671 GB, free: 86.36 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004699/0.7811, allocations: 3.825 MB / 0.5708 GB, free: 84.92 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003317/0.7814, allocations: 65.55 kB / 0.5709 GB, free: 84.86 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001354/0.7828, allocations: 3.549 MB / 0.5743 GB, free: 82.16 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005519/0.7834, allocations: 0.8304 MB / 0.5752 GB, free: 81.54 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001042/0.7844, allocations: 0.9628 MB / 0.5761 GB, free: 81.04 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.781e-05/0.7845, allocations: 301.1 kB / 0.5764 GB, free: 80.75 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00223/0.7867, allocations: 1.893 MB / 0.5782 GB, free: 80.03 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003217/0.7899, allocations: 4.391 MB / 0.5825 GB, free: 75.92 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005822/0.7958, allocations: 6.784 MB / 0.5891 GB, free: 69.81 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.57e-05/0.7958, allocations: 24.88 kB / 0.5892 GB, free: 69.79 MB / 430.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.009801/0.8056, allocations: 6.988 MB / 0.596 GB, free: 62.87 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.322e-05/0.8057, allocations: 40 kB / 0.596 GB, free: 62.83 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-05/0.8058, allocations: 88.84 kB / 0.5961 GB, free: 62.74 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001754/0.8076, allocations: 0.7399 MB / 0.5968 GB, free: 61.99 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002948/0.8106, allocations: 1.123 MB / 0.5979 GB, free: 60.87 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00533/0.8159, allocations: 5.238 MB / 0.603 GB, free: 55.5 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003346/0.8193, allocations: 311 kB / 0.6033 GB, free: 55.19 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003559/0.8196, allocations: 276 kB / 0.6036 GB, free: 54.92 MB / 430.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.003261/0.8229, allocations: 2.522 MB / 0.6061 GB, free: 52.39 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008863/0.8238, allocations: 383.5 kB / 0.6064 GB, free: 52.01 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00615/0.8299, allocations: 4.282 MB / 0.6106 GB, free: 47.7 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.38e-05/0.83, allocations: 27.94 kB / 0.6106 GB, free: 47.68 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.83, allocations: 8 kB / 0.6106 GB, free: 47.67 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.708e-05/0.83, allocations: 11.95 kB / 0.6107 GB, free: 47.66 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01782/0.8478, allocations: 14.28 MB / 0.6246 GB, free: 33.18 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.481e-05/0.8479, allocations: 12 kB / 0.6246 GB, free: 33.17 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001599/0.8495, allocations: 483.2 kB / 0.6251 GB, free: 32.7 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00177/0.8513, allocations: 0.6935 MB / 0.6258 GB, free: 32 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001557/0.8514, allocations: 67.98 kB / 0.6258 GB, free: 31.93 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006762/0.8582, allocations: 6.949 MB / 0.6326 GB, free: 24.71 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001269/0.8595, allocations: 1.878 MB / 0.6344 GB, free: 22.7 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008228/0.8677, allocations: 6.743 MB / 0.641 GB, free: 15.68 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002036/0.8698, allocations: 0.7928 MB / 0.6418 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005872/0.8704, allocations: 59.98 kB / 0.6419 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001639/0.8721, allocations: 163.9 kB / 0.642 GB, free: 14.64 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004246/0.8725, allocations: 233 kB / 0.6422 GB, free: 14.42 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001563/0.8727, allocations: 87.98 kB / 0.6423 GB, free: 14.33 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003416/0.8761, allocations: 2.509 MB / 0.6448 GB, free: 11.84 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.8761, allocations: 0 / 0.6448 GB, free: 11.84 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004662/0.8808, allocations: 1.293 MB / 0.646 GB, free: 10.55 MB / 430.1 MB 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.0005223/0.8813, allocations: 229.2 kB / 0.6462 GB, free: 10.32 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006636/0.888, allocations: 5.134 MB / 0.6513 GB, free: 5.133 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.868e-06/0.888, allocations: 4 kB / 0.6513 GB, free: 5.129 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003169/0.8912, allocations: 2.4 MB / 0.6536 GB, free: 2.691 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004777/0.896, allocations: 0.9347 MB / 0.6545 GB, free: 1.777 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02172/0.9177, allocations: 15.43 MB / 0.6696 GB, free: 2.164 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00461/0.9224, allocations: 4.5 MB / 0.674 GB, free: 13.62 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004247/0.9266, allocations: 1.364 MB / 0.6753 GB, free: 12.25 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008634/0.9275, allocations: 295.4 kB / 0.6756 GB, free: 11.96 MB / 462.1 MB Notification: Performance of SimCode: time 2.234e-06/0.9275, allocations: 0 / 0.6756 GB, free: 11.96 MB / 462.1 MB Notification: Performance of Templates: time 0.2449/1.172, allocations: 54.73 MB / 0.729 GB, free: 124.1 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_OpenCircuit/SMPM_OpenCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches