Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_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_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001485/0.001485, allocations: 194 kB / 17.38 MB, free: 4.438 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.293/1.293, allocations: 226.6 MB / 244.7 MB, free: 6.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007472/0.0007471, allocations: 96.58 kB / 296.8 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002228/0.0002229, allocations: 4 kB / 356.8 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2113/0.2116, allocations: 51.3 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.02859/0.2402, allocations: 36.68 MB / 444.8 MB, free: 6.879 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02402/0.2643, allocations: 10.37 MB / 455.1 MB, free: 12.49 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008788/0.2731, allocations: 291 kB / 455.4 MB, free: 12.21 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007622/0.2808, allocations: 1.767 MB / 457.2 MB, free: 10.43 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01194/0.2928, allocations: 2.953 MB / 460.1 MB, free: 7.465 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007042/0.2998, allocations: 1.587 MB / 461.7 MB, free: 5.891 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.02032/0.3202, allocations: 14.41 MB / 476.1 MB, free: 7.434 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04593/0.3661, allocations: 23.88 MB / 0.4883 GB, free: 15.41 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01094/0.3771, allocations: 4.924 MB / 0.4931 GB, free: 10.47 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01226/0.3894, allocations: 5.829 MB / 0.4988 GB, free: 4.621 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004883/0.3944, allocations: 0.7812 MB / 0.4996 GB, free: 3.84 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009686/0.4041, allocations: 1.179 MB / 0.5007 GB, free: 2.66 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.007723/0.4119, allocations: 2.511 MB / 0.5032 GB, free: 144 kB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.2271/0.639, allocations: 5.906 MB / 0.5089 GB, free: 27.43 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02188/0.6609, allocations: 22.17 MB / 0.5306 GB, free: 19.37 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.715e-06/0.661, allocations: 0 / 0.5306 GB, free: 19.37 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.661, allocations: 0 / 0.5306 GB, free: 19.37 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0008865/0.6619, allocations: 2.969 kB / 0.5306 GB, free: 19.37 MB / 378.7 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.03303/0.6949, allocations: 12.8 MB / 0.5431 GB, free: 12.91 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.695, allocations: 8.844 kB / 0.5431 GB, free: 12.91 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02985/0.7248, allocations: 6.234 MB / 0.5492 GB, free: 10.45 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01671/0.7416, allocations: 8.034 MB / 0.557 GB, free: 8.184 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009717/0.7426, allocations: 0.932 MB / 0.5579 GB, free: 8.156 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004772/0.7474, allocations: 1.227 MB / 0.5591 GB, free: 7.797 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0438/0.7912, allocations: 18.92 MB / 0.5776 GB, free: 11.7 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004467/0.7917, allocations: 26.58 kB / 0.5776 GB, free: 11.68 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003012/0.7947, allocations: 0.5043 MB / 0.5781 GB, free: 11.58 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006238/0.7953, allocations: 0.6519 MB / 0.5788 GB, free: 10.96 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03593/0.8312, allocations: 16.93 MB / 0.5953 GB, free: 12.32 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1001/0.9313, allocations: 61.57 MB / 0.6554 GB, free: 14.11 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.229/1.16, allocations: 33.44 MB / 0.6881 GB, free: 159.9 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007649/1.168, allocations: 3.835 MB / 0.6918 GB, free: 159.9 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01674/1.185, allocations: 9.117 MB / 0.7007 GB, free: 156.5 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.859e-05/1.185, allocations: 76.78 kB / 0.7008 GB, free: 156.4 MB / 490.7 MB Notification: Performance of pre-optimization done (n=361): time 5.3e-06/1.185, allocations: 1.531 kB / 0.7008 GB, free: 156.4 MB / 490.7 MB Notification: Performance of matching and sorting (n=403): time 0.03494/1.22, allocations: 17.76 MB / 0.7181 GB, free: 148.9 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.632e-05/1.22, allocations: 94.89 kB / 0.7182 GB, free: 148.9 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01127/1.231, allocations: 5.211 MB / 0.7233 GB, free: 146.9 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008577/1.232, allocations: 91.2 kB / 0.7234 GB, free: 146.9 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003476/1.236, allocations: 5.614 MB / 0.7289 GB, free: 142.6 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001698/1.237, allocations: 1.404 MB / 0.7303 GB, free: 141.6 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001027/1.238, allocations: 139.6 kB / 0.7304 GB, free: 141.4 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000591/1.239, allocations: 0.5829 MB / 0.731 GB, free: 140.9 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005113/1.244, allocations: 2.946 MB / 0.7338 GB, free: 138.4 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006219/1.25, allocations: 5.985 MB / 0.7397 GB, free: 131.6 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01059/1.261, allocations: 9.634 MB / 0.7491 GB, free: 121.2 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.813e-05/1.261, allocations: 32 kB / 0.7491 GB, free: 121.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01799/1.279, allocations: 10.03 MB / 0.7589 GB, free: 112.2 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.673e-05/1.279, allocations: 48 kB / 0.759 GB, free: 112.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001738/1.279, allocations: 104 kB / 0.7591 GB, free: 112.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002262/1.282, allocations: 0.9458 MB / 0.76 GB, free: 111.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005927/1.288, allocations: 1.627 MB / 0.7616 GB, free: 109.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009562/1.297, allocations: 9.498 MB / 0.7709 GB, free: 99.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006386/1.304, allocations: 414.9 kB / 0.7713 GB, free: 99.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001438/1.305, allocations: 364 kB / 0.7716 GB, free: 98.84 MB / 490.7 MB 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 (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,62.5%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009169/1.314, allocations: 4.313 MB / 0.7758 GB, free: 94.52 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001377/1.316, allocations: 0.5398 MB / 0.7763 GB, free: 93.97 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01031/1.326, allocations: 6.657 MB / 0.7828 GB, free: 87.27 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.55e-05/1.326, allocations: 41.31 kB / 0.7829 GB, free: 87.23 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.515e-05/1.326, allocations: 12 kB / 0.7829 GB, free: 87.22 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.461e-05/1.326, allocations: 19.92 kB / 0.7829 GB, free: 87.2 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02909/1.355, allocations: 16.24 MB / 0.7988 GB, free: 70.93 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.434e-05/1.355, allocations: 4 kB / 0.7988 GB, free: 70.93 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003078/1.358, allocations: 0.7689 MB / 0.7995 GB, free: 70.16 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002034/1.361, allocations: 0.7923 MB / 0.8003 GB, free: 69.35 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004128/1.361, allocations: 87.92 kB / 0.8004 GB, free: 69.26 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00797/1.369, allocations: 8.656 MB / 0.8088 GB, free: 60.21 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/1.369, allocations: 8.062 kB / 0.8088 GB, free: 60.2 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0133/1.382, allocations: 9.768 MB / 0.8184 GB, free: 50.32 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002893/1.385, allocations: 1.107 MB / 0.8195 GB, free: 49.18 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001446/1.387, allocations: 76 kB / 0.8195 GB, free: 49.11 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003141/1.39, allocations: 227.8 kB / 0.8198 GB, free: 48.89 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006278/1.39, allocations: 278.8 kB / 0.82 GB, free: 48.61 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003317/1.391, allocations: 116 kB / 0.8201 GB, free: 48.5 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006947/1.398, allocations: 3.463 MB / 0.8235 GB, free: 45.06 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.21e-07/1.398, allocations: 4 kB / 0.8235 GB, free: 45.05 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009082/1.407, allocations: 1.944 MB / 0.8254 GB, free: 43.11 MB / 490.7 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,(8,59.4%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001179/1.408, allocations: 269.8 kB / 0.8257 GB, free: 42.85 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01264/1.421, allocations: 7.779 MB / 0.8333 GB, free: 35 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.117e-06/1.421, allocations: 1.875 kB / 0.8333 GB, free: 35 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005846/1.427, allocations: 3.641 MB / 0.8368 GB, free: 31.28 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01195/1.439, allocations: 1.316 MB / 0.8381 GB, free: 29.99 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2611/1.7, allocations: 24.27 MB / 0.8618 GB, free: 144.5 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01364/1.714, allocations: 7.209 MB / 0.8688 GB, free: 143.6 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002271/1.716, allocations: 480.5 kB / 0.8693 GB, free: 143.6 MB / 490.7 MB Notification: Performance of SimCode: time 2.905e-06/1.716, allocations: 0 / 0.8693 GB, free: 143.6 MB / 490.7 MB Notification: Performance of Templates: time 0.9574/2.673, allocations: 472.1 MB / 1.33 GB, free: 72.43 MB / 0.4948 GB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_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_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches