Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.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|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001123/0.001123, allocations: 114.4 kB / 17.73 MB, free: 5.359 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.001251/0.001251, allocations: 187.1 kB / 18.66 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.487/1.487, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 55.92 kB / 328.6 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1018, allocations: 46.61 MB / 375.2 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.2734/0.3752, allocations: 15.84 MB / 391 MB, free: 4.039 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01202/0.3873, allocations: 5.395 MB / 396.4 MB, free: 240 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004103/0.3914, allocations: 96.31 kB / 396.5 MB, free: 212 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003681/0.3951, allocations: 1.11 MB / 397.6 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00579/0.4009, allocations: 1.351 MB / 399 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003132/0.4041, allocations: 0.9625 MB / 399.9 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008143/0.4123, allocations: 3.974 MB / 403.9 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006193/0.4185, allocations: 3.553 MB / 407.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00488/0.4234, allocations: 1.889 MB / 409.3 MB, free: 9.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006629/0.4301, allocations: 2.273 MB / 411.6 MB, free: 8.277 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002563/0.4327, allocations: 0.5163 MB / 412.1 MB, free: 8.277 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003999/0.4367, allocations: 0.7337 MB / 412.9 MB, free: 8.172 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001901/0.4386, allocations: 1.285 MB / 414.1 MB, free: 7.164 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004314/0.4429, allocations: 2.257 MB / 416.4 MB, free: 5.492 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01047/0.4534, allocations: 6.884 MB / 423.3 MB, free: 15.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.261e-06/0.4535, allocations: 3.938 kB / 423.3 MB, free: 15.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.4535, allocations: 4 kB / 423.3 MB, free: 15.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002856/0.4538, allocations: 0 / 423.3 MB, free: 15.48 MB / 350.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.01527/0.469, allocations: 4.662 MB / 427.9 MB, free: 10.74 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.368e-05/0.4691, allocations: 8.031 kB / 428 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003477/0.4726, allocations: 0.6636 MB / 428.6 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005857/0.4785, allocations: 2.377 MB / 431 MB, free: 7.637 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002452/0.4788, allocations: 267.2 kB / 431.3 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008298/0.4796, allocations: 348.3 kB / 431.6 MB, free: 7.035 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0113/0.4909, allocations: 4.468 MB / 436.1 MB, free: 2.512 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.986e-05/0.4911, allocations: 4 kB / 436.1 MB, free: 2.508 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000411/0.4915, allocations: 144 kB / 436.2 MB, free: 2.367 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002066/0.4917, allocations: 162.8 kB / 436.4 MB, free: 2.207 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008997/0.5007, allocations: 3.732 MB / 440.1 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03493/0.5357, allocations: 14.31 MB / 454.4 MB, free: 15.73 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00708/0.5429, allocations: 5.366 MB / 459.8 MB, free: 9.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002623/0.5456, allocations: 1.255 MB / 461 MB, free: 8.406 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009686/0.5553, allocations: 3.776 MB / 464.8 MB, free: 4.535 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.633e-05/0.5554, allocations: 51.81 kB / 464.9 MB, free: 4.477 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 6.392e-06/0.5554, allocations: 0 / 464.9 MB, free: 4.477 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.01248/0.5679, allocations: 5.467 MB / 470.3 MB, free: 14.83 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.767e-05/0.568, allocations: 72.72 kB / 470.4 MB, free: 14.75 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004721/0.5728, allocations: 2.094 MB / 472.5 MB, free: 12.62 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003365/0.5731, allocations: 49.7 kB / 472.5 MB, free: 12.57 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001517/0.5747, allocations: 1.657 MB / 474.2 MB, free: 10.89 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007081/0.5754, allocations: 461.4 kB / 474.6 MB, free: 10.43 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007929/0.5762, allocations: 335.2 kB / 475 MB, free: 10.1 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.5763, allocations: 305.1 kB / 475.3 MB, free: 9.797 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001385/0.5777, allocations: 0.7145 MB / 476 MB, free: 9.082 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001976/0.5797, allocations: 1.349 MB / 477.3 MB, free: 7.438 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003694/0.5834, allocations: 2.231 MB / 479.6 MB, free: 4.922 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.93e-05/0.5835, allocations: 7.938 kB / 479.6 MB, free: 4.914 MB / 398.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005346/0.5888, allocations: 2.529 MB / 482.1 MB, free: 2.348 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.422e-05/0.5889, allocations: 15.94 kB / 482.1 MB, free: 2.332 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-05/0.589, allocations: 20.5 kB / 482.1 MB, free: 2.312 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005168/0.5895, allocations: 138.5 kB / 482.3 MB, free: 2.168 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001833/0.5913, allocations: 467.3 kB / 482.7 MB, free: 1.711 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003121/0.5945, allocations: 3.352 MB / 486.1 MB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00202/0.5965, allocations: 107.8 kB / 486.2 MB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002498/0.5968, allocations: 88.11 kB / 486.3 MB, free: 13.89 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * 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.00249/0.5993, allocations: 1.044 MB / 487.3 MB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007647/0.6001, allocations: 221.3 kB / 487.5 MB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00428/0.6043, allocations: 2.177 MB / 489.7 MB, free: 10.38 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-05/0.6044, allocations: 12 kB / 489.7 MB, free: 10.37 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.267e-05/0.6044, allocations: 4 kB / 489.7 MB, free: 10.37 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.844e-05/0.6044, allocations: 11.91 kB / 489.7 MB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01078/0.6152, allocations: 5.156 MB / 494.9 MB, free: 5.059 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.09e-05/0.6153, allocations: 11.92 kB / 494.9 MB, free: 5.047 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001143/0.6164, allocations: 223.7 kB / 495.1 MB, free: 4.828 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008707/0.6173, allocations: 275.5 kB / 495.4 MB, free: 4.547 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001457/0.6175, allocations: 31.98 kB / 495.4 MB, free: 4.516 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008675/0.6262, allocations: 7.79 MB / 0.4914 GB, free: 12.17 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-05/0.6263, allocations: 7.938 kB / 0.4914 GB, free: 12.16 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006007/0.6323, allocations: 3.189 MB / 0.4945 GB, free: 8.879 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001844/0.6342, allocations: 450.4 kB / 0.495 GB, free: 8.418 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001081/0.6353, allocations: 28 kB / 0.495 GB, free: 8.391 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001989/0.6373, allocations: 79.91 kB / 0.4951 GB, free: 8.312 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003164/0.6376, allocations: 92.75 kB / 0.4952 GB, free: 8.219 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/0.6377, allocations: 39.98 kB / 0.4952 GB, free: 8.18 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003655/0.6414, allocations: 1.427 MB / 0.4966 GB, free: 6.734 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.6414, allocations: 4 kB / 0.4966 GB, free: 6.73 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003514/0.6449, allocations: 0.5626 MB / 0.4972 GB, free: 6.168 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.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.000496/0.6455, allocations: 167.2 kB / 0.4973 GB, free: 5.996 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004175/0.6496, allocations: 2.102 MB / 0.4994 GB, free: 3.848 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.785e-06/0.6497, allocations: 0 / 0.4994 GB, free: 3.848 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00244/0.6521, allocations: 1.379 MB / 0.5007 GB, free: 2.418 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004366/0.6565, allocations: 0.5513 MB / 0.5012 GB, free: 1.863 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01446/0.671, allocations: 6.048 MB / 0.5072 GB, free: 11.76 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002709/0.6737, allocations: 2.417 MB / 0.5095 GB, free: 9.305 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001803/0.6756, allocations: 498.5 kB / 0.51 GB, free: 8.816 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004804/0.6761, allocations: 155.4 kB / 0.5101 GB, free: 8.664 MB / 446.1 MB Notification: Performance of SimCode: time 1.092e-06/0.6761, allocations: 0 / 0.5101 GB, free: 8.664 MB / 446.1 MB Notification: Performance of Templates: time 0.05601/0.7321, allocations: 27.12 MB / 0.5366 GB, free: 13.49 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches