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_Inverter.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: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001201/0.001201, allocations: 109.1 kB / 16.62 MB, free: 6.961 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.001194/0.001194, allocations: 189.8 kB / 17.55 MB, free: 6.066 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.379/1.379, allocations: 222.9 MB / 241.2 MB, free: 13.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 46.52 kB / 300.3 MB, free: 5.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1026, allocations: 49.45 MB / 349.7 MB, free: 4.422 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.2263/0.329, allocations: 21.44 MB / 371.1 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01791/0.3469, allocations: 6.288 MB / 377.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006699/0.3537, allocations: 134.2 kB / 377.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005922/0.3596, allocations: 1.282 MB / 378.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01003/0.3697, allocations: 1.849 MB / 380.7 MB, free: 9.293 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003317/0.3731, allocations: 1.173 MB / 381.9 MB, free: 8.605 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008477/0.3816, allocations: 6.604 MB / 388.5 MB, free: 5.457 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006327/0.3879, allocations: 5.584 MB / 394.1 MB, free: 3.172 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004701/0.3926, allocations: 2.921 MB / 397 MB, free: 1.742 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00394/0.3966, allocations: 3.576 MB / 400.5 MB, free: 15.7 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008559/0.3974, allocations: 0.8144 MB / 401.4 MB, free: 15.66 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002184/0.3996, allocations: 1.103 MB / 402.5 MB, free: 14.57 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001665/0.4013, allocations: 2.028 MB / 404.5 MB, free: 12.57 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003687/0.405, allocations: 3.53 MB / 408 MB, free: 9.039 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0123/0.4173, allocations: 10.68 MB / 418.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.663e-06/0.4174, allocations: 0 / 418.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.4174, allocations: 0 / 418.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002727/0.4177, allocations: 0 / 418.7 MB, free: 14.55 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01653/0.4342, allocations: 6.918 MB / 425.6 MB, free: 7.586 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.991e-05/0.4343, allocations: 19.89 kB / 425.6 MB, free: 7.566 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009906/0.4353, allocations: 0.7303 MB / 426.4 MB, free: 6.832 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004724/0.44, allocations: 1.062 MB / 427.4 MB, free: 5.766 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006672/0.4467, allocations: 3.603 MB / 431 MB, free: 2.141 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003545/0.4471, allocations: 421.2 kB / 431.5 MB, free: 1.73 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001087/0.4482, allocations: 0.526 MB / 432 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01496/0.4631, allocations: 7.05 MB / 439 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001481/0.4633, allocations: 23.81 kB / 439.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005602/0.4639, allocations: 218 kB / 439.3 MB, free: 9.863 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002656/0.4642, allocations: 262.6 kB / 439.5 MB, free: 9.605 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01412/0.4783, allocations: 5.948 MB / 445.5 MB, free: 3.648 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04892/0.5273, allocations: 22.44 MB / 467.9 MB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009824/0.5371, allocations: 8.274 MB / 476.2 MB, free: 3.652 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004339/0.5415, allocations: 2.187 MB / 478.4 MB, free: 1.461 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0123/0.5538, allocations: 6.179 MB / 484.5 MB, free: 11.22 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.583e-05/0.5539, allocations: 60.56 kB / 484.6 MB, free: 11.16 MB / 398.1 MB Notification: Performance of pre-optimization done (n=220): time 3.416e-06/0.5539, allocations: 0 / 484.6 MB, free: 11.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=240): time 0.02238/0.5763, allocations: 11.03 MB / 495.6 MB, free: 15.9 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.563e-05/0.5764, allocations: 77.41 kB / 495.7 MB, free: 15.81 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005272/0.5817, allocations: 3.152 MB / 498.9 MB, free: 12.66 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001772/0.5819, allocations: 69.64 kB / 498.9 MB, free: 12.59 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001727/0.5836, allocations: 2.506 MB / 0.4897 GB, free: 10.06 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007416/0.5843, allocations: 0.8192 MB / 0.4905 GB, free: 9.25 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009438/0.5853, allocations: 0.5614 MB / 0.491 GB, free: 8.68 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.837e-05/0.5854, allocations: 301.1 kB / 0.4913 GB, free: 8.383 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002208/0.5876, allocations: 1.337 MB / 0.4926 GB, free: 7.043 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002893/0.5905, allocations: 2.339 MB / 0.4949 GB, free: 4.258 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005353/0.5959, allocations: 3.921 MB / 0.4987 GB, free: 15.86 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.022e-05/0.5959, allocations: 12 kB / 0.4988 GB, free: 15.85 MB / 430.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.007964/0.6039, allocations: 4.697 MB / 0.5033 GB, free: 11.04 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.141e-05/0.604, allocations: 26.95 kB / 0.5034 GB, free: 11.02 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.938e-05/0.604, allocations: 32 kB / 0.5034 GB, free: 10.99 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001223/0.6053, allocations: 0.5255 MB / 0.5039 GB, free: 10.44 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002703/0.608, allocations: 0.7449 MB / 0.5046 GB, free: 9.695 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009606/0.6176, allocations: 10.29 MB / 0.5147 GB, free: 14.72 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002758/0.6204, allocations: 179.8 kB / 0.5149 GB, free: 14.54 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003317/0.6207, allocations: 143.9 kB / 0.515 GB, free: 14.4 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * 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 (380): * Single equations (assignments): 373 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 5 systems {(3,12,100.0%), (1,3,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003226/0.624, allocations: 1.576 MB / 0.5165 GB, free: 12.82 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001028/0.625, allocations: 351.7 kB / 0.5169 GB, free: 12.47 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007194/0.6322, allocations: 4.046 MB / 0.5208 GB, free: 8.32 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.584e-05/0.6322, allocations: 27.94 kB / 0.5208 GB, free: 8.293 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.877e-05/0.6323, allocations: 8 kB / 0.5209 GB, free: 8.285 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.368e-05/0.6323, allocations: 11.95 kB / 0.5209 GB, free: 8.273 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.223/0.8553, allocations: 8.987 MB / 0.5296 GB, free: 140.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.391e-05/0.8554, allocations: 6.141 kB / 0.5296 GB, free: 140.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002333/0.8577, allocations: 405.2 kB / 0.53 GB, free: 140.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002313/0.86, allocations: 0.7354 MB / 0.5307 GB, free: 140.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003177/0.8604, allocations: 67.44 kB / 0.5308 GB, free: 140.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01388/0.8743, allocations: 16.76 MB / 0.5472 GB, free: 127.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.074e-06/0.8743, allocations: 9.25 kB / 0.5472 GB, free: 127.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009552/0.8839, allocations: 5.838 MB / 0.5529 GB, free: 125.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002128/0.886, allocations: 0.696 MB / 0.5536 GB, free: 124.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008944/0.8869, allocations: 64.34 kB / 0.5536 GB, free: 124.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00196/0.8889, allocations: 137.1 kB / 0.5538 GB, free: 124.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005569/0.8895, allocations: 185.7 kB / 0.5539 GB, free: 124.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001653/0.8896, allocations: 74.31 kB / 0.554 GB, free: 124.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00331/0.8929, allocations: 2.121 MB / 0.5561 GB, free: 124 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.893, allocations: 0 / 0.5561 GB, free: 124 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003763/0.8967, allocations: 0.9932 MB / 0.5571 GB, free: 123.9 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * 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 (201): * Single equations (assignments): 193 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,12,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00853/0.9053, allocations: 6.557 MB / 0.5635 GB, free: 120.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01064/0.9159, allocations: 5.722 MB / 0.569 GB, free: 118.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.195e-06/0.916, allocations: 0 / 0.569 GB, free: 118.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003721/0.9197, allocations: 2.746 MB / 0.5717 GB, free: 117.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00418/0.9239, allocations: 0.9518 MB / 0.5727 GB, free: 116.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06326/0.9872, allocations: 45.26 MB / 0.6169 GB, free: 70.57 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002706/0.9899, allocations: 3.415 MB / 0.6202 GB, free: 67.11 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002829/0.9928, allocations: 0.8034 MB / 0.621 GB, free: 66.31 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002185/0.995, allocations: 2.104 MB / 0.623 GB, free: 64.2 MB / 446.1 MB Notification: Performance of SimCode: time 1.964e-06/0.995, allocations: 0 / 0.623 GB, free: 64.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3458/1.341, allocations: 89.13 MB / 0.7101 GB, free: 141.9 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001807/1.341, allocations: 276.3 kB / 0.7103 GB, free: 141.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.466/5.807, allocations: 0 / 0.7103 GB, free: 141.5 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches