Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001244/0.001244, allocations: 178.8 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.306/1.306, allocations: 205.4 MB / 222.6 MB, free: 9.105 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007447/0.0007447, allocations: 94.28 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003342/0.0003342, allocations: 8 kB / 327 MB, free: 168 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2077/0.208, allocations: 47.57 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.02749/0.2355, allocations: 36.49 MB / 411.1 MB, free: 12.24 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01816/0.2538, allocations: 10.31 MB / 421.4 MB, free: 1.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007373/0.2612, allocations: 251.1 kB / 421.6 MB, free: 1.664 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005821/0.267, allocations: 1.786 MB / 423.4 MB, free: 15.86 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01025/0.2773, allocations: 3.145 MB / 426.6 MB, free: 12.71 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00536/0.2827, allocations: 1.587 MB / 428.1 MB, free: 11.13 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01749/0.3002, allocations: 14.78 MB / 442.9 MB, free: 12.29 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03982/0.34, allocations: 20.29 MB / 463.2 MB, free: 7.898 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008476/0.3486, allocations: 5.142 MB / 468.4 MB, free: 2.738 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009595/0.3582, allocations: 6.125 MB / 474.5 MB, free: 12.59 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003116/0.3613, allocations: 0.793 MB / 475.3 MB, free: 11.79 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005385/0.3667, allocations: 1.156 MB / 476.4 MB, free: 10.64 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004082/0.3708, allocations: 2.678 MB / 479.1 MB, free: 7.949 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005374/0.3762, allocations: 2.679 MB / 481.8 MB, free: 5.258 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3391/0.7154, allocations: 22.56 MB / 0.4925 GB, free: 30.67 MB / 378.8 MB Notification: Performance of FrontEnd - DAE generated: time 7.764e-06/0.7154, allocations: 3.406 kB / 0.4925 GB, free: 30.67 MB / 378.8 MB Notification: Performance of FrontEnd: time 2.214e-06/0.7154, allocations: 0 / 0.4925 GB, free: 30.67 MB / 378.8 MB Notification: Performance of Transformations before backend: time 0.0008218/0.7163, allocations: 0 / 0.4925 GB, free: 30.67 MB / 378.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3597 * Number of variables: 3597 Notification: Performance of Generate backend data structure: time 0.03245/0.7487, allocations: 13.33 MB / 0.5056 GB, free: 26.57 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.7488, allocations: 9.594 kB / 0.5056 GB, free: 26.57 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04773/0.7965, allocations: 9.219 MB / 0.5146 GB, free: 25.12 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01438/0.8109, allocations: 7.547 MB / 0.5219 GB, free: 23.14 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007436/0.8117, allocations: 0.9767 MB / 0.5229 GB, free: 23.11 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004195/0.8159, allocations: 1.273 MB / 0.5241 GB, free: 23.1 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04076/0.8567, allocations: 20.42 MB / 0.5441 GB, free: 13.04 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004348/0.8572, allocations: 27.05 kB / 0.5441 GB, free: 13.01 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002894/0.8601, allocations: 0.5307 MB / 0.5446 GB, free: 12.9 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000537/0.8606, allocations: 0.7439 MB / 0.5453 GB, free: 12.2 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03488/0.8955, allocations: 19.14 MB / 0.564 GB, free: 14.67 MB / 394.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1054/1.001, allocations: 65.21 MB / 0.6277 GB, free: 12.8 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2026/1.204, allocations: 57.21 MB / 0.6836 GB, free: 164.8 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006224/1.21, allocations: 4.187 MB / 0.6877 GB, free: 164.7 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01896/1.229, allocations: 11.69 MB / 0.6991 GB, free: 159.9 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.103e-05/1.229, allocations: 69.97 kB / 0.6992 GB, free: 159.8 MB / 490.8 MB Notification: Performance of pre-optimization done (n=361): time 5.921e-06/1.229, allocations: 3.062 kB / 0.6992 GB, free: 159.8 MB / 490.8 MB Notification: Performance of matching and sorting (n=403): time 0.03653/1.266, allocations: 18.78 MB / 0.7175 GB, free: 152.1 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.373e-05/1.266, allocations: 100.1 kB / 0.7176 GB, free: 152.1 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006736/1.272, allocations: 5.639 MB / 0.7231 GB, free: 150 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000548/1.273, allocations: 88.58 kB / 0.7232 GB, free: 149.9 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002415/1.275, allocations: 6.053 MB / 0.7291 GB, free: 145.3 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001055/1.276, allocations: 1.423 MB / 0.7305 GB, free: 144.3 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003197/1.277, allocations: 156.9 kB / 0.7306 GB, free: 144.1 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0002825/1.277, allocations: 0.621 MB / 0.7312 GB, free: 143.7 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003962/1.281, allocations: 3.113 MB / 0.7343 GB, free: 141.3 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005065/1.286, allocations: 6.86 MB / 0.741 GB, free: 133.2 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005644/1.292, allocations: 4.658 MB / 0.7455 GB, free: 128.8 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.439e-05/1.292, allocations: 36 kB / 0.7456 GB, free: 128.8 MB / 490.8 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.01552/1.307, allocations: 10.96 MB / 0.7563 GB, free: 117.7 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.141e-05/1.307, allocations: 63.95 kB / 0.7563 GB, free: 117.7 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001458/1.308, allocations: 128 kB / 0.7565 GB, free: 117.5 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002203/1.31, allocations: 0.994 MB / 0.7574 GB, free: 116.5 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006064/1.316, allocations: 1.856 MB / 0.7592 GB, free: 114.7 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009108/1.325, allocations: 9.529 MB / 0.7685 GB, free: 104.7 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00605/1.331, allocations: 455.2 kB / 0.769 GB, free: 104.3 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001191/1.332, allocations: 431.6 kB / 0.7694 GB, free: 103.9 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * 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 (958): * Single equations (assignments): 953 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00682/1.339, allocations: 4.507 MB / 0.7738 GB, free: 99.36 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001178/1.34, allocations: 0.5749 MB / 0.7744 GB, free: 98.79 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009476/1.35, allocations: 6.702 MB / 0.7809 GB, free: 92.04 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.412e-05/1.35, allocations: 44 kB / 0.7809 GB, free: 92 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.55e-05/1.35, allocations: 8 kB / 0.781 GB, free: 91.99 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.22e-05/1.35, allocations: 19.92 kB / 0.781 GB, free: 91.97 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02344/1.373, allocations: 16.47 MB / 0.7971 GB, free: 75.46 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.567e-05/1.373, allocations: 4 kB / 0.7971 GB, free: 75.45 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003261/1.377, allocations: 0.7726 MB / 0.7978 GB, free: 74.68 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001995/1.379, allocations: 0.8001 MB / 0.7986 GB, free: 73.86 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003096/1.379, allocations: 87.94 kB / 0.7987 GB, free: 73.78 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007901/1.387, allocations: 8.651 MB / 0.8071 GB, free: 64.72 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/1.387, allocations: 4 kB / 0.8071 GB, free: 64.72 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01243/1.399, allocations: 9.788 MB / 0.8167 GB, free: 54.81 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002329/1.402, allocations: 1.146 MB / 0.8178 GB, free: 53.64 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006212/1.402, allocations: 75.98 kB / 0.8179 GB, free: 53.56 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002344/1.405, allocations: 227.8 kB / 0.8181 GB, free: 53.34 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004852/1.405, allocations: 286.7 kB / 0.8184 GB, free: 53.06 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002252/1.406, allocations: 116 kB / 0.8185 GB, free: 52.95 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.005154/1.411, allocations: 3.699 MB / 0.8221 GB, free: 49.28 MB / 490.8 MB Notification: Performance of sort global known variables: time 1.5e-07/1.411, allocations: 0 / 0.8221 GB, free: 49.28 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.007296/1.418, allocations: 2.049 MB / 0.8241 GB, free: 47.23 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.w,quadraticSpeedDependentTorqueQS.phi) * 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 (384): * Single equations (assignments): 379 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006731/1.419, allocations: 256.9 kB / 0.8243 GB, free: 46.98 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01061/1.429, allocations: 8.187 MB / 0.8323 GB, free: 38.72 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 9.157e-06/1.429, allocations: 0 / 0.8323 GB, free: 38.72 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.004488/1.434, allocations: 3.61 MB / 0.8359 GB, free: 35.03 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006349/1.44, allocations: 1.358 MB / 0.8372 GB, free: 33.7 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2133/1.654, allocations: 25.49 MB / 0.8621 GB, free: 167.1 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007833/1.661, allocations: 7.462 MB / 0.8694 GB, free: 166.2 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002178/1.664, allocations: 0.5093 MB / 0.8699 GB, free: 166.2 MB / 490.8 MB Notification: Performance of SimCode: time 1.212e-06/1.664, allocations: 0 / 0.8699 GB, free: 166.2 MB / 490.8 MB Notification: Performance of Templates: time 0.8335/2.497, allocations: 488.2 MB / 1.347 GB, free: 41.3 MB / 490.8 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches