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_CurrentSource.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_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.1..v.re|terminalBoxQS.plugSupply.pin.1..v.im|terminalBoxQS.plugSupply.pin.1..i.re|terminalBoxQS.plugSupply.pin.1..i.im|terminalBoxQS.plugSupply.pin.2..v.re|terminalBoxQS.plugSupply.pin.2..v.im|terminalBoxQS.plugSupply.pin.2..i.re|terminalBoxQS.plugSupply.pin.2..i.im|terminalBoxQS.plugSupply.pin.3..v.re|terminalBoxQS.plugSupply.pin.3..v.im|terminalBoxQS.plugSupply.pin.3..i.re|terminalBoxQS.plugSupply.pin.3..i.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.1..v.re|terminalBoxQS.plugSupply.pin.1..v.im|terminalBoxQS.plugSupply.pin.1..i.re|terminalBoxQS.plugSupply.pin.1..i.im|terminalBoxQS.plugSupply.pin.2..v.re|terminalBoxQS.plugSupply.pin.2..v.im|terminalBoxQS.plugSupply.pin.2..i.re|terminalBoxQS.plugSupply.pin.2..i.im|terminalBoxQS.plugSupply.pin.3..v.re|terminalBoxQS.plugSupply.pin.3..v.im|terminalBoxQS.plugSupply.pin.3..i.re|terminalBoxQS.plugSupply.pin.3..i.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001238/0.001238, allocations: 107 kB / 17.74 MB, free: 5.359 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.001244/0.001244, allocations: 186.4 kB / 18.67 MB, free: 4.438 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.301/1.301, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009399/0.0009399, allocations: 51.92 kB / 352 MB, free: 3.199 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2074/0.2083, allocations: 49.43 MB / 401.5 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.03912/0.2474, allocations: 41.17 MB / 442.6 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01986/0.2673, allocations: 10.96 MB / 453.6 MB, free: 4.504 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005973/0.2733, allocations: 311 kB / 453.9 MB, free: 4.199 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01876/0.2921, allocations: 8.842 MB / 462.7 MB, free: 11.34 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01037/0.3025, allocations: 3.655 MB / 466.4 MB, free: 7.664 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006095/0.3086, allocations: 2.409 MB / 468.8 MB, free: 5.262 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01429/0.3229, allocations: 13.34 MB / 482.1 MB, free: 7.871 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03314/0.3561, allocations: 25.61 MB / 0.4959 GB, free: 14.11 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008346/0.3644, allocations: 6.993 MB / 0.5027 GB, free: 7.102 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01029/0.3747, allocations: 7.914 MB / 0.5104 GB, free: 15.16 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002808/0.3776, allocations: 1.996 MB / 0.5124 GB, free: 13.16 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00417/0.3817, allocations: 2.382 MB / 0.5147 GB, free: 10.78 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003032/0.3848, allocations: 4.037 MB / 0.5186 GB, free: 6.734 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008313/0.3931, allocations: 7.762 MB / 0.5262 GB, free: 14.93 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3678/0.7609, allocations: 26.45 MB / 0.552 GB, free: 57.36 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.761, allocations: 3.406 kB / 0.552 GB, free: 57.36 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.761, allocations: 0 / 0.552 GB, free: 57.36 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004962/0.7615, allocations: 1.875 kB / 0.552 GB, free: 57.36 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.03445/0.7959, allocations: 15.42 MB / 0.5671 GB, free: 51.88 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.796, allocations: 11.83 kB / 0.5671 GB, free: 51.88 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03197/0.828, allocations: 6.222 MB / 0.5732 GB, free: 49.44 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01481/0.8428, allocations: 8.266 MB / 0.5813 GB, free: 46.75 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004304/0.8432, allocations: 0.9253 MB / 0.5822 GB, free: 46.34 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0023/0.8456, allocations: 1.228 MB / 0.5834 GB, free: 45.93 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02709/0.8727, allocations: 19.02 MB / 0.6019 GB, free: 29.25 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002321/0.8729, allocations: 25.3 kB / 0.602 GB, free: 29.23 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001288/0.8742, allocations: 0.5055 MB / 0.6025 GB, free: 28.74 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004132/0.8746, allocations: 0.6543 MB / 0.6031 GB, free: 28.08 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02528/0.8999, allocations: 17.04 MB / 0.6197 GB, free: 11.04 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07944/0.9794, allocations: 59.8 MB / 0.6781 GB, free: 14.8 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02481/1.004, allocations: 33.16 MB / 0.7105 GB, free: 9.785 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005527/1.01, allocations: 3.782 MB / 0.7142 GB, free: 5.992 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01475/1.025, allocations: 8.872 MB / 0.7229 GB, free: 13.18 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.185e-05/1.025, allocations: 69.41 kB / 0.7229 GB, free: 13.11 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=361): time 4.428e-06/1.025, allocations: 3.938 kB / 0.7229 GB, free: 13.1 MB / 0.5607 GB Notification: Performance of matching and sorting (n=403): time 0.03231/1.057, allocations: 17.76 MB / 0.7403 GB, free: 11.27 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.185e-05/1.057, allocations: 94.58 kB / 0.7404 GB, free: 11.16 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006626/1.064, allocations: 5.243 MB / 0.7455 GB, free: 5.941 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0002536/1.064, allocations: 89.7 kB / 0.7456 GB, free: 5.848 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.00327/1.067, allocations: 5.62 MB / 0.7511 GB, free: 200 kB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.1822/1.249, allocations: 1.394 MB / 0.7524 GB, free: 223.7 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002181/1.252, allocations: 1.351 MB / 0.7537 GB, free: 223.7 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 3.206e-05/1.252, allocations: 304.9 kB / 0.754 GB, free: 223.4 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003774/1.255, allocations: 2.975 MB / 0.7569 GB, free: 223.4 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004412/1.26, allocations: 6.011 MB / 0.7628 GB, free: 219.2 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008475/1.268, allocations: 9.662 MB / 0.7723 GB, free: 212 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.808e-05/1.268, allocations: 33.31 kB / 0.7723 GB, free: 212 MB / 0.5763 GB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01326/1.282, allocations: 10.08 MB / 0.7821 GB, free: 208.2 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 5.128e-05/1.282, allocations: 46.78 kB / 0.7822 GB, free: 208.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.353e-05/1.282, allocations: 101 kB / 0.7823 GB, free: 208.2 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002179/1.284, allocations: 0.9435 MB / 0.7832 GB, free: 207.9 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004959/1.289, allocations: 1.635 MB / 0.7848 GB, free: 207.8 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009703/1.299, allocations: 10.2 MB / 0.7947 GB, free: 199.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00425/1.303, allocations: 414.5 kB / 0.7951 GB, free: 199.2 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004225/1.303, allocations: 363.4 kB / 0.7955 GB, free: 198.9 MB / 0.5763 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * 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 (841): * Single equations (assignments): 836 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004916/1.308, allocations: 4.31 MB / 0.7997 GB, free: 195.2 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007799/1.309, allocations: 0.5362 MB / 0.8002 GB, free: 194.7 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009259/1.318, allocations: 6.668 MB / 0.8067 GB, free: 189.1 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-05/1.318, allocations: 19.36 kB / 0.8068 GB, free: 189.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.695e-06/1.318, allocations: 0 / 0.8068 GB, free: 189.1 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00167/1.32, allocations: 1.088 MB / 0.8078 GB, free: 188.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006603/1.321, allocations: 68 kB / 0.8079 GB, free: 188 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00229/1.323, allocations: 236.3 kB / 0.8081 GB, free: 187.9 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004578/1.324, allocations: 282 kB / 0.8084 GB, free: 187.7 MB / 0.5763 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0094/1.333, allocations: 6.205 MB / 0.8144 GB, free: 182.5 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.008969/1.342, allocations: 8.258 MB / 0.8225 GB, free: 175.3 MB / 0.5763 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002478/1.344, allocations: 2.489 MB / 0.8249 GB, free: 173.2 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.003933/1.348, allocations: 3.495 MB / 0.8283 GB, free: 169.8 MB / 0.5763 GB Notification: Performance of Backend: time 4.01e-07/1.348, allocations: 0 / 0.8283 GB, free: 169.8 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.008484/1.357, allocations: 5.994 MB / 0.8342 GB, free: 163.8 MB / 0.5763 GB Notification: Performance of SimCode: time 0.02403/1.381, allocations: 19.81 MB / 0.8535 GB, free: 144 MB / 0.5763 GB Notification: Performance of Templates: time 0.1218/1.503, allocations: 90.81 MB / 0.9422 GB, free: 53.93 MB / 0.5763 GB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_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_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches