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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=2000,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=2000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001371/0.001371, allocations: 105 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001425/0.001425, allocations: 210.8 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 227.4 MB / 247.6 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 59.91 kB / 359.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2364/0.2377, allocations: 50.55 MB / 410 MB, free: 1.719 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.03036/0.2681, allocations: 30.98 MB / 440.9 MB, free: 2.598 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01821/0.2864, allocations: 8.884 MB / 449.8 MB, free: 9.691 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005479/0.2919, allocations: 195.4 kB / 450 MB, free: 9.5 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01235/0.3043, allocations: 4.918 MB / 454.9 MB, free: 4.566 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009518/0.3138, allocations: 2.968 MB / 457.9 MB, free: 1.586 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005156/0.319, allocations: 1.62 MB / 459.5 MB, free: 15.96 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01198/0.331, allocations: 8.817 MB / 468.3 MB, free: 7.125 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02005/0.3511, allocations: 12.86 MB / 481.2 MB, free: 10.16 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006548/0.3577, allocations: 4.242 MB / 485.4 MB, free: 5.91 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007555/0.3653, allocations: 4.839 MB / 490.3 MB, free: 1.055 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003163/0.3685, allocations: 1.16 MB / 491.4 MB, free: 15.89 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004745/0.3733, allocations: 1.542 MB / 493 MB, free: 14.35 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003605/0.3769, allocations: 2.404 MB / 495.4 MB, free: 11.94 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008012/0.3849, allocations: 4.68 MB / 0.4883 GB, free: 7.242 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01856/0.4035, allocations: 15.85 MB / 0.5038 GB, free: 7.348 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.4036, allocations: 0 / 0.5038 GB, free: 7.348 MB / 430.1 MB Notification: Performance of FrontEnd: time 4.238e-06/0.4036, allocations: 3.984 kB / 0.5038 GB, free: 7.344 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004284/0.404, allocations: 0 / 0.5038 GB, free: 7.344 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.0306/0.4346, allocations: 9.775 MB / 0.5134 GB, free: 13.47 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/0.4347, allocations: 11.97 kB / 0.5134 GB, free: 13.46 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03063/0.4653, allocations: 5.282 MB / 0.5185 GB, free: 8.164 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01166/0.4771, allocations: 5.108 MB / 0.5235 GB, free: 2.973 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005999/0.4777, allocations: 0.5299 MB / 0.524 GB, free: 2.441 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002716/0.4804, allocations: 0.7107 MB / 0.5247 GB, free: 1.73 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02908/0.5095, allocations: 11.32 MB / 0.5358 GB, free: 6.324 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004116/0.51, allocations: 19.84 kB / 0.5358 GB, free: 6.305 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00241/0.5124, allocations: 296 kB / 0.5361 GB, free: 6.016 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005402/0.513, allocations: 446.9 kB / 0.5365 GB, free: 5.578 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.247/0.76, allocations: 10.83 MB / 0.5471 GB, free: 112.6 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0512/0.8112, allocations: 38.47 MB / 0.5847 GB, free: 84.52 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01364/0.8249, allocations: 28.3 MB / 0.6123 GB, free: 52.4 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003752/0.8287, allocations: 2.683 MB / 0.6149 GB, free: 49.71 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01105/0.8398, allocations: 8.409 MB / 0.6231 GB, free: 41.14 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.248e-05/0.8399, allocations: 63.94 kB / 0.6232 GB, free: 41.07 MB / 462.1 MB Notification: Performance of pre-optimization done (n=217): time 4.348e-06/0.8399, allocations: 0 / 0.6232 GB, free: 41.07 MB / 462.1 MB Notification: Performance of matching and sorting (n=233): time 0.01706/0.857, allocations: 10.35 MB / 0.6333 GB, free: 30.71 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00157/0.8586, allocations: 2.007 MB / 0.6353 GB, free: 28.53 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004984/0.8636, allocations: 3.835 MB / 0.639 GB, free: 24.67 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003924/0.864, allocations: 65.7 kB / 0.6391 GB, free: 24.6 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001388/0.8654, allocations: 3.557 MB / 0.6425 GB, free: 21.02 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005819/0.866, allocations: 0.8266 MB / 0.6434 GB, free: 20.2 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001087/0.8671, allocations: 0.9529 MB / 0.6443 GB, free: 19.24 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.344e-05/0.8671, allocations: 305.1 kB / 0.6446 GB, free: 18.94 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002146/0.8693, allocations: 1.899 MB / 0.6464 GB, free: 17.03 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002919/0.8722, allocations: 4.387 MB / 0.6507 GB, free: 11.41 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005741/0.878, allocations: 6.789 MB / 0.6573 GB, free: 3.414 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.785e-05/0.878, allocations: 32 kB / 0.6574 GB, free: 3.383 MB / 462.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01101/0.8891, allocations: 6.984 MB / 0.6642 GB, free: 12.38 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.856e-05/0.8892, allocations: 50.59 kB / 0.6642 GB, free: 12.33 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001378/0.8893, allocations: 84 kB / 0.6643 GB, free: 12.25 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002026/0.8914, allocations: 0.7452 MB / 0.6651 GB, free: 11.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003871/0.8953, allocations: 1.119 MB / 0.6661 GB, free: 10.38 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007782/0.9031, allocations: 5.639 MB / 0.6717 GB, free: 4.594 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004341/0.9074, allocations: 311.1 kB / 0.6719 GB, free: 4.289 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000926/0.9084, allocations: 275.9 kB / 0.6722 GB, free: 4.02 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.005024/0.9134, allocations: 2.518 MB / 0.6747 GB, free: 1.488 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001147/0.9146, allocations: 391.3 kB / 0.675 GB, free: 1.102 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007684/0.9223, allocations: 4.275 MB / 0.6792 GB, free: 12.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.982e-05/0.9223, allocations: 24 kB / 0.6792 GB, free: 12.77 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.294e-05/0.9224, allocations: 11.94 kB / 0.6793 GB, free: 12.76 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-05/0.9224, allocations: 11.95 kB / 0.6793 GB, free: 12.75 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02377/0.9462, allocations: 14.3 MB / 0.6932 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-05/0.9462, allocations: 15.98 kB / 0.6932 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001934/0.9482, allocations: 475.2 kB / 0.6937 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002053/0.9502, allocations: 0.6935 MB / 0.6944 GB, free: 13.08 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002299/0.9505, allocations: 69.77 kB / 0.6944 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009649/0.9601, allocations: 7.49 MB / 0.7018 GB, free: 5.238 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001848/0.962, allocations: 1.949 MB / 0.7037 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01061/0.9727, allocations: 6.75 MB / 0.7102 GB, free: 12.11 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002113/0.9748, allocations: 0.7889 MB / 0.711 GB, free: 11.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005497/0.9754, allocations: 71.98 kB / 0.7111 GB, free: 11.23 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001891/0.9773, allocations: 163.8 kB / 0.7112 GB, free: 11.07 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004475/0.9777, allocations: 217.8 kB / 0.7115 GB, free: 10.86 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001776/0.9779, allocations: 91.98 kB / 0.7115 GB, free: 10.77 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.003937/0.9819, allocations: 2.522 MB / 0.714 GB, free: 8.23 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9819, allocations: 0 / 0.714 GB, free: 8.23 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.004925/0.9868, allocations: 1.296 MB / 0.7153 GB, free: 6.938 MB / 0.5138 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.0005735/0.9874, allocations: 230.3 kB / 0.7155 GB, free: 6.703 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.0081/0.9955, allocations: 5.171 MB / 0.7205 GB, free: 1.492 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.11e-05/0.9956, allocations: 4 kB / 0.7205 GB, free: 1.488 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.003922/0.9995, allocations: 2.417 MB / 0.7229 GB, free: 15.04 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00557/1.005, allocations: 1 MB / 0.7239 GB, free: 14.05 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02215/1.027, allocations: 12.26 MB / 0.7358 GB, free: 1.609 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004515/1.032, allocations: 4.388 MB / 0.7401 GB, free: 13.19 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001395/1.033, allocations: 335.4 kB / 0.7405 GB, free: 12.86 MB / 0.545 GB Notification: Performance of SimCode: time 7.91e-07/1.033, allocations: 0 / 0.7405 GB, free: 12.86 MB / 0.545 GB Notification: Performance of Templates: time 0.371/1.404, allocations: 201.8 MB / 0.9375 GB, free: 20.49 MB / 0.545 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile (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) 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.0.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) Reference file matches