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.001045/0.001045, allocations: 108.4 kB / 18.34 MB, free: 4.676 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.001004/0.001004, allocations: 186.9 kB / 19.28 MB, free: 3.75 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.311/1.311, allocations: 205.1 MB / 225.2 MB, free: 12.24 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.001243/0.001243, allocations: 47.92 kB / 282.1 MB, free: 2.445 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08129/0.08255, allocations: 46.64 MB / 328.7 MB, free: 3.73 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.01612/0.0987, allocations: 15.83 MB / 344.6 MB, free: 3.824 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009359/0.1081, allocations: 5.397 MB / 350 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002013/0.1102, allocations: 91.62 kB / 350.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002481/0.1127, allocations: 1.118 MB / 351.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003203/0.1159, allocations: 1.343 MB / 352.5 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001883/0.1178, allocations: 0.9587 MB / 353.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004042/0.1219, allocations: 3.982 MB / 357.5 MB, free: 6.879 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003735/0.1256, allocations: 3.552 MB / 361 MB, free: 3.266 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00238/0.128, allocations: 1.869 MB / 362.9 MB, free: 1.391 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00269/0.1307, allocations: 2.273 MB / 365.1 MB, free: 15.11 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006013/0.1313, allocations: 0.5195 MB / 365.7 MB, free: 14.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001198/0.1325, allocations: 0.7419 MB / 366.4 MB, free: 13.85 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001001/0.1335, allocations: 1.289 MB / 367.7 MB, free: 12.55 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001991/0.1355, allocations: 2.244 MB / 369.9 MB, free: 10.3 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005378/0.1409, allocations: 6.889 MB / 376.8 MB, free: 3.391 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.141, allocations: 0 / 376.8 MB, free: 3.391 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.141, allocations: 0 / 376.8 MB, free: 3.391 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.239e-05/0.1411, allocations: 4 kB / 376.8 MB, free: 3.387 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.1464/0.2874, allocations: 4.651 MB / 381.5 MB, free: 49.25 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.2875, allocations: 9.234 kB / 381.5 MB, free: 49.25 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003011/0.2905, allocations: 0.6702 MB / 382.2 MB, free: 49 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004704/0.2952, allocations: 2.382 MB / 384.5 MB, free: 47.7 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001832/0.2954, allocations: 255.8 kB / 384.8 MB, free: 47.59 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009071/0.2963, allocations: 348.1 kB / 385.1 MB, free: 47.47 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008508/0.3049, allocations: 4.464 MB / 389.6 MB, free: 45.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.552e-05/0.305, allocations: 7.312 kB / 389.6 MB, free: 45.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002726/0.3053, allocations: 141.3 kB / 389.7 MB, free: 45.55 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001675/0.3054, allocations: 163.1 kB / 389.9 MB, free: 45.53 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006024/0.3115, allocations: 3.737 MB / 393.6 MB, free: 44.13 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01834/0.3298, allocations: 14.31 MB / 408 MB, free: 33.23 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003665/0.3335, allocations: 5.374 MB / 413.3 MB, free: 27.17 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001536/0.3351, allocations: 1.27 MB / 414.6 MB, free: 25.92 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005748/0.3408, allocations: 3.784 MB / 418.4 MB, free: 22.08 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.241e-05/0.3409, allocations: 47.88 kB / 418.4 MB, free: 22.03 MB / 318.1 MB Notification: Performance of pre-optimization done (n=127): time 3.056e-06/0.3409, allocations: 0 / 418.4 MB, free: 22.03 MB / 318.1 MB Notification: Performance of matching and sorting (n=131): time 0.007632/0.3485, allocations: 5.472 MB / 423.9 MB, free: 16.39 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.419e-05/0.3486, allocations: 64.72 kB / 424 MB, free: 16.31 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002229/0.3508, allocations: 2.102 MB / 426.1 MB, free: 14.18 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.532e-05/0.3509, allocations: 45.7 kB / 426.1 MB, free: 14.12 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006445/0.3516, allocations: 1.66 MB / 427.8 MB, free: 12.45 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002115/0.3518, allocations: 457 kB / 428.2 MB, free: 12.01 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000406/0.3522, allocations: 340.4 kB / 428.6 MB, free: 11.67 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.154e-05/0.3522, allocations: 301.1 kB / 428.8 MB, free: 11.38 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009098/0.3532, allocations: 0.7145 MB / 429.6 MB, free: 10.66 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001091/0.3543, allocations: 1.357 MB / 430.9 MB, free: 9.016 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002095/0.3564, allocations: 2.219 MB / 433.1 MB, free: 6.512 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.616e-06/0.3564, allocations: 8 kB / 433.1 MB, free: 6.504 MB / 318.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003138/0.3595, allocations: 2.513 MB / 435.7 MB, free: 3.953 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.341e-05/0.3596, allocations: 23.88 kB / 435.7 MB, free: 3.93 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.799e-05/0.3596, allocations: 23.94 kB / 435.7 MB, free: 3.906 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003391/0.3599, allocations: 139 kB / 435.8 MB, free: 3.762 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001499/0.3614, allocations: 467.3 kB / 436.3 MB, free: 3.305 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001813/0.3633, allocations: 3.356 MB / 439.7 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001435/0.3647, allocations: 115.9 kB / 439.8 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001246/0.3648, allocations: 80 kB / 439.8 MB, free: 15.48 MB / 334.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.001555/0.3664, allocations: 1.055 MB / 440.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003278/0.3667, allocations: 213.3 kB / 441.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00337/0.3701, allocations: 2.181 MB / 443.3 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.241e-05/0.3701, allocations: 16 kB / 443.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.775e-06/0.3702, allocations: 4 kB / 443.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.254e-05/0.3702, allocations: 7.969 kB / 443.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0076/0.3778, allocations: 5.163 MB / 448.5 MB, free: 6.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.925e-06/0.3778, allocations: 0 / 448.5 MB, free: 6.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009865/0.3788, allocations: 227.7 kB / 448.7 MB, free: 6.438 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006622/0.3795, allocations: 275.4 kB / 449 MB, free: 6.156 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.603e-05/0.3796, allocations: 32 kB / 449 MB, free: 6.125 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006266/0.3859, allocations: 7.793 MB / 456.8 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.79e-06/0.3859, allocations: 7.938 kB / 456.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00449/0.3904, allocations: 3.177 MB / 460 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001009/0.3914, allocations: 454.4 kB / 460.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002523/0.3917, allocations: 24 kB / 460.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009602/0.3926, allocations: 75.86 kB / 460.5 MB, free: 9.938 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001919/0.3928, allocations: 104.7 kB / 460.6 MB, free: 9.836 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.857e-05/0.3929, allocations: 32 kB / 460.7 MB, free: 9.805 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001981/0.3949, allocations: 1.431 MB / 462.1 MB, free: 8.355 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3949, allocations: 0 / 462.1 MB, free: 8.355 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001856/0.3968, allocations: 0.5623 MB / 462.6 MB, free: 7.797 MB / 350.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.0002959/0.3971, allocations: 162.7 kB / 462.8 MB, free: 7.633 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003002/0.4001, allocations: 2.095 MB / 464.9 MB, free: 5.492 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.4001, allocations: 0.875 kB / 464.9 MB, free: 5.492 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001848/0.402, allocations: 1.375 MB / 466.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002233/0.4042, allocations: 0.551 MB / 466.8 MB, free: 3.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009345/0.4136, allocations: 6.052 MB / 472.9 MB, free: 13.42 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002098/0.4157, allocations: 2.429 MB / 475.3 MB, free: 10.96 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00163/0.4173, allocations: 498.4 kB / 475.8 MB, free: 10.47 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004114/0.4178, allocations: 151.4 kB / 475.9 MB, free: 10.32 MB / 366.1 MB Notification: Performance of SimCode: time 7.02e-07/0.4178, allocations: 4 kB / 475.9 MB, free: 10.32 MB / 366.1 MB Notification: Performance of Templates: time 0.04591/0.4637, allocations: 26.47 MB / 0.4906 GB, free: 15.85 MB / 398.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 -s gbode -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/jenkins1/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/jenkins1/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