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.001556/0.001556, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001937/0.001937, allocations: 201.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001085/0.001085, allocations: 59.91 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2766/0.2777, allocations: 50.55 MB / 409.3 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.03354/0.3113, allocations: 30.97 MB / 440.2 MB, free: 2.488 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02014/0.3314, allocations: 8.888 MB / 449.1 MB, free: 9.578 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0071/0.3386, allocations: 187.4 kB / 449.3 MB, free: 9.395 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01255/0.3512, allocations: 4.925 MB / 454.2 MB, free: 4.453 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01096/0.3622, allocations: 2.971 MB / 457.2 MB, free: 1.473 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005344/0.3675, allocations: 1.62 MB / 458.8 MB, free: 15.86 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01339/0.3809, allocations: 8.806 MB / 467.6 MB, free: 7.02 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01782/0.3988, allocations: 12.86 MB / 480.5 MB, free: 10.07 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0066/0.4055, allocations: 4.254 MB / 484.7 MB, free: 5.801 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007702/0.4132, allocations: 4.839 MB / 489.6 MB, free: 0.9453 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002643/0.4159, allocations: 1.164 MB / 490.7 MB, free: 15.78 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004209/0.4201, allocations: 1.542 MB / 492.3 MB, free: 14.24 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002799/0.4229, allocations: 2.404 MB / 494.7 MB, free: 11.83 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007047/0.43, allocations: 4.673 MB / 499.4 MB, free: 7.137 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01748/0.4475, allocations: 15.85 MB / 0.5031 GB, free: 7.238 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.4475, allocations: 0 / 0.5031 GB, free: 7.238 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.4475, allocations: 0 / 0.5031 GB, free: 7.238 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004388/0.448, allocations: 0 / 0.5031 GB, free: 7.238 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.02883/0.4768, allocations: 9.779 MB / 0.5127 GB, free: 13.36 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.553e-05/0.4769, allocations: 12.03 kB / 0.5127 GB, free: 13.35 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02917/0.5061, allocations: 5.282 MB / 0.5179 GB, free: 8.055 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01101/0.5171, allocations: 5.108 MB / 0.5229 GB, free: 2.863 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005357/0.5177, allocations: 0.5337 MB / 0.5234 GB, free: 2.328 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002479/0.5202, allocations: 0.7069 MB / 0.5241 GB, free: 1.621 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02441/0.5446, allocations: 11.32 MB / 0.5351 GB, free: 6.219 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002963/0.5449, allocations: 23.83 kB / 0.5351 GB, free: 6.195 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001743/0.5467, allocations: 296 kB / 0.5354 GB, free: 5.906 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004342/0.5471, allocations: 447 kB / 0.5358 GB, free: 5.469 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2504/0.7975, allocations: 10.83 MB / 0.5464 GB, free: 112.5 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0578/0.8554, allocations: 38.47 MB / 0.584 GB, free: 84.3 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01458/0.87, allocations: 28.31 MB / 0.6116 GB, free: 52.18 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004072/0.8741, allocations: 2.682 MB / 0.6143 GB, free: 49.5 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01263/0.8867, allocations: 8.415 MB / 0.6225 GB, free: 40.91 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.744e-05/0.8868, allocations: 64.5 kB / 0.6225 GB, free: 40.84 MB / 462.1 MB Notification: Performance of pre-optimization done (n=217): time 4.058e-06/0.8868, allocations: 0 / 0.6225 GB, free: 40.84 MB / 462.1 MB Notification: Performance of matching and sorting (n=233): time 0.01922/0.9061, allocations: 10.35 MB / 0.6326 GB, free: 30.48 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0017/0.9078, allocations: 1.987 MB / 0.6346 GB, free: 28.32 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004985/0.9128, allocations: 3.843 MB / 0.6383 GB, free: 24.45 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005192/0.9133, allocations: 65.7 kB / 0.6384 GB, free: 24.38 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001737/0.9151, allocations: 3.556 MB / 0.6419 GB, free: 20.8 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000905/0.916, allocations: 0.828 MB / 0.6427 GB, free: 19.98 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001235/0.9173, allocations: 0.9567 MB / 0.6436 GB, free: 19.01 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.238e-05/0.9173, allocations: 305.1 kB / 0.6439 GB, free: 18.71 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002206/0.9195, allocations: 1.891 MB / 0.6458 GB, free: 16.81 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003024/0.9226, allocations: 4.391 MB / 0.65 GB, free: 11.19 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005813/0.9284, allocations: 6.793 MB / 0.6567 GB, free: 3.188 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.615e-05/0.9285, allocations: 27.94 kB / 0.6567 GB, free: 3.16 MB / 462.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01115/0.9396, allocations: 6.98 MB / 0.6635 GB, free: 12.16 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.169e-05/0.9397, allocations: 47.94 kB / 0.6636 GB, free: 12.11 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001265/0.9399, allocations: 84 kB / 0.6636 GB, free: 12.03 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002077/0.9419, allocations: 0.7451 MB / 0.6644 GB, free: 11.28 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003805/0.9458, allocations: 1.123 MB / 0.6655 GB, free: 10.15 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007479/0.9533, allocations: 5.64 MB / 0.671 GB, free: 4.371 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004869/0.9582, allocations: 311.1 kB / 0.6713 GB, free: 4.066 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008341/0.959, allocations: 275.9 kB / 0.6715 GB, free: 3.797 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.004412/0.9634, allocations: 2.518 MB / 0.674 GB, free: 1.266 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009238/0.9644, allocations: 383.3 kB / 0.6744 GB, free: 0.8867 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007332/0.9717, allocations: 4.287 MB / 0.6786 GB, free: 12.56 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.057e-05/0.9717, allocations: 24 kB / 0.6786 GB, free: 12.54 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.794e-05/0.9718, allocations: 11.94 kB / 0.6786 GB, free: 12.53 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.367e-05/0.9718, allocations: 11.95 kB / 0.6786 GB, free: 12.52 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02382/0.9956, allocations: 14.29 MB / 0.6926 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.076e-05/0.9957, allocations: 16.03 kB / 0.6926 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001874/0.9976, allocations: 479.2 kB / 0.693 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002011/0.9996, allocations: 0.6857 MB / 0.6937 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001817/0.9998, allocations: 71.98 kB / 0.6938 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008997/1.009, allocations: 7.492 MB / 0.7011 GB, free: 5.012 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001677/1.01, allocations: 1.949 MB / 0.703 GB, free: 2.91 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01004/1.021, allocations: 6.748 MB / 0.7096 GB, free: 11.88 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002282/1.023, allocations: 0.7928 MB / 0.7103 GB, free: 11.07 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000496/1.023, allocations: 64 kB / 0.7104 GB, free: 11 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001775/1.025, allocations: 171.8 kB / 0.7106 GB, free: 10.84 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004287/1.026, allocations: 213.5 kB / 0.7108 GB, free: 10.62 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001718/1.026, allocations: 87.98 kB / 0.7109 GB, free: 10.54 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.004065/1.03, allocations: 2.526 MB / 0.7133 GB, free: 8 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.9e-07/1.03, allocations: 0 / 0.7133 GB, free: 8 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.00499/1.035, allocations: 1.292 MB / 0.7146 GB, free: 6.711 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.0004939/1.035, allocations: 237.7 kB / 0.7148 GB, free: 6.473 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.008075/1.043, allocations: 5.165 MB / 0.7199 GB, free: 1.266 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.4e-05/1.043, allocations: 4 kB / 0.7199 GB, free: 1.262 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.003878/1.047, allocations: 2.411 MB / 0.7222 GB, free: 14.82 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004773/1.052, allocations: 1.015 MB / 0.7232 GB, free: 13.83 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01913/1.071, allocations: 12.36 MB / 0.7353 GB, free: 1.289 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00418/1.076, allocations: 4.502 MB / 0.7397 GB, free: 12.75 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003834/1.079, allocations: 1.36 MB / 0.741 GB, free: 11.38 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008132/1.08, allocations: 299.4 kB / 0.7413 GB, free: 11.09 MB / 0.545 GB Notification: Performance of SimCode: time 8.91e-07/1.08, allocations: 0 / 0.7413 GB, free: 11.09 MB / 0.545 GB Notification: Performance of Templates: time 0.3043/1.385, allocations: 53.9 MB / 0.7939 GB, free: 168.5 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/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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches