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.001381/0.001381, allocations: 111.8 kB / 16.62 MB, free: 6.812 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.001549/0.001549, allocations: 185.8 kB / 17.55 MB, free: 5.934 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.369/1.369, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001086/0.001086, allocations: 46.42 kB / 300.1 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09498/0.09609, allocations: 49.44 MB / 349.6 MB, free: 4.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01763/0.1137, allocations: 15.7 MB / 365.3 MB, free: 4.895 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1752/0.289, allocations: 5.27 MB / 370.6 MB, free: 9.926 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00325/0.2923, allocations: 99.53 kB / 370.7 MB, free: 9.926 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003638/0.2959, allocations: 0.9805 MB / 371.6 MB, free: 9.926 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003982/0.3, allocations: 1.211 MB / 372.8 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002466/0.3025, allocations: 0.8629 MB / 373.7 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005922/0.3084, allocations: 4.03 MB / 377.7 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004585/0.313, allocations: 3.612 MB / 381.3 MB, free: 8.527 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003372/0.3164, allocations: 1.832 MB / 383.2 MB, free: 7.629 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003589/0.32, allocations: 2.265 MB / 385.4 MB, free: 6.578 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000943/0.321, allocations: 0.5152 MB / 386 MB, free: 6.578 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002344/0.3234, allocations: 0.75 MB / 386.7 MB, free: 6.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009937/0.3244, allocations: 1.295 MB / 388 MB, free: 5.738 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002513/0.3269, allocations: 2.249 MB / 390.3 MB, free: 4.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005645/0.3325, allocations: 6.815 MB / 397.1 MB, free: 15.99 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.3326, allocations: 0 / 397.1 MB, free: 15.99 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3326, allocations: 1.469 kB / 397.1 MB, free: 15.99 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001398/0.3327, allocations: 0 / 397.1 MB, free: 15.99 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.01058/0.3433, allocations: 4.667 MB / 401.7 MB, free: 12.76 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.3434, allocations: 8.031 kB / 401.7 MB, free: 12.75 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003011/0.3464, allocations: 0.6819 MB / 402.4 MB, free: 12.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003927/0.3503, allocations: 2.432 MB / 404.9 MB, free: 9.621 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002149/0.3506, allocations: 271.8 kB / 405.1 MB, free: 9.355 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004981/0.3511, allocations: 342.6 kB / 405.5 MB, free: 9.023 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008312/0.3594, allocations: 4.469 MB / 409.9 MB, free: 4.504 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.868e-05/0.3595, allocations: 11.91 kB / 409.9 MB, free: 4.492 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003214/0.3598, allocations: 139.1 kB / 410.1 MB, free: 4.359 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001617/0.36, allocations: 162.8 kB / 410.2 MB, free: 4.199 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006709/0.3667, allocations: 3.755 MB / 414 MB, free: 448 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02187/0.3886, allocations: 14.48 MB / 428.5 MB, free: 1.648 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005126/0.3938, allocations: 5.357 MB / 433.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001904/0.3957, allocations: 1.277 MB / 435.1 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006444/0.4022, allocations: 3.832 MB / 438.9 MB, free: 6.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.106e-05/0.4022, allocations: 47.88 kB / 439 MB, free: 6.375 MB / 350.1 MB Notification: Performance of pre-optimization done (n=128): time 4.258e-06/0.4022, allocations: 0 / 439 MB, free: 6.375 MB / 350.1 MB Notification: Performance of matching and sorting (n=132): time 0.009369/0.4116, allocations: 5.494 MB / 444.5 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.034e-05/0.4117, allocations: 68.72 kB / 444.5 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002849/0.4145, allocations: 2.102 MB / 446.6 MB, free: 14.5 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.131e-05/0.4146, allocations: 49.7 kB / 446.7 MB, free: 14.44 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001074/0.4157, allocations: 1.66 MB / 448.4 MB, free: 12.77 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003452/0.4161, allocations: 468 kB / 448.8 MB, free: 12.32 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005009/0.4166, allocations: 331.2 kB / 449.1 MB, free: 11.99 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.908e-05/0.4167, allocations: 301.1 kB / 449.4 MB, free: 11.69 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001092/0.4178, allocations: 0.7223 MB / 450.1 MB, free: 10.97 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001512/0.4193, allocations: 1.359 MB / 451.5 MB, free: 9.324 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002734/0.422, allocations: 2.217 MB / 453.7 MB, free: 6.832 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.035e-05/0.4221, allocations: 8 kB / 453.7 MB, free: 6.824 MB / 366.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003841/0.4259, allocations: 2.529 MB / 456.3 MB, free: 4.258 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.542e-05/0.4259, allocations: 12 kB / 456.3 MB, free: 4.246 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.301e-05/0.426, allocations: 20 kB / 456.3 MB, free: 4.227 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000389/0.4264, allocations: 146.7 kB / 456.4 MB, free: 4.074 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00163/0.428, allocations: 463.3 kB / 456.9 MB, free: 3.621 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002585/0.4306, allocations: 3.351 MB / 460.2 MB, free: 15.99 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001468/0.4321, allocations: 111.7 kB / 460.3 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001318/0.4322, allocations: 87.98 kB / 460.4 MB, free: 15.8 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 (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.00163/0.4339, allocations: 1.044 MB / 461.5 MB, free: 14.75 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003284/0.4342, allocations: 217.4 kB / 461.7 MB, free: 14.53 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003511/0.4377, allocations: 2.192 MB / 463.9 MB, free: 12.28 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.748e-06/0.4377, allocations: 12 kB / 463.9 MB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.902e-06/0.4378, allocations: 4 kB / 463.9 MB, free: 12.26 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.359e-05/0.4378, allocations: 11.92 kB / 463.9 MB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007498/0.4453, allocations: 5.173 MB / 469.1 MB, free: 6.969 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.164e-06/0.4453, allocations: 8.25 kB / 469.1 MB, free: 6.961 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001021/0.4463, allocations: 231.6 kB / 469.3 MB, free: 6.734 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006889/0.447, allocations: 269.9 kB / 469.6 MB, free: 6.461 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.829e-05/0.4471, allocations: 40.11 kB / 469.6 MB, free: 6.422 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006492/0.4536, allocations: 7.818 MB / 477.4 MB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.4537, allocations: 3.938 kB / 477.4 MB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004642/0.4583, allocations: 3.193 MB / 480.6 MB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008619/0.4592, allocations: 450.4 kB / 481.1 MB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002803/0.4595, allocations: 32 kB / 481.1 MB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000993/0.4605, allocations: 75.91 kB / 481.2 MB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001911/0.4607, allocations: 93.06 kB / 481.3 MB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.499e-05/0.4608, allocations: 36 kB / 481.3 MB, free: 10.07 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002074/0.4629, allocations: 1.435 MB / 482.7 MB, free: 8.621 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4629, allocations: 0 / 482.7 MB, free: 8.621 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002262/0.4651, allocations: 0.5586 MB / 483.3 MB, free: 8.062 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.0003741/0.4655, allocations: 173.6 kB / 483.5 MB, free: 7.883 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004666/0.4702, allocations: 2.582 MB / 486 MB, free: 5.258 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.4702, allocations: 0 / 486 MB, free: 5.258 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001902/0.4721, allocations: 1.377 MB / 487.4 MB, free: 3.832 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002498/0.4746, allocations: 0.5464 MB / 488 MB, free: 3.293 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01067/0.4853, allocations: 7.615 MB / 495.6 MB, free: 11.62 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002135/0.4875, allocations: 2.413 MB / 498 MB, free: 9.18 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001744/0.4893, allocations: 0.4907 MB / 498.5 MB, free: 8.688 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004299/0.4897, allocations: 155.4 kB / 498.6 MB, free: 8.535 MB / 414.1 MB Notification: Performance of SimCode: time 2.034e-06/0.4897, allocations: 0 / 498.6 MB, free: 8.535 MB / 414.1 MB Notification: Performance of Templates: time 0.04987/0.5396, allocations: 28.52 MB / 0.5148 GB, free: 12.36 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/jenkins/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/jenkins/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