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.001181/0.001181, allocations: 112.6 kB / 16.51 MB, free: 6.715 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.001108/0.001108, allocations: 190.5 kB / 17.43 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.241/1.241, allocations: 222.9 MB / 241.1 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001049/0.001049, allocations: 42.22 kB / 300.1 MB, free: 6.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08757/0.08863, allocations: 49.45 MB / 349.5 MB, free: 4.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.1786/0.2673, allocations: 21.44 MB / 371 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009845/0.2772, allocations: 6.33 MB / 377.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002275/0.2795, allocations: 131.3 kB / 377.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002926/0.2824, allocations: 1.279 MB / 378.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005074/0.2875, allocations: 1.866 MB / 380.6 MB, free: 9.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002735/0.2903, allocations: 1.166 MB / 381.7 MB, free: 8.641 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008304/0.2986, allocations: 7.087 MB / 388.8 MB, free: 5.609 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005385/0.304, allocations: 4.668 MB / 393.5 MB, free: 3.645 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003912/0.3079, allocations: 2.504 MB / 396 MB, free: 2.504 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003916/0.3119, allocations: 3.362 MB / 399.4 MB, free: 408 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007729/0.3127, allocations: 498.3 kB / 399.8 MB, free: 408 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001912/0.3146, allocations: 0.7928 MB / 400.6 MB, free: 96 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001483/0.3161, allocations: 1.69 MB / 402.3 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003346/0.3194, allocations: 3.179 MB / 405.5 MB, free: 11.25 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008773/0.3282, allocations: 10.44 MB / 415.9 MB, free: 1.008 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3282, allocations: 0 / 415.9 MB, free: 1.008 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.3282, allocations: 4 kB / 415.9 MB, free: 1.004 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002369/0.3285, allocations: 0 / 415.9 MB, free: 1.004 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: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.0167/0.3452, allocations: 6.914 MB / 422.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.21e-05/0.3453, allocations: 11.97 kB / 422.9 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001089/0.3464, allocations: 0.732 MB / 423.6 MB, free: 9.289 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004826/0.3512, allocations: 1.068 MB / 424.7 MB, free: 8.219 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006697/0.3579, allocations: 3.599 MB / 428.3 MB, free: 4.598 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003344/0.3583, allocations: 417.2 kB / 428.7 MB, free: 4.191 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001024/0.3593, allocations: 0.5307 MB / 429.2 MB, free: 3.664 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01376/0.3731, allocations: 7.062 MB / 436.3 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000119/0.3732, allocations: 19.83 kB / 436.3 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004923/0.3737, allocations: 219.1 kB / 436.5 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002378/0.374, allocations: 258.6 kB / 436.8 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0102/0.3842, allocations: 5.948 MB / 442.7 MB, free: 6.098 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03774/0.4219, allocations: 22.43 MB / 465.1 MB, free: 15.29 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008407/0.4304, allocations: 8.289 MB / 473.4 MB, free: 6.113 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003638/0.434, allocations: 2.182 MB / 475.6 MB, free: 3.926 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01058/0.4446, allocations: 6.173 MB / 481.8 MB, free: 13.69 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.43e-05/0.4447, allocations: 60.5 kB / 481.8 MB, free: 13.62 MB / 398.1 MB Notification: Performance of pre-optimization done (n=220): time 3.196e-06/0.4447, allocations: 0 / 481.8 MB, free: 13.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=240): time 0.02259/0.4673, allocations: 11.03 MB / 492.9 MB, free: 2.363 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.933e-05/0.4674, allocations: 81.39 kB / 492.9 MB, free: 2.27 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004602/0.472, allocations: 3.152 MB / 496.1 MB, free: 15.12 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003003/0.4723, allocations: 65.7 kB / 496.2 MB, free: 15.05 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001761/0.4741, allocations: 2.498 MB / 498.7 MB, free: 12.53 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007852/0.4749, allocations: 0.8291 MB / 499.5 MB, free: 11.71 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008183/0.4757, allocations: 0.5536 MB / 0.4883 GB, free: 11.15 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.377e-05/0.4758, allocations: 309.1 kB / 0.4886 GB, free: 10.84 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002214/0.478, allocations: 1.33 MB / 0.4899 GB, free: 9.512 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002964/0.481, allocations: 2.346 MB / 0.4922 GB, free: 6.719 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005447/0.4865, allocations: 3.928 MB / 0.496 GB, free: 2.316 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.44e-05/0.4865, allocations: 8 kB / 0.4961 GB, free: 2.309 MB / 414.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.007956/0.4945, allocations: 4.702 MB / 0.5006 GB, free: 13.5 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.334e-05/0.4945, allocations: 16 kB / 0.5007 GB, free: 13.48 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-05/0.4946, allocations: 36.03 kB / 0.5007 GB, free: 13.45 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001212/0.4958, allocations: 0.5249 MB / 0.5012 GB, free: 12.9 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002676/0.4985, allocations: 0.7448 MB / 0.5019 GB, free: 12.15 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008299/0.5068, allocations: 9.428 MB / 0.5111 GB, free: 2.059 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003074/0.5099, allocations: 183.7 kB / 0.5113 GB, free: 1.879 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002552/0.5102, allocations: 144 kB / 0.5115 GB, free: 1.738 MB / 430.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.002997/0.5132, allocations: 1.579 MB / 0.513 GB, free: 152 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008677/0.514, allocations: 344 kB / 0.5133 GB, free: 15.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006974/0.521, allocations: 4.053 MB / 0.5173 GB, free: 11.65 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.859e-05/0.5211, allocations: 24 kB / 0.5173 GB, free: 11.63 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.515e-05/0.5211, allocations: 12 kB / 0.5173 GB, free: 11.62 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.143e-05/0.5211, allocations: 15.89 kB / 0.5173 GB, free: 11.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01424/0.5353, allocations: 8.984 MB / 0.5261 GB, free: 2.477 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.063e-05/0.5354, allocations: 8 kB / 0.5261 GB, free: 2.469 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001724/0.5371, allocations: 408 kB / 0.5265 GB, free: 2.07 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001907/0.539, allocations: 0.7325 MB / 0.5272 GB, free: 1.312 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001623/0.5392, allocations: 63.97 kB / 0.5273 GB, free: 1.25 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1852/0.7244, allocations: 15.34 MB / 0.5423 GB, free: 131.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.083e-06/0.7245, allocations: 5.031 kB / 0.5423 GB, free: 131.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0103/0.7348, allocations: 5.84 MB / 0.548 GB, free: 129.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002216/0.737, allocations: 0.6955 MB / 0.5486 GB, free: 128.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005102/0.7375, allocations: 57.89 kB / 0.5487 GB, free: 128.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001636/0.7392, allocations: 134.5 kB / 0.5488 GB, free: 128.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000583/0.7398, allocations: 186.3 kB / 0.549 GB, free: 128.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001794/0.74, allocations: 72.23 kB / 0.5491 GB, free: 128.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004106/0.7441, allocations: 2.123 MB / 0.5511 GB, free: 127.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 3e-07/0.7441, allocations: 0 / 0.5511 GB, free: 127.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004664/0.7488, allocations: 1.003 MB / 0.5521 GB, free: 127.8 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.009192/0.758, allocations: 6.555 MB / 0.5585 GB, free: 124.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006265/0.7642, allocations: 4.13 MB / 0.5626 GB, free: 122.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.353e-06/0.7643, allocations: 3.938 kB / 0.5626 GB, free: 122.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003774/0.7681, allocations: 2.736 MB / 0.5652 GB, free: 121.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00579/0.7739, allocations: 0.9032 MB / 0.5661 GB, free: 120.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06808/0.842, allocations: 45.27 MB / 0.6103 GB, free: 76.66 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002618/0.8446, allocations: 3.407 MB / 0.6137 GB, free: 73.21 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002673/0.8473, allocations: 0.8073 MB / 0.6144 GB, free: 72.41 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002091/0.8494, allocations: 2.1 MB / 0.6165 GB, free: 70.3 MB / 446.1 MB Notification: Performance of SimCode: time 4.71e-07/0.8494, allocations: 4 kB / 0.6165 GB, free: 70.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2539/1.103, allocations: 87.15 MB / 0.7016 GB, free: 149.4 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001667/1.104, allocations: 270.7 kB / 0.7019 GB, free: 149.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.984/5.087, allocations: 2.781 kB / 0.7019 GB, free: 149.1 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