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.001129/0.001129, allocations: 97.27 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001297/0.001297, allocations: 200.1 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.288/1.288, allocations: 227.2 MB / 245.9 MB, free: 10.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002212/0.0002212, allocations: 8 kB / 306.6 MB, free: 1.41 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09079/0.09102, allocations: 51.49 MB / 358.1 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2257/0.3168, allocations: 33.53 MB / 391.6 MB, free: 2.691 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02573/0.3426, allocations: 10.77 MB / 402.4 MB, free: 10.79 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007118/0.3497, allocations: 273.7 kB / 402.7 MB, free: 10.73 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0078/0.3576, allocations: 2.212 MB / 404.9 MB, free: 9.551 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01663/0.3742, allocations: 3.75 MB / 408.6 MB, free: 6.566 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007993/0.3822, allocations: 1.864 MB / 410.5 MB, free: 5.156 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02306/0.4053, allocations: 10.39 MB / 420.9 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03894/0.4443, allocations: 19.91 MB / 440.8 MB, free: 9.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009787/0.4541, allocations: 4.625 MB / 445.4 MB, free: 5.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0134/0.4676, allocations: 5.272 MB / 450.7 MB, free: 15.72 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00467/0.4723, allocations: 0.7734 MB / 451.5 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00767/0.48, allocations: 1.105 MB / 452.6 MB, free: 13.85 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005505/0.4856, allocations: 2.426 MB / 455 MB, free: 11.41 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006582/0.4922, allocations: 2.601 MB / 457.6 MB, free: 8.801 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02644/0.5187, allocations: 22.1 MB / 479.7 MB, free: 2.645 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.5187, allocations: 0 / 479.7 MB, free: 2.645 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.5187, allocations: 0 / 479.7 MB, free: 2.645 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0008913/0.5196, allocations: 0 / 479.7 MB, free: 2.645 MB / 382.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.04394/0.5636, allocations: 12.88 MB / 492.6 MB, free: 5.648 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/0.5636, allocations: 16.03 kB / 492.6 MB, free: 5.633 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03509/0.5987, allocations: 6.122 MB / 498.7 MB, free: 15.48 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0196/0.6184, allocations: 7.946 MB / 0.4948 GB, free: 7.465 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001124/0.6195, allocations: 0.9311 MB / 0.4957 GB, free: 6.531 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005029/0.6246, allocations: 1.226 MB / 0.4969 GB, free: 5.305 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04965/0.6743, allocations: 18.82 MB / 0.5153 GB, free: 2.379 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005687/0.6749, allocations: 23.75 kB / 0.5153 GB, free: 2.355 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003357/0.6782, allocations: 0.5 MB / 0.5158 GB, free: 1.855 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006532/0.6789, allocations: 0.666 MB / 0.5164 GB, free: 1.188 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03749/0.7164, allocations: 16.92 MB / 0.5329 GB, free: 252 kB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4698/1.186, allocations: 61.43 MB / 0.5929 GB, free: 80.46 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01926/1.206, allocations: 33.44 MB / 0.6256 GB, free: 47.73 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01796/1.224, allocations: 9.127 MB / 0.6345 GB, free: 39.39 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.361e-05/1.224, allocations: 73.48 kB / 0.6346 GB, free: 39.31 MB / 446.1 MB Notification: Performance of pre-optimization done (n=371): time 5.611e-06/1.224, allocations: 0 / 0.6346 GB, free: 39.31 MB / 446.1 MB Notification: Performance of matching and sorting (n=413): time 0.03966/1.263, allocations: 18.07 MB / 0.6522 GB, free: 21.14 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.827e-05/1.263, allocations: 102.5 kB / 0.6523 GB, free: 21.03 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008211/1.272, allocations: 5.099 MB / 0.6573 GB, free: 15.95 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007022/1.272, allocations: 93.7 kB / 0.6574 GB, free: 15.85 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002796/1.275, allocations: 5.618 MB / 0.6629 GB, free: 10.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001349/1.277, allocations: 1.428 MB / 0.6643 GB, free: 8.781 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007017/1.277, allocations: 140 kB / 0.6644 GB, free: 8.645 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0004417/1.278, allocations: 0.5914 MB / 0.665 GB, free: 8.047 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004507/1.282, allocations: 2.969 MB / 0.6679 GB, free: 5.074 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006171/1.288, allocations: 5.973 MB / 0.6737 GB, free: 13.67 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007169/1.296, allocations: 4.309 MB / 0.6779 GB, free: 9.34 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001081/1.296, allocations: 31.94 kB / 0.6779 GB, free: 9.309 MB / 462.1 MB Notification: Performance of matching and sorting (n=897) (initialization): time 0.01971/1.316, allocations: 10.08 MB / 0.6878 GB, free: 15.16 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001101/1.316, allocations: 49.09 kB / 0.6878 GB, free: 15.12 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001626/1.316, allocations: 104 kB / 0.6879 GB, free: 15.02 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002639/1.319, allocations: 0.9505 MB / 0.6889 GB, free: 14.05 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006494/1.325, allocations: 1.642 MB / 0.6905 GB, free: 12.41 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01258/1.338, allocations: 9.679 MB / 0.6999 GB, free: 2.312 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005478/1.343, allocations: 419.2 kB / 0.7003 GB, free: 1.902 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001313/1.345, allocations: 367.9 kB / 0.7007 GB, free: 1.543 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 463 * 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 (848): * Single equations (assignments): 843 * 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,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008528/1.353, allocations: 4.301 MB / 0.7049 GB, free: 13.23 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001653/1.355, allocations: 0.5403 MB / 0.7054 GB, free: 12.68 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01396/1.369, allocations: 6.75 MB / 0.712 GB, free: 5.879 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.621e-05/1.369, allocations: 44 kB / 0.712 GB, free: 5.836 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.432e-05/1.369, allocations: 8 kB / 0.712 GB, free: 5.828 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.055e-05/1.369, allocations: 23.91 kB / 0.7121 GB, free: 5.805 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2483/1.617, allocations: 16.36 MB / 0.728 GB, free: 154.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.825e-05/1.617, allocations: 3.969 kB / 0.728 GB, free: 154.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003599/1.621, allocations: 0.7854 MB / 0.7288 GB, free: 154.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002316/1.623, allocations: 0.7852 MB / 0.7296 GB, free: 154.1 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003078/1.623, allocations: 95.22 kB / 0.7297 GB, free: 154 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008938/1.632, allocations: 8.843 MB / 0.7383 GB, free: 147.9 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/1.632, allocations: 9.312 kB / 0.7383 GB, free: 147.9 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01347/1.646, allocations: 10.4 MB / 0.7485 GB, free: 143.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002481/1.648, allocations: 1.109 MB / 0.7496 GB, free: 142.8 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006991/1.649, allocations: 75.47 kB / 0.7496 GB, free: 142.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002146/1.651, allocations: 229.2 kB / 0.7498 GB, free: 142.7 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004864/1.652, allocations: 287.5 kB / 0.7501 GB, free: 142.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002309/1.652, allocations: 122.7 kB / 0.7502 GB, free: 142.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004527/1.657, allocations: 3.378 MB / 0.7535 GB, free: 141.4 MB / 494.1 MB Notification: Performance of sort global known variables: time 3e-07/1.657, allocations: 3.688 kB / 0.7535 GB, free: 141.4 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006539/1.663, allocations: 1.948 MB / 0.7554 GB, free: 141.2 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 (394): * Single equations (assignments): 389 * 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.0007339/1.664, allocations: 275.7 kB / 0.7557 GB, free: 141.1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01118/1.675, allocations: 7.864 MB / 0.7634 GB, free: 136.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.069e-05/1.675, allocations: 0 / 0.7634 GB, free: 136.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00558/1.681, allocations: 3.666 MB / 0.767 GB, free: 133.2 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007414/1.688, allocations: 1.274 MB / 0.7682 GB, free: 132.2 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0376/1.726, allocations: 24.5 MB / 0.7921 GB, free: 109.6 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006634/1.732, allocations: 7.634 MB / 0.7996 GB, free: 103.9 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005952/1.738, allocations: 2.226 MB / 0.8018 GB, free: 101.7 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001119/1.74, allocations: 431.3 kB / 0.8022 GB, free: 101.3 MB / 494.1 MB Notification: Performance of SimCode: time 7.11e-07/1.74, allocations: 0 / 0.8022 GB, free: 101.3 MB / 494.1 MB Notification: Performance of Templates: time 0.1068/1.846, allocations: 73.91 MB / 0.8744 GB, free: 27.92 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","../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