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.001626/0.001626, allocations: 110.8 kB / 17.29 MB, free: 6.215 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.001855/0.001856, allocations: 197.3 kB / 18.21 MB, free: 5.289 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.397/1.397, allocations: 222.9 MB / 241.9 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009833/0.0009832, allocations: 42.2 kB / 300.8 MB, free: 6.195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09203/0.09303, allocations: 49.44 MB / 350.3 MB, free: 4.742 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01538/0.1084, allocations: 15.69 MB / 365.9 MB, free: 4.965 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1795/0.288, allocations: 5.273 MB / 371.2 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00367/0.2917, allocations: 98.91 kB / 371.3 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003978/0.2957, allocations: 0.9794 MB / 372.3 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004826/0.3006, allocations: 1.213 MB / 373.5 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002418/0.3031, allocations: 0.8671 MB / 374.4 MB, free: 9.848 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005927/0.309, allocations: 4.019 MB / 378.4 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004556/0.3136, allocations: 3.617 MB / 382 MB, free: 8.492 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003217/0.3168, allocations: 1.829 MB / 383.8 MB, free: 7.594 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003732/0.3206, allocations: 2.271 MB / 386.1 MB, free: 6.539 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001278/0.3219, allocations: 0.5172 MB / 386.6 MB, free: 6.539 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002339/0.3242, allocations: 0.7507 MB / 387.4 MB, free: 6.465 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001156/0.3254, allocations: 1.291 MB / 388.7 MB, free: 5.703 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003088/0.3285, allocations: 2.25 MB / 390.9 MB, free: 4.195 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005545/0.334, allocations: 5.798 MB / 396.7 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.3341, allocations: 0 / 396.7 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.3341, allocations: 0 / 396.7 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001871/0.3343, allocations: 6.656 kB / 396.7 MB, free: 0.707 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.01239/0.3467, allocations: 4.655 MB / 401.4 MB, free: 13.57 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.3467, allocations: 10.94 kB / 401.4 MB, free: 13.57 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003438/0.3502, allocations: 0.6753 MB / 402.1 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004873/0.3551, allocations: 2.443 MB / 404.5 MB, free: 10.61 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000237/0.3553, allocations: 266.8 kB / 404.8 MB, free: 10.35 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006962/0.3561, allocations: 343.9 kB / 405.1 MB, free: 10.02 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008209/0.3643, allocations: 4.473 MB / 409.6 MB, free: 5.492 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.817e-05/0.3644, allocations: 3.906 kB / 409.6 MB, free: 5.488 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003125/0.3647, allocations: 143.4 kB / 409.7 MB, free: 5.352 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001573/0.3649, allocations: 162.8 kB / 409.9 MB, free: 5.191 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006482/0.3714, allocations: 3.747 MB / 413.6 MB, free: 1.438 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02433/0.3957, allocations: 14.49 MB / 428.1 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005552/0.4013, allocations: 5.364 MB / 433.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002243/0.4036, allocations: 1.277 MB / 434.8 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007858/0.4115, allocations: 3.822 MB / 438.6 MB, free: 7.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.008e-05/0.4116, allocations: 47.88 kB / 438.6 MB, free: 7.375 MB / 350.1 MB Notification: Performance of pre-optimization done (n=128): time 3.196e-06/0.4116, allocations: 0 / 438.6 MB, free: 7.375 MB / 350.1 MB Notification: Performance of matching and sorting (n=132): time 0.01112/0.4227, allocations: 5.492 MB / 444.1 MB, free: 1.711 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.134e-05/0.4228, allocations: 72.66 kB / 444.2 MB, free: 1.629 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004295/0.4271, allocations: 2.102 MB / 446.3 MB, free: 15.49 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002044/0.4273, allocations: 45.7 kB / 446.3 MB, free: 15.44 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001269/0.4286, allocations: 1.662 MB / 448 MB, free: 13.77 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005288/0.4291, allocations: 462.2 kB / 448.4 MB, free: 13.32 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006557/0.4298, allocations: 335.2 kB / 448.8 MB, free: 12.99 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.4299, allocations: 301.1 kB / 449.1 MB, free: 12.69 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001273/0.4312, allocations: 0.7184 MB / 449.8 MB, free: 11.97 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001683/0.4329, allocations: 1.353 MB / 451.1 MB, free: 10.33 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003009/0.4359, allocations: 2.234 MB / 453.4 MB, free: 7.824 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.022e-05/0.4359, allocations: 4 kB / 453.4 MB, free: 7.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004569/0.4405, allocations: 2.525 MB / 455.9 MB, free: 5.258 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.093e-05/0.4406, allocations: 14.66 kB / 455.9 MB, free: 5.246 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.641e-05/0.4406, allocations: 20 kB / 455.9 MB, free: 5.227 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004105/0.441, allocations: 143 kB / 456.1 MB, free: 5.078 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001685/0.4427, allocations: 463.2 kB / 456.5 MB, free: 4.625 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002732/0.4455, allocations: 3.36 MB / 459.9 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001903/0.4474, allocations: 111.8 kB / 460 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001841/0.4476, allocations: 84 kB / 460.1 MB, free: 0.7969 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.002193/0.4498, allocations: 1.047 MB / 461.1 MB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007122/0.4505, allocations: 213.4 kB / 461.3 MB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004183/0.4547, allocations: 2.185 MB / 463.5 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.171e-05/0.4547, allocations: 16 kB / 463.5 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.957e-05/0.4548, allocations: 4 kB / 463.5 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.922e-05/0.4548, allocations: 15.84 kB / 463.6 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00963/0.4644, allocations: 5.178 MB / 468.7 MB, free: 7.965 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.294e-06/0.4645, allocations: 0 / 468.7 MB, free: 7.965 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001023/0.4655, allocations: 231.7 kB / 469 MB, free: 7.738 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007497/0.4663, allocations: 279.6 kB / 469.2 MB, free: 7.453 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001059/0.4664, allocations: 27.98 kB / 469.3 MB, free: 7.426 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006823/0.4732, allocations: 7.832 MB / 477.1 MB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.4732, allocations: 0 / 477.1 MB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00509/0.4783, allocations: 3.186 MB / 480.3 MB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001298/0.4797, allocations: 450.4 kB / 480.7 MB, free: 11.31 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006763/0.4803, allocations: 31.98 kB / 480.7 MB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001459/0.4818, allocations: 67.92 kB / 480.8 MB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002529/0.4821, allocations: 93.12 kB / 480.9 MB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.059e-05/0.4822, allocations: 35.98 kB / 480.9 MB, free: 11.09 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00285/0.485, allocations: 1.435 MB / 482.4 MB, free: 9.633 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4851, allocations: 0 / 482.4 MB, free: 9.633 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00255/0.4876, allocations: 0.5586 MB / 482.9 MB, free: 9.074 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.000389/0.488, allocations: 174.1 kB / 483.1 MB, free: 8.895 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004818/0.4928, allocations: 2.581 MB / 485.7 MB, free: 6.27 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.043e-06/0.4929, allocations: 0 / 485.7 MB, free: 6.27 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001976/0.4949, allocations: 1.382 MB / 487.1 MB, free: 4.84 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002962/0.4978, allocations: 0.5592 MB / 487.6 MB, free: 4.289 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01296/0.5108, allocations: 7.63 MB / 495.3 MB, free: 12.6 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003028/0.5139, allocations: 2.357 MB / 497.6 MB, free: 10.21 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001027/0.5149, allocations: 175.4 kB / 497.8 MB, free: 10.04 MB / 414.1 MB Notification: Performance of SimCode: time 1.723e-06/0.515, allocations: 0 / 497.8 MB, free: 10.04 MB / 414.1 MB Notification: Performance of Templates: time 0.2748/0.7897, allocations: 99.72 MB / 0.5835 GB, free: 109.8 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