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.001789/0.001789, allocations: 112.5 kB / 17.86 MB, free: 5.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001729/0.001729, allocations: 209.7 kB / 18.79 MB, free: 4.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 227.4 MB / 246.9 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 63.64 kB / 306.9 MB, free: 1.027 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1059, allocations: 50.53 MB / 357.4 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.1864/0.2923, allocations: 16.3 MB / 373.7 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009948/0.3023, allocations: 5.56 MB / 379.3 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003382/0.3057, allocations: 103.8 kB / 379.4 MB, free: 9.344 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003256/0.309, allocations: 0.9808 MB / 380.4 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004332/0.3134, allocations: 1.196 MB / 381.6 MB, free: 8.41 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002372/0.3158, allocations: 0.9085 MB / 382.5 MB, free: 7.914 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005355/0.3212, allocations: 4.133 MB / 386.6 MB, free: 6.062 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003782/0.325, allocations: 3.058 MB / 389.7 MB, free: 4.742 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002607/0.3276, allocations: 1.583 MB / 391.3 MB, free: 4.035 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00324/0.3309, allocations: 2.139 MB / 393.4 MB, free: 3.102 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001009/0.3319, allocations: 315.5 kB / 393.7 MB, free: 3.102 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001942/0.3339, allocations: 0.5578 MB / 394.3 MB, free: 3.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009064/0.3348, allocations: 1.065 MB / 395.3 MB, free: 2.473 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002549/0.3373, allocations: 2.037 MB / 397.4 MB, free: 1.156 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00487/0.3422, allocations: 5.775 MB / 403.2 MB, free: 12.9 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.3422, allocations: 0 / 403.2 MB, free: 12.9 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3423, allocations: 0 / 403.2 MB, free: 12.9 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001472/0.3424, allocations: 0 / 403.2 MB, free: 12.9 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.01089/0.3533, allocations: 4.687 MB / 407.8 MB, free: 9.277 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.3534, allocations: 15.97 kB / 407.9 MB, free: 9.262 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003211/0.3566, allocations: 0.6856 MB / 408.5 MB, free: 8.574 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004599/0.3612, allocations: 2.444 MB / 411 MB, free: 6.113 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002372/0.3615, allocations: 263.7 kB / 411.2 MB, free: 5.855 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007014/0.3622, allocations: 349.8 kB / 411.6 MB, free: 5.516 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009909/0.3721, allocations: 4.471 MB / 416.1 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001222/0.3723, allocations: 7.844 kB / 416.1 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006667/0.3729, allocations: 144 kB / 416.2 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001908/0.3731, allocations: 162.8 kB / 416.4 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007861/0.381, allocations: 3.748 MB / 420.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02591/0.407, allocations: 14.65 MB / 434.8 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00531/0.4123, allocations: 5.622 MB / 440.4 MB, free: 7.559 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002768/0.4151, allocations: 1.571 MB / 441.9 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007513/0.4226, allocations: 4.208 MB / 446.2 MB, free: 1.699 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.164e-05/0.4227, allocations: 51.81 kB / 446.2 MB, free: 1.641 MB / 350.1 MB Notification: Performance of pre-optimization done (n=128): time 3.947e-06/0.4227, allocations: 0 / 446.2 MB, free: 1.641 MB / 350.1 MB Notification: Performance of matching and sorting (n=132): time 0.01069/0.4334, allocations: 5.659 MB / 451.9 MB, free: 11.81 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.628e-05/0.4335, allocations: 76.59 kB / 451.9 MB, free: 11.72 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004009/0.4375, allocations: 2.118 MB / 454.1 MB, free: 9.57 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001947/0.4378, allocations: 45.7 kB / 454.1 MB, free: 9.52 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001188/0.439, allocations: 1.658 MB / 455.8 MB, free: 7.852 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004662/0.4394, allocations: 464.2 kB / 456.2 MB, free: 7.402 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005992/0.44, allocations: 339.1 kB / 456.5 MB, free: 7.066 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.999e-05/0.4401, allocations: 305.1 kB / 456.8 MB, free: 6.766 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001202/0.4414, allocations: 0.734 MB / 457.6 MB, free: 6.031 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001573/0.4429, allocations: 1.36 MB / 458.9 MB, free: 4.387 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002897/0.4458, allocations: 2.253 MB / 461.2 MB, free: 1.852 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-05/0.4459, allocations: 8 kB / 461.2 MB, free: 1.844 MB / 366.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004295/0.4502, allocations: 2.6 MB / 463.8 MB, free: 15.21 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.051e-05/0.4502, allocations: 15.94 kB / 463.8 MB, free: 15.19 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.09e-05/0.4503, allocations: 20 kB / 463.8 MB, free: 15.17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005682/0.4508, allocations: 186.8 kB / 464 MB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001681/0.4525, allocations: 463.2 kB / 464.5 MB, free: 14.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003159/0.4557, allocations: 3.514 MB / 468 MB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001736/0.4575, allocations: 115.7 kB / 468.1 MB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001836/0.4577, allocations: 83.98 kB / 468.2 MB, free: 10.55 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.002/0.4597, allocations: 1.064 MB / 469.2 MB, free: 9.473 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006803/0.4604, allocations: 209.4 kB / 469.4 MB, free: 9.266 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00409/0.4645, allocations: 2.275 MB / 471.7 MB, free: 6.934 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-05/0.4645, allocations: 12 kB / 471.7 MB, free: 6.922 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.511e-05/0.4645, allocations: 4 kB / 471.7 MB, free: 6.918 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.417e-05/0.4645, allocations: 7.969 kB / 471.7 MB, free: 6.91 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009566/0.4741, allocations: 5.294 MB / 477 MB, free: 1.504 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.767e-06/0.4741, allocations: 7.938 kB / 477 MB, free: 1.496 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009763/0.4751, allocations: 223.7 kB / 477.3 MB, free: 1.277 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008426/0.476, allocations: 323.4 kB / 477.6 MB, free: 0.9492 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001074/0.4761, allocations: 27.98 kB / 477.6 MB, free: 0.9219 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00699/0.4831, allocations: 7.558 MB / 485.2 MB, free: 8.836 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.4831, allocations: 0 / 485.2 MB, free: 8.836 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005106/0.4882, allocations: 3.285 MB / 488.5 MB, free: 5.457 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001102/0.4894, allocations: 462.4 kB / 488.9 MB, free: 4.984 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005492/0.4899, allocations: 35.94 kB / 488.9 MB, free: 4.949 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001274/0.4912, allocations: 75.91 kB / 489 MB, free: 4.875 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002234/0.4914, allocations: 92.48 kB / 489.1 MB, free: 4.785 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.622e-05/0.4915, allocations: 36 kB / 489.1 MB, free: 4.75 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00287/0.4944, allocations: 1.447 MB / 490.6 MB, free: 3.285 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4944, allocations: 0 / 490.6 MB, free: 3.285 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002518/0.497, allocations: 0.5741 MB / 491.2 MB, free: 2.711 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.0003933/0.4974, allocations: 171 kB / 491.3 MB, free: 2.535 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003368/0.5007, allocations: 2.137 MB / 493.5 MB, free: 364 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.5008, allocations: 4 kB / 493.5 MB, free: 360 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002061/0.5028, allocations: 1.417 MB / 494.9 MB, free: 14.88 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002942/0.5058, allocations: 0.5393 MB / 495.4 MB, free: 14.36 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01261/0.5184, allocations: 7.655 MB / 0.4913 GB, free: 6.641 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002863/0.5213, allocations: 2.373 MB / 0.4936 GB, free: 4.238 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007884/0.5221, allocations: 171.4 kB / 0.4938 GB, free: 4.07 MB / 414.1 MB Notification: Performance of SimCode: time 9.62e-07/0.5221, allocations: 0 / 0.4938 GB, free: 4.07 MB / 414.1 MB Notification: Performance of Templates: time 0.2512/0.7733, allocations: 100.2 MB / 0.5916 GB, free: 99.24 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