Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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_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_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_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008486/0.0008487, allocations: 97.86 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009211/0.0009213, allocations: 194.6 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.302/1.302, allocations: 227.7 MB / 246.4 MB, free: 11.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002018/0.0002018, allocations: 8 kB / 307.1 MB, free: 1.18 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0803/0.08052, allocations: 51.54 MB / 358.7 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.182/0.2625, allocations: 36.55 MB / 395.2 MB, free: 220 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02221/0.2848, allocations: 10.36 MB / 405.6 MB, free: 8.535 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007278/0.2921, allocations: 286.3 kB / 405.9 MB, free: 8.477 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006831/0.299, allocations: 1.78 MB / 407.6 MB, free: 7.434 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01108/0.3101, allocations: 2.932 MB / 410.6 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006188/0.3163, allocations: 1.588 MB / 412.2 MB, free: 3.902 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02073/0.337, allocations: 14.27 MB / 426.4 MB, free: 8.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04232/0.3794, allocations: 20.1 MB / 446.5 MB, free: 3.969 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008369/0.3878, allocations: 4.944 MB / 451.5 MB, free: 15.01 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01007/0.3979, allocations: 5.833 MB / 457.3 MB, free: 9.152 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002875/0.4008, allocations: 0.7812 MB / 458.1 MB, free: 8.371 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005183/0.406, allocations: 1.168 MB / 459.2 MB, free: 7.203 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003109/0.4091, allocations: 2.511 MB / 461.8 MB, free: 4.684 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004821/0.414, allocations: 2.593 MB / 464.4 MB, free: 2.078 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02329/0.4373, allocations: 22.18 MB / 486.5 MB, free: 11.84 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.792e-06/0.4373, allocations: 0 / 486.5 MB, free: 11.84 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.4374, allocations: 0 / 486.5 MB, free: 11.84 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000789/0.4382, allocations: 4 kB / 486.5 MB, free: 11.83 MB / 398.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.03324/0.4714, allocations: 12.94 MB / 499.5 MB, free: 14.78 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.4714, allocations: 15.95 kB / 499.5 MB, free: 14.76 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0323/0.5038, allocations: 6.22 MB / 0.4939 GB, free: 8.52 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01553/0.5193, allocations: 7.907 MB / 0.5016 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000954/0.5203, allocations: 0.939 MB / 0.5025 GB, free: 15.59 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003476/0.5238, allocations: 1.226 MB / 0.5037 GB, free: 14.37 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03866/0.5625, allocations: 18.92 MB / 0.5222 GB, free: 11.34 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000333/0.5628, allocations: 27.75 kB / 0.5222 GB, free: 11.31 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001921/0.5648, allocations: 0.5078 MB / 0.5227 GB, free: 10.8 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005938/0.5654, allocations: 0.6504 MB / 0.5233 GB, free: 10.15 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.344/0.9094, allocations: 16.92 MB / 0.5399 GB, free: 114.7 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08489/0.9943, allocations: 61.53 MB / 0.6 GB, free: 72.63 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01668/1.011, allocations: 33.44 MB / 0.6326 GB, free: 39.89 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005032/1.016, allocations: 3.832 MB / 0.6364 GB, free: 37.11 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01254/1.029, allocations: 9.128 MB / 0.6453 GB, free: 27.96 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.706e-05/1.029, allocations: 69.41 kB / 0.6453 GB, free: 27.88 MB / 446.1 MB Notification: Performance of pre-optimization done (n=361): time 5.52e-06/1.029, allocations: 0 / 0.6453 GB, free: 27.88 MB / 446.1 MB Notification: Performance of matching and sorting (n=403): time 0.03479/1.064, allocations: 18.62 MB / 0.6635 GB, free: 9.145 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.442e-05/1.064, allocations: 94.58 kB / 0.6636 GB, free: 9.039 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007525/1.071, allocations: 5.214 MB / 0.6687 GB, free: 3.844 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003597/1.072, allocations: 93.7 kB / 0.6688 GB, free: 3.746 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002977/1.075, allocations: 5.62 MB / 0.6743 GB, free: 14.09 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001448/1.076, allocations: 1.408 MB / 0.6757 GB, free: 12.7 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005023/1.076, allocations: 140 kB / 0.6758 GB, free: 12.56 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0004707/1.077, allocations: 0.5796 MB / 0.6764 GB, free: 11.97 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004963/1.082, allocations: 2.945 MB / 0.6792 GB, free: 9.023 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006508/1.088, allocations: 5.988 MB / 0.6851 GB, free: 1.602 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006278/1.095, allocations: 4.278 MB / 0.6893 GB, free: 13.3 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.255e-05/1.095, allocations: 28 kB / 0.6893 GB, free: 13.27 MB / 478.1 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01746/1.112, allocations: 10.04 MB / 0.6991 GB, free: 3.168 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001273/1.112, allocations: 54.64 kB / 0.6991 GB, free: 3.117 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000191/1.113, allocations: 104 kB / 0.6992 GB, free: 3.016 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002875/1.116, allocations: 0.9517 MB / 0.7002 GB, free: 2.051 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006062/1.122, allocations: 1.622 MB / 0.7017 GB, free: 436 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01179/1.133, allocations: 9.503 MB / 0.711 GB, free: 6.508 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005082/1.139, allocations: 415.1 kB / 0.7114 GB, free: 6.102 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009275/1.139, allocations: 359.9 kB / 0.7118 GB, free: 5.75 MB / 494.1 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.007685/1.147, allocations: 4.321 MB / 0.716 GB, free: 1.414 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001269/1.148, allocations: 0.5364 MB / 0.7165 GB, free: 0.8711 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2075/1.356, allocations: 6.665 MB / 0.723 GB, free: 156.1 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.761e-05/1.356, allocations: 41.22 kB / 0.7231 GB, free: 156.1 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.059e-05/1.356, allocations: 12.75 kB / 0.7231 GB, free: 156.1 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.151e-05/1.356, allocations: 20.86 kB / 0.7231 GB, free: 156.1 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02547/1.382, allocations: 16.24 MB / 0.7389 GB, free: 149.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.344e-05/1.382, allocations: 7.75 kB / 0.739 GB, free: 149.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002875/1.384, allocations: 0.7619 MB / 0.7397 GB, free: 149.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001831/1.386, allocations: 0.7926 MB / 0.7405 GB, free: 149.3 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002284/1.387, allocations: 88.59 kB / 0.7406 GB, free: 149.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008034/1.395, allocations: 8.653 MB / 0.749 GB, free: 143.2 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/1.395, allocations: 3.5 kB / 0.749 GB, free: 143.2 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01196/1.407, allocations: 9.76 MB / 0.7585 GB, free: 139.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001841/1.408, allocations: 1.109 MB / 0.7596 GB, free: 138.8 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005969/1.409, allocations: 74.27 kB / 0.7597 GB, free: 138.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001986/1.411, allocations: 233.8 kB / 0.7599 GB, free: 138.7 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000414/1.411, allocations: 277.4 kB / 0.7602 GB, free: 138.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002353/1.412, allocations: 119.6 kB / 0.7603 GB, free: 138.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004462/1.416, allocations: 3.463 MB / 0.7637 GB, free: 137.3 MB / 494.1 MB Notification: Performance of sort global known variables: time 7.91e-07/1.416, allocations: 3.75 kB / 0.7637 GB, free: 137.3 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005442/1.422, allocations: 1.95 MB / 0.7656 GB, free: 135.7 MB / 494.1 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.0004811/1.422, allocations: 275.1 kB / 0.7658 GB, free: 135.5 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009164/1.431, allocations: 7.769 MB / 0.7734 GB, free: 128.6 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/1.431, allocations: 0 / 0.7734 GB, free: 128.6 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004147/1.435, allocations: 3.636 MB / 0.777 GB, free: 125.3 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00529/1.441, allocations: 1.351 MB / 0.7783 GB, free: 124.2 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02963/1.47, allocations: 24.55 MB / 0.8023 GB, free: 100.8 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006696/1.477, allocations: 7.431 MB / 0.8095 GB, free: 93.32 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00603/1.483, allocations: 2.221 MB / 0.8117 GB, free: 91.09 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001182/1.484, allocations: 420.6 kB / 0.8121 GB, free: 90.68 MB / 494.1 MB Notification: Performance of SimCode: time 1.162e-06/1.484, allocations: 0 / 0.8121 GB, free: 90.68 MB / 494.1 MB Notification: Performance of Templates: time 0.1105/1.595, allocations: 74.91 MB / 0.8853 GB, free: 16.31 MB / 494.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches