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.001384/0.001384, allocations: 115.5 kB / 17.69 MB, free: 5.426 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.001509/0.001509, allocations: 192 kB / 18.63 MB, free: 4.492 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.373/1.373, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001039/0.001039, allocations: 54.8 kB / 302.1 MB, free: 5.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1051, allocations: 49.45 MB / 351.5 MB, free: 3.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.202/0.3072, allocations: 30.33 MB / 381.9 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01888/0.3261, allocations: 8.651 MB / 390.5 MB, free: 6.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00746/0.3336, allocations: 184.1 kB / 390.7 MB, free: 6.199 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01213/0.3458, allocations: 4.906 MB / 395.6 MB, free: 3.332 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01135/0.3572, allocations: 2.967 MB / 398.6 MB, free: 1.402 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005422/0.3626, allocations: 1.609 MB / 400.2 MB, free: 108 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01483/0.3775, allocations: 8.699 MB / 408.9 MB, free: 10.79 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02068/0.3982, allocations: 12.86 MB / 421.7 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007449/0.4057, allocations: 4.218 MB / 426 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008006/0.4137, allocations: 4.73 MB / 430.7 MB, free: 6.293 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003239/0.417, allocations: 1.164 MB / 431.9 MB, free: 5.129 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005286/0.4223, allocations: 1.523 MB / 433.4 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003681/0.426, allocations: 2.412 MB / 435.8 MB, free: 1.188 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008348/0.4344, allocations: 4.669 MB / 440.5 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01695/0.4513, allocations: 15.8 MB / 456.3 MB, free: 12.65 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.4514, allocations: 0 / 456.3 MB, free: 12.65 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4514, allocations: 4 kB / 456.3 MB, free: 12.65 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004039/0.4518, allocations: 0 / 456.3 MB, free: 12.65 MB / 366.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.02799/0.4798, allocations: 9.751 MB / 466 MB, free: 2.805 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.4799, allocations: 8.031 kB / 466 MB, free: 2.797 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02878/0.5086, allocations: 5.263 MB / 471.3 MB, free: 13.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01385/0.5225, allocations: 5.108 MB / 476.4 MB, free: 8.328 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000695/0.5233, allocations: 0.5338 MB / 476.9 MB, free: 7.793 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003413/0.5267, allocations: 0.7029 MB / 477.6 MB, free: 7.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02241/0.5491, allocations: 11.32 MB / 488.9 MB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002336/0.5494, allocations: 11.91 kB / 489 MB, free: 11.67 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001218/0.5506, allocations: 296 kB / 489.3 MB, free: 11.38 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003997/0.551, allocations: 450.9 kB / 489.7 MB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01981/0.5708, allocations: 10.83 MB / 0.4888 GB, free: 104 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2708/0.8417, allocations: 37.59 MB / 0.5255 GB, free: 109.2 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01704/0.8588, allocations: 28.1 MB / 0.5529 GB, free: 83.68 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004315/0.8631, allocations: 2.648 MB / 0.5555 GB, free: 83.64 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01376/0.8769, allocations: 7.898 MB / 0.5632 GB, free: 81.68 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.846e-05/0.877, allocations: 56.47 kB / 0.5633 GB, free: 81.63 MB / 430.1 MB Notification: Performance of pre-optimization done (n=217): time 4.459e-06/0.877, allocations: 3.938 kB / 0.5633 GB, free: 81.63 MB / 430.1 MB Notification: Performance of matching and sorting (n=233): time 0.01868/0.8957, allocations: 10.36 MB / 0.5734 GB, free: 76.93 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001616/0.8973, allocations: 2.002 MB / 0.5754 GB, free: 75.11 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005631/0.903, allocations: 3.822 MB / 0.5791 GB, free: 73.67 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004938/0.9035, allocations: 61.08 kB / 0.5792 GB, free: 73.61 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001912/0.9054, allocations: 3.554 MB / 0.5826 GB, free: 70.91 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001131/0.9066, allocations: 0.8349 MB / 0.5834 GB, free: 70.28 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001397/0.908, allocations: 0.9508 MB / 0.5844 GB, free: 69.79 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.338e-05/0.908, allocations: 309 kB / 0.5847 GB, free: 69.5 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002364/0.9104, allocations: 1.888 MB / 0.5865 GB, free: 68.71 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003236/0.9137, allocations: 4.398 MB / 0.5908 GB, free: 64.21 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00615/0.9198, allocations: 6.783 MB / 0.5974 GB, free: 58.3 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.862e-05/0.9199, allocations: 25.75 kB / 0.5975 GB, free: 58.3 MB / 430.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.0105/0.9304, allocations: 6.977 MB / 0.6043 GB, free: 53.8 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.749e-05/0.9305, allocations: 46.69 kB / 0.6043 GB, free: 53.76 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001124/0.9306, allocations: 88 kB / 0.6044 GB, free: 53.68 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00173/0.9324, allocations: 0.7322 MB / 0.6051 GB, free: 52.93 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00356/0.936, allocations: 1.124 MB / 0.6062 GB, free: 51.81 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005895/0.9419, allocations: 5.644 MB / 0.6117 GB, free: 46.02 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00409/0.946, allocations: 307.1 kB / 0.612 GB, free: 45.72 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007441/0.9468, allocations: 272 kB / 0.6123 GB, free: 45.46 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.004068/0.9508, allocations: 2.529 MB / 0.6147 GB, free: 42.91 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009438/0.9518, allocations: 383.3 kB / 0.6151 GB, free: 42.54 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006515/0.9583, allocations: 4.28 MB / 0.6193 GB, free: 38.24 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.67e-05/0.9584, allocations: 31.75 kB / 0.6193 GB, free: 38.21 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.518e-06/0.9584, allocations: 4 kB / 0.6193 GB, free: 38.21 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.031e-05/0.9584, allocations: 11.95 kB / 0.6193 GB, free: 38.2 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02604/0.9845, allocations: 14.26 MB / 0.6333 GB, free: 23.74 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.596e-05/0.9845, allocations: 15.94 kB / 0.6333 GB, free: 23.72 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001655/0.9862, allocations: 476.1 kB / 0.6337 GB, free: 23.26 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001787/0.988, allocations: 0.6969 MB / 0.6344 GB, free: 22.55 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001966/0.9882, allocations: 71.98 kB / 0.6345 GB, free: 22.48 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007153/0.9954, allocations: 7.49 MB / 0.6418 GB, free: 14.71 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001291/0.9967, allocations: 1.947 MB / 0.6437 GB, free: 12.62 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008293/1.005, allocations: 6.744 MB / 0.6503 GB, free: 5.598 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002275/1.007, allocations: 0.7967 MB / 0.6511 GB, free: 4.777 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005847/1.008, allocations: 56 kB / 0.6511 GB, free: 4.723 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001699/1.01, allocations: 167.9 kB / 0.6513 GB, free: 4.559 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000378/1.01, allocations: 221.4 kB / 0.6515 GB, free: 4.34 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001553/1.01, allocations: 95.98 kB / 0.6516 GB, free: 4.246 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003044/1.013, allocations: 2.509 MB / 0.654 GB, free: 1.758 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.2e-07/1.013, allocations: 0 / 0.654 GB, free: 1.758 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004319/1.018, allocations: 1.285 MB / 0.6553 GB, free: 484 kB / 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.0004402/1.018, allocations: 237.7 kB / 0.6555 GB, free: 240 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.008063/1.026, allocations: 5.168 MB / 0.6606 GB, free: 11.02 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.128e-05/1.026, allocations: 0 / 0.6606 GB, free: 11.02 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003923/1.03, allocations: 2.411 MB / 0.6629 GB, free: 8.582 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004964/1.035, allocations: 0.9756 MB / 0.6639 GB, free: 7.633 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02362/1.059, allocations: 12.32 MB / 0.6759 GB, free: 11.12 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00543/1.064, allocations: 4.491 MB / 0.6803 GB, free: 6.59 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004354/1.069, allocations: 1.36 MB / 0.6816 GB, free: 5.227 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007357/1.069, allocations: 299.4 kB / 0.6819 GB, free: 4.934 MB / 462.1 MB Notification: Performance of SimCode: time 1.012e-06/1.069, allocations: 3.938 kB / 0.6819 GB, free: 4.93 MB / 462.1 MB Notification: Performance of Templates: time 0.27/1.339, allocations: 51.42 MB / 0.7321 GB, free: 121.3 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 -s gbode -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/jenkins1/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/jenkins1/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