Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|currentController.PI_d.x|currentController.PI_q.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|currentController.PI_d.x|currentController.PI_q.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001118/0.001118, allocations: 96.03 kB / 18.01 MB, free: 5.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001351/0.001351, allocations: 206.8 kB / 18.94 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.501/1.501, allocations: 227.7 MB / 247.4 MB, free: 11.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000295/0.0002952, allocations: 4 kB / 308.4 MB, free: 0.8281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.1347, allocations: 51.53 MB / 359.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.3037/0.4384, allocations: 15.53 MB / 375.5 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01348/0.4519, allocations: 5.469 MB / 380.9 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00342/0.4554, allocations: 100.4 kB / 381 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003768/0.4592, allocations: 0.9813 MB / 382 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005737/0.465, allocations: 1.193 MB / 383.2 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003015/0.468, allocations: 0.9008 MB / 384.1 MB, free: 8.133 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008148/0.4761, allocations: 4.131 MB / 388.2 MB, free: 6.289 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006496/0.4827, allocations: 3.026 MB / 391.3 MB, free: 4.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003892/0.4866, allocations: 1.327 MB / 392.6 MB, free: 4.402 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00487/0.4915, allocations: 1.816 MB / 394.4 MB, free: 3.656 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001666/0.4931, allocations: 203.9 kB / 394.6 MB, free: 3.656 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003573/0.4967, allocations: 459.7 kB / 395 MB, free: 3.574 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002287/0.499, allocations: 0.9003 MB / 395.9 MB, free: 3.152 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005025/0.5041, allocations: 1.856 MB / 397.8 MB, free: 1.887 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006934/0.511, allocations: 5.616 MB / 403.4 MB, free: 13.79 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.511, allocations: 0 / 403.4 MB, free: 13.79 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.428e-06/0.5111, allocations: 2.969 kB / 403.4 MB, free: 13.79 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002006/0.5113, allocations: 7.938 kB / 403.4 MB, free: 13.78 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01117/0.5224, allocations: 3.957 MB / 407.4 MB, free: 11.08 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.202e-05/0.5225, allocations: 8.031 kB / 407.4 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00363/0.5261, allocations: 0.6825 MB / 408.1 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006038/0.5322, allocations: 2.451 MB / 410.5 MB, free: 7.918 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003329/0.5326, allocations: 266.1 kB / 410.8 MB, free: 7.66 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008977/0.5335, allocations: 347.8 kB / 411.1 MB, free: 7.32 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01184/0.5453, allocations: 4.469 MB / 415.6 MB, free: 2.801 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001354/0.5455, allocations: 7.844 kB / 415.6 MB, free: 2.793 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006993/0.5462, allocations: 143.7 kB / 415.7 MB, free: 2.656 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002194/0.5464, allocations: 166.8 kB / 415.9 MB, free: 2.492 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00941/0.5559, allocations: 3.753 MB / 419.7 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03407/0.59, allocations: 14.72 MB / 434.4 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006678/0.5967, allocations: 5.623 MB / 440 MB, free: 9.285 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003316/0.6001, allocations: 1.597 MB / 441.6 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009637/0.6097, allocations: 4.229 MB / 445.8 MB, free: 3.371 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.246e-05/0.6098, allocations: 55.75 kB / 445.9 MB, free: 3.309 MB / 350.1 MB Notification: Performance of pre-optimization done (n=128): time 4.759e-06/0.6099, allocations: 0 / 445.9 MB, free: 3.309 MB / 350.1 MB Notification: Performance of matching and sorting (n=132): time 0.0117/0.6216, allocations: 5.686 MB / 451.6 MB, free: 13.45 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.921e-05/0.6216, allocations: 68.66 kB / 451.6 MB, free: 13.37 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004355/0.626, allocations: 2.111 MB / 453.7 MB, free: 11.23 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001158/0.6261, allocations: 49.7 kB / 453.8 MB, free: 11.17 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001379/0.6275, allocations: 1.665 MB / 455.5 MB, free: 9.496 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004439/0.628, allocations: 466.9 kB / 455.9 MB, free: 9.043 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002332/0.6282, allocations: 145.6 kB / 456.1 MB, free: 8.895 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.6283, allocations: 305.1 kB / 456.4 MB, free: 8.594 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001247/0.6296, allocations: 0.7301 MB / 457.1 MB, free: 7.863 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001683/0.6313, allocations: 1.364 MB / 458.5 MB, free: 6.215 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003113/0.6344, allocations: 2.261 MB / 460.7 MB, free: 3.672 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.089e-05/0.6345, allocations: 4 kB / 460.7 MB, free: 3.668 MB / 366.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004693/0.6392, allocations: 2.6 MB / 463.3 MB, free: 1.031 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.591e-05/0.6392, allocations: 20.03 kB / 463.3 MB, free: 1.012 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.264e-05/0.6393, allocations: 20 kB / 463.4 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005308/0.6398, allocations: 190.4 kB / 463.5 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001593/0.6414, allocations: 455.3 kB / 464 MB, free: 360 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003321/0.6447, allocations: 3.517 MB / 467.5 MB, free: 12.56 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00186/0.6466, allocations: 119.9 kB / 467.6 MB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001886/0.6468, allocations: 83.98 kB / 467.7 MB, free: 12.36 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 92 * 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 (224): * Single equations (assignments): 221 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 2 systems {(1,8,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002248/0.6491, allocations: 1.051 MB / 468.8 MB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006067/0.6497, allocations: 221.3 kB / 469 MB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004124/0.6538, allocations: 2.271 MB / 471.2 MB, free: 8.754 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.631e-05/0.6538, allocations: 16 kB / 471.3 MB, free: 8.738 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.442e-05/0.6539, allocations: 4 kB / 471.3 MB, free: 8.734 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.5e-05/0.6539, allocations: 7.969 kB / 471.3 MB, free: 8.727 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01122/0.6651, allocations: 5.314 MB / 476.6 MB, free: 3.305 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.141e-05/0.6652, allocations: 3.984 kB / 476.6 MB, free: 3.301 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001021/0.6662, allocations: 231.6 kB / 476.8 MB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008972/0.6671, allocations: 323.4 kB / 477.1 MB, free: 2.746 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001134/0.6673, allocations: 27.98 kB / 477.2 MB, free: 2.719 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007646/0.6749, allocations: 7.557 MB / 484.7 MB, free: 10.63 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.6749, allocations: 4 kB / 484.7 MB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005525/0.6805, allocations: 3.296 MB / 488 MB, free: 7.234 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001358/0.6819, allocations: 466.2 kB / 488.5 MB, free: 6.758 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006367/0.6825, allocations: 28 kB / 488.5 MB, free: 6.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001393/0.6839, allocations: 71.92 kB / 488.6 MB, free: 6.66 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000217/0.6841, allocations: 93.17 kB / 488.7 MB, free: 6.566 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.878e-05/0.6842, allocations: 36 kB / 488.7 MB, free: 6.531 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003137/0.6874, allocations: 1.447 MB / 490.1 MB, free: 5.066 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.285e-06/0.6874, allocations: 0 / 490.1 MB, free: 5.066 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002704/0.6901, allocations: 0.5663 MB / 490.7 MB, free: 4.5 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,currentController.PI_d.x,currentController.PI_q.x) * 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 (109): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,8,100.0%), (1,1,100.0%), (1,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000412/0.6905, allocations: 182.6 kB / 490.9 MB, free: 4.316 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003632/0.6942, allocations: 2.147 MB / 493 MB, free: 2.125 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.6942, allocations: 1 kB / 493 MB, free: 2.125 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002216/0.6964, allocations: 1.428 MB / 494.5 MB, free: 0.6445 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003574/0.7, allocations: 0.5257 MB / 495 MB, free: 132 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01377/0.7138, allocations: 7.766 MB / 0.491 GB, free: 8.301 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003425/0.7173, allocations: 2.381 MB / 0.4933 GB, free: 5.891 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008381/0.7181, allocations: 167.4 kB / 0.4935 GB, free: 5.727 MB / 414.1 MB Notification: Performance of SimCode: time 8.91e-07/0.7182, allocations: 0 / 0.4935 GB, free: 5.727 MB / 414.1 MB Notification: Performance of Templates: time 0.3557/1.074, allocations: 99.68 MB / 0.5908 GB, free: 100.5 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches