Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007796/0.0007797, allocations: 97.69 kB / 17.31 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008276/0.0008277, allocations: 178.4 kB / 18.21 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.118/1.118, allocations: 223.3 MB / 242.3 MB, free: 260 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001964/0.0001964, allocations: 11.98 kB / 302.1 MB, free: 6.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06978/0.06999, allocations: 50.41 MB / 352.5 MB, free: 3.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01234/0.08237, allocations: 14.96 MB / 367.5 MB, free: 4.695 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1295/0.2119, allocations: 5.239 MB / 372.7 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002155/0.2141, allocations: 94.94 kB / 372.8 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002118/0.2162, allocations: 0.9695 MB / 373.8 MB, free: 9.793 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002694/0.2189, allocations: 1.217 MB / 375 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001419/0.2203, allocations: 0.8618 MB / 375.8 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003373/0.2237, allocations: 4.071 MB / 379.9 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002802/0.2265, allocations: 3.014 MB / 382.9 MB, free: 8.656 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001546/0.2281, allocations: 1.329 MB / 384.3 MB, free: 8.293 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001746/0.2298, allocations: 1.81 MB / 386.1 MB, free: 7.551 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003105/0.2302, allocations: 203.7 kB / 386.3 MB, free: 7.551 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008901/0.2311, allocations: 435.4 kB / 386.7 MB, free: 7.477 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006392/0.2317, allocations: 0.9064 MB / 387.6 MB, free: 7.051 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001335/0.2331, allocations: 1.845 MB / 389.4 MB, free: 5.855 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00315/0.2362, allocations: 5.592 MB / 395 MB, free: 2.348 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.2362, allocations: 5.25 kB / 395 MB, free: 2.344 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2362, allocations: 0 / 395 MB, free: 2.344 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.421e-05/0.2363, allocations: 0 / 395 MB, free: 2.344 MB / 302.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.006648/0.2429, allocations: 3.934 MB / 399 MB, free: 15.74 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.975e-05/0.243, allocations: 9.281 kB / 399 MB, free: 15.74 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002414/0.2454, allocations: 0.674 MB / 399.7 MB, free: 15.41 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00304/0.2485, allocations: 2.446 MB / 402.1 MB, free: 13.68 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001674/0.2486, allocations: 270 kB / 402.4 MB, free: 13.55 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000402/0.249, allocations: 344.9 kB / 402.7 MB, free: 13.4 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005915/0.255, allocations: 4.473 MB / 407.2 MB, free: 8.879 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.106e-05/0.255, allocations: 11.94 kB / 407.2 MB, free: 8.867 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002687/0.2553, allocations: 136 kB / 407.3 MB, free: 8.734 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001281/0.2554, allocations: 162.8 kB / 407.5 MB, free: 8.574 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005084/0.2605, allocations: 3.751 MB / 411.2 MB, free: 4.816 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01659/0.2771, allocations: 14.55 MB / 425.8 MB, free: 5.961 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004281/0.2814, allocations: 5.366 MB / 431.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00168/0.2831, allocations: 1.285 MB / 432.4 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005046/0.2882, allocations: 3.843 MB / 436.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.513e-05/0.2882, allocations: 43.88 kB / 436.3 MB, free: 10.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=128): time 2.224e-06/0.2882, allocations: 4 kB / 436.3 MB, free: 10.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=132): time 0.007699/0.2959, allocations: 5.516 MB / 441.8 MB, free: 4.973 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.152e-05/0.296, allocations: 64.72 kB / 441.9 MB, free: 4.898 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002325/0.2983, allocations: 2.106 MB / 444 MB, free: 2.758 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.745e-05/0.2984, allocations: 49.7 kB / 444.1 MB, free: 2.703 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008999/0.2993, allocations: 1.653 MB / 445.7 MB, free: 1.039 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002819/0.2996, allocations: 470.3 kB / 446.2 MB, free: 0.582 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001705/0.2998, allocations: 145.6 kB / 446.3 MB, free: 444 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.724e-05/0.2998, allocations: 305.1 kB / 446.6 MB, free: 136 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009839/0.3008, allocations: 0.7261 MB / 447.3 MB, free: 15.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001294/0.3021, allocations: 1.354 MB / 448.7 MB, free: 13.77 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002398/0.3045, allocations: 2.231 MB / 450.9 MB, free: 11.26 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.253e-06/0.3046, allocations: 4 kB / 450.9 MB, free: 11.26 MB / 366.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003188/0.3077, allocations: 2.537 MB / 453.5 MB, free: 8.684 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.305e-05/0.3078, allocations: 16 kB / 453.5 MB, free: 8.668 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.042e-05/0.3078, allocations: 23.98 kB / 453.5 MB, free: 8.645 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003091/0.3081, allocations: 134.9 kB / 453.6 MB, free: 8.504 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001417/0.3096, allocations: 471.2 kB / 454.1 MB, free: 8.043 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001965/0.3115, allocations: 3.078 MB / 457.2 MB, free: 4.703 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001066/0.3126, allocations: 107.8 kB / 457.3 MB, free: 4.598 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001062/0.3127, allocations: 87.98 kB / 457.4 MB, free: 4.512 MB / 366.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 (227): * Single equations (assignments): 224 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001326/0.3141, allocations: 1.044 MB / 458.4 MB, free: 3.457 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002377/0.3143, allocations: 221.3 kB / 458.6 MB, free: 3.238 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003065/0.3174, allocations: 2.192 MB / 460.8 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.047e-05/0.3174, allocations: 16 kB / 460.8 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.3174, allocations: 4 kB / 460.8 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.302e-05/0.3174, allocations: 7.969 kB / 460.8 MB, free: 0.957 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006258/0.3237, allocations: 5.186 MB / 466 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.3237, allocations: 0 / 466 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008865/0.3246, allocations: 231.7 kB / 466.3 MB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006038/0.3252, allocations: 275.4 kB / 466.5 MB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.058e-05/0.3253, allocations: 28 kB / 466.6 MB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005239/0.3305, allocations: 7.152 MB / 473.7 MB, free: 3.445 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.3305, allocations: 4 kB / 473.7 MB, free: 3.441 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003811/0.3344, allocations: 3.187 MB / 476.9 MB, free: 164 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005955/0.335, allocations: 470.4 kB / 477.4 MB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002039/0.3352, allocations: 27.94 kB / 477.4 MB, free: 15.65 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008681/0.3361, allocations: 79.92 kB / 477.5 MB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001422/0.3362, allocations: 85.12 kB / 477.5 MB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.183e-05/0.3363, allocations: 43.98 kB / 477.6 MB, free: 15.45 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001656/0.3379, allocations: 1.427 MB / 479 MB, free: 14 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.338, allocations: 0 / 479 MB, free: 14 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001536/0.3395, allocations: 0.5625 MB / 479.6 MB, free: 13.44 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 (112): * Single equations (assignments): 108 * 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,5,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.0002489/0.3398, allocations: 170.1 kB / 479.7 MB, free: 13.26 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002522/0.3423, allocations: 2.106 MB / 481.8 MB, free: 11.11 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.3423, allocations: 4 kB / 481.8 MB, free: 11.11 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001617/0.3439, allocations: 1.381 MB / 483.2 MB, free: 9.68 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002487/0.3464, allocations: 0.5251 MB / 483.8 MB, free: 9.16 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008369/0.3548, allocations: 7.746 MB / 491.5 MB, free: 1.352 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00174/0.3566, allocations: 2.373 MB / 493.9 MB, free: 14.95 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004574/0.357, allocations: 171.3 kB / 494 MB, free: 14.78 MB / 414.1 MB Notification: Performance of SimCode: time 2.3e-07/0.357, allocations: 0 / 494 MB, free: 14.78 MB / 414.1 MB Notification: Performance of Templates: time 0.1989/0.5559, allocations: 99.18 MB / 0.5793 GB, free: 115.1 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches