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.001094/0.001094, allocations: 104.5 kB / 17.06 MB, free: 6.016 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.001188/0.001189, allocations: 196 kB / 18 MB, free: 5.094 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.319/1.319, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001118/0.001118, allocations: 43.92 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2529/0.254, allocations: 49.44 MB / 400.3 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.02266/0.2767, allocations: 21.74 MB / 422 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01248/0.2892, allocations: 6.394 MB / 428.4 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00333/0.2926, allocations: 139.4 kB / 428.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004309/0.2969, allocations: 1.494 MB / 430 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006514/0.3035, allocations: 2.058 MB / 432.1 MB, free: 8.855 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003629/0.3072, allocations: 1.282 MB / 433.4 MB, free: 7.574 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008394/0.3156, allocations: 6.533 MB / 439.9 MB, free: 1.016 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007936/0.3235, allocations: 5.583 MB / 445.5 MB, free: 11.35 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004258/0.3278, allocations: 3.006 MB / 448.5 MB, free: 8.332 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005286/0.3331, allocations: 3.565 MB / 452 MB, free: 4.754 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001784/0.3349, allocations: 0.8203 MB / 452.9 MB, free: 3.934 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00292/0.3378, allocations: 1.101 MB / 454 MB, free: 2.832 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002539/0.3404, allocations: 2.022 MB / 456 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00522/0.3456, allocations: 3.539 MB / 459.5 MB, free: 13.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01198/0.3576, allocations: 10.79 MB / 470.3 MB, free: 2.426 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.3576, allocations: 7.938 kB / 470.3 MB, free: 2.418 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3576, allocations: 0 / 470.3 MB, free: 2.418 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003173/0.358, allocations: 0 / 470.3 MB, free: 2.418 MB / 382.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.01948/0.3774, allocations: 6.922 MB / 477.2 MB, free: 11.41 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.3775, allocations: 15.89 kB / 477.3 MB, free: 11.4 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001936/0.3794, allocations: 0.7368 MB / 478 MB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005321/0.3848, allocations: 1.059 MB / 479.1 MB, free: 9.586 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007743/0.3925, allocations: 3.749 MB / 482.8 MB, free: 5.762 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000366/0.3929, allocations: 406.9 kB / 483.2 MB, free: 5.363 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001281/0.3942, allocations: 0.5233 MB / 483.7 MB, free: 4.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01345/0.4077, allocations: 7.056 MB / 490.8 MB, free: 13.71 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001309/0.4078, allocations: 11.89 kB / 490.8 MB, free: 13.7 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005136/0.4084, allocations: 224 kB / 491 MB, free: 13.48 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002435/0.4086, allocations: 262.6 kB / 491.3 MB, free: 13.22 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01196/0.4206, allocations: 5.948 MB / 497.2 MB, free: 7.266 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04485/0.4655, allocations: 22.17 MB / 0.5072 GB, free: 0.5312 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01002/0.4755, allocations: 8.279 MB / 0.5153 GB, free: 7.352 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004337/0.4799, allocations: 2.159 MB / 0.5174 GB, free: 5.191 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01409/0.4941, allocations: 6.168 MB / 0.5234 GB, free: 14.89 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.865e-05/0.4942, allocations: 60.56 kB / 0.5235 GB, free: 14.82 MB / 462.1 MB Notification: Performance of pre-optimization done (n=220): time 5.981e-06/0.4942, allocations: 0 / 0.5235 GB, free: 14.82 MB / 462.1 MB Notification: Performance of matching and sorting (n=240): time 0.02815/0.5224, allocations: 11.04 MB / 0.5343 GB, free: 3.551 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.977e-05/0.5225, allocations: 73.41 kB / 0.5343 GB, free: 3.469 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007358/0.5298, allocations: 3.148 MB / 0.5374 GB, free: 328 kB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002909/0.5301, allocations: 69.7 kB / 0.5375 GB, free: 252 kB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2328/0.7629, allocations: 2.495 MB / 0.5399 GB, free: 126.3 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001005/0.764, allocations: 0.8322 MB / 0.5407 GB, free: 125.7 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001068/0.765, allocations: 0.5534 MB / 0.5413 GB, free: 125.4 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.535e-05/0.7651, allocations: 303.3 kB / 0.5416 GB, free: 125.1 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002171/0.7673, allocations: 1.336 MB / 0.5429 GB, free: 124.6 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002134/0.7694, allocations: 2.345 MB / 0.5451 GB, free: 122.9 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003915/0.7733, allocations: 3.915 MB / 0.549 GB, free: 120.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.337e-05/0.7734, allocations: 11.78 kB / 0.549 GB, free: 120.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.006744/0.7801, allocations: 4.708 MB / 0.5536 GB, free: 118.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.028e-05/0.7802, allocations: 19.34 kB / 0.5536 GB, free: 118.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.88e-05/0.7802, allocations: 30.91 kB / 0.5536 GB, free: 118.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001163/0.7814, allocations: 0.5311 MB / 0.5541 GB, free: 118.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002423/0.7838, allocations: 0.7484 MB / 0.5549 GB, free: 118 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007275/0.7911, allocations: 10.27 MB / 0.5649 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003948/0.7951, allocations: 182.1 kB / 0.5651 GB, free: 109.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004904/0.7956, allocations: 141.4 kB / 0.5652 GB, free: 109.3 MB / 462.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.003763/0.7994, allocations: 1.573 MB / 0.5668 GB, free: 108.4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001112/0.8005, allocations: 345.5 kB / 0.5671 GB, free: 108.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009053/0.8096, allocations: 4.068 MB / 0.5711 GB, free: 104.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.203e-05/0.8097, allocations: 24 kB / 0.5711 GB, free: 104.4 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.202e-05/0.8097, allocations: 8 kB / 0.5711 GB, free: 104.4 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.738e-05/0.8098, allocations: 15.89 kB / 0.5711 GB, free: 104.4 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01691/0.8267, allocations: 8.957 MB / 0.5799 GB, free: 95.31 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.006e-05/0.8267, allocations: 4 kB / 0.5799 GB, free: 95.31 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002446/0.8292, allocations: 403.4 kB / 0.5802 GB, free: 94.91 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002469/0.8317, allocations: 0.7397 MB / 0.581 GB, free: 94.15 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002894/0.832, allocations: 67.97 kB / 0.581 GB, free: 94.09 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01473/0.8467, allocations: 16.75 MB / 0.5974 GB, free: 76.25 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.8468, allocations: 7.938 kB / 0.5974 GB, free: 76.24 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007681/0.8545, allocations: 5.84 MB / 0.6031 GB, free: 70.24 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001718/0.8562, allocations: 0.696 MB / 0.6038 GB, free: 69.52 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004717/0.8567, allocations: 59.98 kB / 0.6038 GB, free: 69.46 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001598/0.8583, allocations: 139.9 kB / 0.604 GB, free: 69.32 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003673/0.8587, allocations: 188.3 kB / 0.6041 GB, free: 69.14 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000133/0.8588, allocations: 76.09 kB / 0.6042 GB, free: 69.07 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002519/0.8613, allocations: 2.126 MB / 0.6063 GB, free: 66.95 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.8614, allocations: 4 kB / 0.6063 GB, free: 66.95 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003012/0.8644, allocations: 0.9915 MB / 0.6073 GB, free: 65.96 MB / 462.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.007667/0.872, allocations: 6.551 MB / 0.6137 GB, free: 59.24 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005709/0.8778, allocations: 4.155 MB / 0.6177 GB, free: 55 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.17e-05/0.8778, allocations: 0 / 0.6177 GB, free: 55 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003488/0.8813, allocations: 2.742 MB / 0.6204 GB, free: 52.16 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004178/0.8855, allocations: 0.9599 MB / 0.6213 GB, free: 51.21 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04843/0.934, allocations: 35.43 MB / 0.6559 GB, free: 14.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002664/0.9367, allocations: 3.406 MB / 0.6593 GB, free: 10.96 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00242/0.9391, allocations: 0.8112 MB / 0.6601 GB, free: 10.15 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002206/0.9413, allocations: 2.108 MB / 0.6621 GB, free: 8.043 MB / 462.1 MB Notification: Performance of SimCode: time 1.002e-06/0.9413, allocations: 0 / 0.6621 GB, free: 8.043 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3314/1.273, allocations: 88.95 MB / 0.749 GB, free: 174 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.63/18.9, allocations: 4.5 kB / 0.749 GB, free: 174 MB / 0.5137 GB (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