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.000789/0.000789, allocations: 90.38 kB / 17.31 MB, free: 5.59 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.0008463/0.0008463, allocations: 177.1 kB / 18.21 MB, free: 5.191 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.117/1.117, allocations: 223.3 MB / 242.3 MB, free: 14.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002193/0.0002193, allocations: 17.11 kB / 302.1 MB, free: 5.836 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07983/0.08007, allocations: 50.41 MB / 352.5 MB, free: 3.422 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.155/0.2351, allocations: 28.65 MB / 381.2 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01236/0.2475, allocations: 8.487 MB / 389.7 MB, free: 8.219 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004082/0.2516, allocations: 174.7 kB / 389.8 MB, free: 8.184 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003363/0.2549, allocations: 1.575 MB / 391.4 MB, free: 7.457 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005968/0.2609, allocations: 2.702 MB / 394.1 MB, free: 5.766 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002428/0.2634, allocations: 1.381 MB / 395.5 MB, free: 4.844 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007167/0.2705, allocations: 8.984 MB / 404.5 MB, free: 24 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01433/0.2849, allocations: 12.02 MB / 416.5 MB, free: 6.012 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00384/0.2887, allocations: 3.062 MB / 419.6 MB, free: 2.938 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003703/0.2924, allocations: 3.796 MB / 423.4 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006147/0.2931, allocations: 480 kB / 423.8 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001667/0.2947, allocations: 0.8238 MB / 424.7 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001107/0.2959, allocations: 1.584 MB / 426.2 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002998/0.2989, allocations: 3.796 MB / 430 MB, free: 8.418 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009417/0.3083, allocations: 13.2 MB / 443.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.3083, allocations: 0 / 443.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3083, allocations: 0 / 443.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001626/0.3085, allocations: 0 / 443.2 MB, free: 11.18 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.01684/0.3253, allocations: 8.191 MB / 451.4 MB, free: 2.895 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.139e-05/0.3254, allocations: 8.031 kB / 451.4 MB, free: 2.887 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0248/0.3502, allocations: 5.274 MB / 456.7 MB, free: 13.6 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00682/0.357, allocations: 4.964 MB / 461.7 MB, free: 8.551 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003179/0.3573, allocations: 0.5378 MB / 462.2 MB, free: 8.012 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001017/0.3584, allocations: 0.7146 MB / 462.9 MB, free: 7.297 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01557/0.3739, allocations: 11.31 MB / 474.2 MB, free: 11.9 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001359/0.3741, allocations: 15.91 kB / 474.3 MB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006761/0.3748, allocations: 300 kB / 474.5 MB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003548/0.3751, allocations: 450.9 kB / 475 MB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01476/0.3899, allocations: 10.83 MB / 485.8 MB, free: 320 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04198/0.4319, allocations: 38.12 MB / 0.5117 GB, free: 9.07 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1463/0.5782, allocations: 28.09 MB / 0.5391 GB, free: 99.09 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003978/0.5822, allocations: 2.646 MB / 0.5417 GB, free: 99.05 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01096/0.5932, allocations: 7.925 MB / 0.5494 GB, free: 95.39 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.865e-05/0.5932, allocations: 57.89 kB / 0.5495 GB, free: 95.33 MB / 430.1 MB Notification: Performance of pre-optimization done (n=217): time 3.257e-06/0.5932, allocations: 1.188 kB / 0.5495 GB, free: 95.33 MB / 430.1 MB Notification: Performance of matching and sorting (n=233): time 0.01596/0.6092, allocations: 10.37 MB / 0.5596 GB, free: 90.81 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001319/0.6106, allocations: 1.917 MB / 0.5615 GB, free: 89.09 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004362/0.6149, allocations: 3.823 MB / 0.5652 GB, free: 87.65 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001267/0.6151, allocations: 69.52 kB / 0.5653 GB, free: 87.59 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001445/0.6165, allocations: 3.545 MB / 0.5687 GB, free: 84.89 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004536/0.617, allocations: 0.8289 MB / 0.5695 GB, free: 84.27 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003586/0.6173, allocations: 387.7 kB / 0.5699 GB, free: 84.09 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 2.493e-05/0.6174, allocations: 302.2 kB / 0.5702 GB, free: 83.79 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001945/0.6193, allocations: 1.892 MB / 0.572 GB, free: 83.07 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002572/0.6219, allocations: 4.393 MB / 0.5763 GB, free: 78.96 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004776/0.6267, allocations: 6.789 MB / 0.583 GB, free: 73.49 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.358e-05/0.6267, allocations: 22.94 kB / 0.583 GB, free: 73.49 MB / 430.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.007707/0.6344, allocations: 6.985 MB / 0.5898 GB, free: 70.61 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.95e-05/0.6345, allocations: 45.38 kB / 0.5899 GB, free: 70.61 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.157e-05/0.6345, allocations: 92.53 kB / 0.5899 GB, free: 70.55 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001489/0.636, allocations: 0.7364 MB / 0.5907 GB, free: 69.98 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00267/0.6387, allocations: 1.123 MB / 0.5918 GB, free: 69 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004896/0.6436, allocations: 5.238 MB / 0.5969 GB, free: 63.73 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002564/0.6462, allocations: 315.1 kB / 0.5972 GB, free: 63.42 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000242/0.6464, allocations: 272 kB / 0.5974 GB, free: 63.16 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.002668/0.6491, allocations: 2.522 MB / 0.5999 GB, free: 60.62 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004085/0.6495, allocations: 387.3 kB / 0.6003 GB, free: 60.24 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005416/0.655, allocations: 4.274 MB / 0.6044 GB, free: 55.95 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.087e-05/0.655, allocations: 24 kB / 0.6045 GB, free: 55.92 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/0.655, allocations: 12.8 kB / 0.6045 GB, free: 55.91 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.632e-05/0.655, allocations: 15.89 kB / 0.6045 GB, free: 55.89 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0142/0.6692, allocations: 14.28 MB / 0.6184 GB, free: 41.42 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-05/0.6692, allocations: 12.44 kB / 0.6184 GB, free: 41.41 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001501/0.6708, allocations: 474.9 kB / 0.6189 GB, free: 40.95 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001534/0.6723, allocations: 0.7013 MB / 0.6196 GB, free: 40.24 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001199/0.6724, allocations: 67.98 kB / 0.6196 GB, free: 40.17 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006096/0.6785, allocations: 6.948 MB / 0.6264 GB, free: 32.96 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001094/0.6796, allocations: 1.873 MB / 0.6283 GB, free: 30.93 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006716/0.6864, allocations: 6.744 MB / 0.6348 GB, free: 23.91 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009907/0.6874, allocations: 0.7967 MB / 0.6356 GB, free: 23.09 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003648/0.6877, allocations: 68.05 kB / 0.6357 GB, free: 23.03 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001543/0.6893, allocations: 163.8 kB / 0.6358 GB, free: 22.87 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002723/0.6896, allocations: 221.5 kB / 0.6361 GB, free: 22.65 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001267/0.6897, allocations: 87.98 kB / 0.6361 GB, free: 22.56 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002477/0.6922, allocations: 2.513 MB / 0.6386 GB, free: 20.07 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6922, allocations: 0 / 0.6386 GB, free: 20.07 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003212/0.6954, allocations: 1.289 MB / 0.6399 GB, free: 18.78 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.0003134/0.6957, allocations: 233.5 kB / 0.6401 GB, free: 18.55 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005106/0.7008, allocations: 5.137 MB / 0.6451 GB, free: 13.36 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.7009, allocations: 0 / 0.6451 GB, free: 13.36 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002491/0.7033, allocations: 2.406 MB / 0.6474 GB, free: 10.92 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007918/0.7113, allocations: 0.9423 MB / 0.6484 GB, free: 10.01 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0148/0.7261, allocations: 15.37 MB / 0.6634 GB, free: 10.44 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003564/0.7297, allocations: 4.386 MB / 0.6677 GB, free: 6.016 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008512/0.7305, allocations: 339.3 kB / 0.668 GB, free: 5.688 MB / 446.1 MB Notification: Performance of SimCode: time 2.51e-07/0.7305, allocations: 0 / 0.668 GB, free: 5.688 MB / 446.1 MB Notification: Performance of Templates: time 0.4248/1.155, allocations: 199.6 MB / 0.8629 GB, free: 154.9 MB / 478.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/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