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.0009897/0.0009896, allocations: 92.75 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001041/0.001041, allocations: 197.9 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.401/1.401, allocations: 227.7 MB / 246.8 MB, free: 9.766 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002045/0.0002046, allocations: 8 kB / 307.8 MB, free: 0.582 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08957/0.08979, allocations: 51.53 MB / 359.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.1846/0.2745, allocations: 15.53 MB / 374.8 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01096/0.2855, allocations: 5.463 MB / 380.3 MB, free: 9.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003464/0.289, allocations: 101.5 kB / 380.4 MB, free: 9.293 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003668/0.2927, allocations: 0.9778 MB / 381.4 MB, free: 9.016 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00466/0.2974, allocations: 1.187 MB / 382.5 MB, free: 8.539 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002476/0.2999, allocations: 0.8987 MB / 383.4 MB, free: 8.051 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006306/0.3062, allocations: 4.134 MB / 387.6 MB, free: 6.191 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004981/0.3112, allocations: 3.014 MB / 390.6 MB, free: 4.891 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002731/0.314, allocations: 1.337 MB / 391.9 MB, free: 4.305 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003433/0.3174, allocations: 1.819 MB / 393.8 MB, free: 3.555 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009775/0.3184, allocations: 203.6 kB / 394 MB, free: 3.555 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002401/0.3208, allocations: 461.8 kB / 394.4 MB, free: 3.473 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000955/0.3218, allocations: 0.9018 MB / 395.3 MB, free: 3.047 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00262/0.3244, allocations: 1.846 MB / 397.2 MB, free: 1.816 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006375/0.3308, allocations: 6.476 MB / 403.6 MB, free: 13.14 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.3308, allocations: 0 / 403.6 MB, free: 13.14 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.3309, allocations: 0 / 403.6 MB, free: 13.14 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001755/0.331, allocations: 2.688 kB / 403.6 MB, free: 13.14 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.009967/0.341, allocations: 3.953 MB / 407.6 MB, free: 10.3 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.3411, allocations: 11.97 kB / 407.6 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003602/0.3447, allocations: 0.682 MB / 408.3 MB, free: 9.609 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004962/0.3497, allocations: 2.447 MB / 410.7 MB, free: 7.145 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003231/0.35, allocations: 270.3 kB / 411 MB, free: 6.883 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001065/0.3511, allocations: 354.4 kB / 411.3 MB, free: 6.539 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009383/0.3605, allocations: 4.465 MB / 415.8 MB, free: 2.023 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.129e-05/0.3606, allocations: 3.906 kB / 415.8 MB, free: 2.02 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003217/0.3609, allocations: 140 kB / 415.9 MB, free: 1.883 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001577/0.3611, allocations: 170.7 kB / 416.1 MB, free: 1.715 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007257/0.3684, allocations: 3.756 MB / 419.9 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02574/0.3941, allocations: 14.73 MB / 434.6 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005377/0.3995, allocations: 5.616 MB / 440.2 MB, free: 8.504 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00304/0.4026, allocations: 1.602 MB / 441.8 MB, free: 6.898 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006969/0.4096, allocations: 4.223 MB / 446 MB, free: 2.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.028e-05/0.4097, allocations: 51.81 kB / 446.1 MB, free: 2.531 MB / 350.1 MB Notification: Performance of pre-optimization done (n=128): time 3.296e-06/0.4097, allocations: 0 / 446.1 MB, free: 2.531 MB / 350.1 MB Notification: Performance of matching and sorting (n=132): time 0.01094/0.4206, allocations: 5.683 MB / 451.8 MB, free: 12.68 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.549e-05/0.4207, allocations: 76.59 kB / 451.8 MB, free: 12.59 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003215/0.424, allocations: 2.118 MB / 454 MB, free: 10.44 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001137/0.4241, allocations: 45.7 kB / 454 MB, free: 10.39 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001121/0.4252, allocations: 1.659 MB / 455.7 MB, free: 8.719 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000428/0.4257, allocations: 465.1 kB / 456.1 MB, free: 8.27 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002128/0.4259, allocations: 149.6 kB / 456.3 MB, free: 8.117 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.426, allocations: 305.1 kB / 456.6 MB, free: 7.816 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001181/0.4272, allocations: 0.7339 MB / 457.3 MB, free: 7.082 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001564/0.4287, allocations: 1.368 MB / 458.7 MB, free: 5.43 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002878/0.4316, allocations: 2.257 MB / 460.9 MB, free: 2.891 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-05/0.4317, allocations: 4 kB / 460.9 MB, free: 2.887 MB / 366.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004225/0.4359, allocations: 2.596 MB / 463.5 MB, free: 260 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.019e-05/0.4359, allocations: 20.48 kB / 463.5 MB, free: 240 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.398e-05/0.436, allocations: 20 kB / 463.6 MB, free: 220 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004921/0.4365, allocations: 194.4 kB / 463.8 MB, free: 16 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001644/0.4381, allocations: 463.2 kB / 464.2 MB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003277/0.4414, allocations: 3.513 MB / 467.7 MB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001823/0.4433, allocations: 115.9 kB / 467.8 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002455/0.4435, allocations: 84 kB / 467.9 MB, free: 11.58 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.002144/0.4457, allocations: 1.059 MB / 469 MB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005302/0.4462, allocations: 217.3 kB / 469.2 MB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003903/0.4501, allocations: 2.271 MB / 471.5 MB, free: 7.969 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.607e-05/0.4502, allocations: 16 kB / 471.5 MB, free: 7.953 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.752e-05/0.4502, allocations: 4 kB / 471.5 MB, free: 7.949 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.588e-05/0.4502, allocations: 3.984 kB / 471.5 MB, free: 7.945 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009677/0.4599, allocations: 5.315 MB / 476.8 MB, free: 2.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.348e-06/0.4599, allocations: 0 / 476.8 MB, free: 2.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001026/0.461, allocations: 223.7 kB / 477 MB, free: 2.301 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008911/0.4619, allocations: 323.5 kB / 477.3 MB, free: 1.973 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001053/0.462, allocations: 35.98 kB / 477.4 MB, free: 1.938 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007327/0.4693, allocations: 7.558 MB / 484.9 MB, free: 9.852 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.4694, allocations: 4 kB / 484.9 MB, free: 9.848 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005467/0.4748, allocations: 3.293 MB / 488.2 MB, free: 6.461 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001283/0.4762, allocations: 466.2 kB / 488.7 MB, free: 5.984 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000544/0.4767, allocations: 31.98 kB / 488.7 MB, free: 5.953 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001293/0.478, allocations: 71.92 kB / 488.8 MB, free: 5.883 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002156/0.4782, allocations: 93.12 kB / 488.9 MB, free: 5.789 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.974e-05/0.4783, allocations: 39.98 kB / 488.9 MB, free: 5.75 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002818/0.4812, allocations: 1.443 MB / 490.3 MB, free: 4.289 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4812, allocations: 0 / 490.3 MB, free: 4.289 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002509/0.4837, allocations: 0.5664 MB / 490.9 MB, free: 3.723 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.0004418/0.4842, allocations: 182.2 kB / 491.1 MB, free: 3.539 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003715/0.4879, allocations: 2.151 MB / 493.2 MB, free: 1.344 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.4879, allocations: 0 / 493.2 MB, free: 1.344 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002152/0.4901, allocations: 1.421 MB / 494.7 MB, free: 15.87 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003783/0.4939, allocations: 0.5282 MB / 495.2 MB, free: 15.35 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01217/0.5061, allocations: 7.744 MB / 0.4911 GB, free: 7.543 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002931/0.509, allocations: 2.418 MB / 0.4935 GB, free: 5.094 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001951/0.511, allocations: 494.6 kB / 0.494 GB, free: 4.609 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006071/0.5116, allocations: 155.4 kB / 0.4941 GB, free: 4.457 MB / 414.1 MB Notification: Performance of SimCode: time 1.783e-06/0.5116, allocations: 3.938 kB / 0.4941 GB, free: 4.453 MB / 414.1 MB Notification: Performance of Templates: time 0.04934/0.561, allocations: 27.75 MB / 0.5212 GB, free: 8.977 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/jenkins/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/jenkins/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