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: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource",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.00118/0.00118, allocations: 107.3 kB / 16.92 MB, free: 5.77 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.001228/0.001228, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.353/1.353, allocations: 222.9 MB / 241.6 MB, free: 15.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001155, allocations: 40.03 kB / 300.7 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0946/0.09578, allocations: 49.46 MB / 350.2 MB, free: 4.316 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01679/0.1126, allocations: 15.88 MB / 366.1 MB, free: 4.355 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1821/0.2948, allocations: 5.369 MB / 371.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003595/0.2984, allocations: 105.5 kB / 371.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003494/0.3019, allocations: 1.112 MB / 372.6 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004153/0.3061, allocations: 1.363 MB / 374 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002044/0.3082, allocations: 0.9428 MB / 375 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004725/0.3129, allocations: 3.946 MB / 378.9 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003777/0.3167, allocations: 3.615 MB / 382.5 MB, free: 8.305 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002965/0.3197, allocations: 1.875 MB / 384.4 MB, free: 7.398 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003256/0.323, allocations: 2.272 MB / 386.7 MB, free: 6.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009233/0.3239, allocations: 0.5162 MB / 387.2 MB, free: 6.34 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001749/0.3256, allocations: 0.752 MB / 387.9 MB, free: 6.266 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009491/0.3266, allocations: 1.29 MB / 389.2 MB, free: 5.504 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002146/0.3288, allocations: 2.254 MB / 391.5 MB, free: 3.992 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005293/0.3341, allocations: 6.83 MB / 398.3 MB, free: 15.57 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.289e-06/0.3341, allocations: 0 / 398.3 MB, free: 15.57 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.3341, allocations: 0 / 398.3 MB, free: 15.57 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000145/0.3343, allocations: 4 kB / 398.3 MB, free: 15.56 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.01123/0.3455, allocations: 4.669 MB / 403 MB, free: 12.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.3456, allocations: 11.89 kB / 403 MB, free: 12.15 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007057/0.3463, allocations: 493.5 kB / 403.5 MB, free: 11.66 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002865/0.3491, allocations: 0.6743 MB / 404.1 MB, free: 10.98 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00406/0.3532, allocations: 2.464 MB / 406.6 MB, free: 8.496 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002926/0.3535, allocations: 267.5 kB / 406.9 MB, free: 8.238 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004772/0.354, allocations: 347.8 kB / 407.2 MB, free: 7.898 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00718/0.3612, allocations: 4.465 MB / 411.7 MB, free: 3.383 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.433e-05/0.3613, allocations: 0 / 411.7 MB, free: 3.383 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003061/0.3616, allocations: 145.8 kB / 411.8 MB, free: 3.242 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001433/0.3617, allocations: 154.8 kB / 412 MB, free: 3.09 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005913/0.3677, allocations: 3.755 MB / 415.7 MB, free: 15.33 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02236/0.39, allocations: 14.49 MB / 430.2 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005556/0.3956, allocations: 5.362 MB / 435.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002038/0.3977, allocations: 1.277 MB / 436.9 MB, free: 9.188 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00646/0.4042, allocations: 3.819 MB / 440.7 MB, free: 5.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.51e-05/0.4043, allocations: 47.81 kB / 440.7 MB, free: 5.266 MB / 350.1 MB Notification: Performance of pre-optimization done (n=128): time 3.997e-06/0.4043, allocations: 7.938 kB / 440.7 MB, free: 5.258 MB / 350.1 MB Notification: Performance of matching and sorting (n=132): time 0.01014/0.4144, allocations: 5.494 MB / 446.2 MB, free: 15.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.015e-05/0.4145, allocations: 64.72 kB / 446.3 MB, free: 15.52 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003764/0.4183, allocations: 2.098 MB / 448.4 MB, free: 13.38 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.422e-05/0.4184, allocations: 49.7 kB / 448.4 MB, free: 13.33 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001135/0.4195, allocations: 1.653 MB / 450.1 MB, free: 11.66 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003772/0.4199, allocations: 471.6 kB / 450.5 MB, free: 11.21 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005258/0.4204, allocations: 339.2 kB / 450.9 MB, free: 10.87 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.4205, allocations: 301.1 kB / 451.2 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001163/0.4217, allocations: 0.7223 MB / 451.9 MB, free: 9.852 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001593/0.4233, allocations: 1.346 MB / 453.2 MB, free: 8.219 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002988/0.4263, allocations: 2.234 MB / 455.5 MB, free: 5.711 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.725e-05/0.4263, allocations: 7.938 kB / 455.5 MB, free: 5.703 MB / 366.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004531/0.4309, allocations: 2.521 MB / 458 MB, free: 3.145 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.674e-05/0.4309, allocations: 12 kB / 458 MB, free: 3.133 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.309e-05/0.431, allocations: 20 kB / 458 MB, free: 3.113 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004536/0.4315, allocations: 143 kB / 458.2 MB, free: 2.965 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001632/0.4331, allocations: 467.2 kB / 458.6 MB, free: 2.508 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00317/0.4363, allocations: 3.361 MB / 462 MB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001916/0.4382, allocations: 107.8 kB / 462.1 MB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001857/0.4384, allocations: 84.09 kB / 462.2 MB, free: 14.69 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.002465/0.4409, allocations: 1.054 MB / 463.2 MB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005946/0.4415, allocations: 213.3 kB / 463.4 MB, free: 13.41 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004033/0.4455, allocations: 2.189 MB / 465.6 MB, free: 11.17 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.436e-05/0.4456, allocations: 15.98 kB / 465.6 MB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.189e-05/0.4456, allocations: 4 kB / 465.6 MB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.839e-05/0.4456, allocations: 15.91 kB / 465.7 MB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009457/0.4551, allocations: 5.184 MB / 470.8 MB, free: 5.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/0.4551, allocations: 0 / 470.8 MB, free: 5.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009577/0.4561, allocations: 223.7 kB / 471.1 MB, free: 5.621 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006965/0.4568, allocations: 279.4 kB / 471.3 MB, free: 5.336 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001042/0.4569, allocations: 27.98 kB / 471.4 MB, free: 5.309 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006816/0.4637, allocations: 7.825 MB / 479.2 MB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.4637, allocations: 7.969 kB / 479.2 MB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004739/0.4685, allocations: 3.181 MB / 482.4 MB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009128/0.4694, allocations: 454.3 kB / 482.8 MB, free: 9.191 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004598/0.4699, allocations: 28 kB / 482.9 MB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001127/0.471, allocations: 67.92 kB / 482.9 MB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001832/0.4712, allocations: 101.1 kB / 483 MB, free: 9 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.979e-05/0.4713, allocations: 35.98 kB / 483.1 MB, free: 8.965 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002274/0.4736, allocations: 1.431 MB / 484.5 MB, free: 7.516 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4736, allocations: 0 / 484.5 MB, free: 7.516 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001972/0.4755, allocations: 0.5626 MB / 485 MB, free: 6.953 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.004779/0.4803, allocations: 3.798 MB / 488.8 MB, free: 3.051 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004458/0.4848, allocations: 2.581 MB / 491.4 MB, free: 436 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.4848, allocations: 288 / 491.4 MB, free: 436 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001881/0.4867, allocations: 1.382 MB / 492.8 MB, free: 15 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002338/0.4891, allocations: 0.5641 MB / 493.4 MB, free: 14.44 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03569/0.5248, allocations: 23.95 MB / 0.5052 GB, free: 4.355 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002523/0.5273, allocations: 2.421 MB / 0.5076 GB, free: 1.902 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001548/0.5289, allocations: 498.5 kB / 0.508 GB, free: 1.414 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001526/0.5304, allocations: 1.296 MB / 0.5093 GB, free: 120 kB / 430.1 MB Notification: Performance of SimCode: time 1.002e-06/0.5304, allocations: 3.938 kB / 0.5093 GB, free: 116 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3012/0.8317, allocations: 52.53 MB / 0.5606 GB, free: 134.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.72/13.55, allocations: 16.81 kB / 0.5606 GB, free: 134.6 MB / 446.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource.fmu > 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