Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008523/0.0008523, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001232/0.001232, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8684/0.8684, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_1_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_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.407e-05/1.569e-05, allocations: 2.281 kB / 324.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.01557/0.01558, allocations: 19.39 MB / 344 MB, free: 12.43 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01144/0.02702, allocations: 6.383 MB / 350.4 MB, free: 6.027 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00314/0.03016, allocations: 178.9 kB / 350.5 MB, free: 5.852 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002934/0.03309, allocations: 1.517 MB / 352.1 MB, free: 4.324 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004586/0.03768, allocations: 2.189 MB / 354.3 MB, free: 2.121 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002171/0.03985, allocations: 1.321 MB / 355.6 MB, free: 0.8008 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.006396/0.04624, allocations: 6.862 MB / 362.4 MB, free: 9.91 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003752/0.05, allocations: 3.014 MB / 365.4 MB, free: 6.812 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005245/0.05524, allocations: 4.55 MB / 370 MB, free: 2.254 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002668/0.05791, allocations: 3.024 MB / 373 MB, free: 15.22 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006086/0.05852, allocations: 0.8203 MB / 373.8 MB, free: 14.4 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001241/0.05976, allocations: 1.113 MB / 375 MB, free: 13.29 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001107/0.06087, allocations: 2.092 MB / 377 MB, free: 11.19 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001704/0.06257, allocations: 2.409 MB / 379.5 MB, free: 8.777 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006494/0.06906, allocations: 10.96 MB / 390.4 MB, free: 13.78 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.06907, allocations: 0 / 390.4 MB, free: 13.78 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.06907, allocations: 0 / 390.4 MB, free: 13.78 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.799e-05/0.06915, allocations: 0 / 390.4 MB, free: 13.78 MB / 362.7 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.008396/0.07754, allocations: 6.972 MB / 397.4 MB, free: 6.738 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.07758, allocations: 8.031 kB / 397.4 MB, free: 6.73 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006343/0.07822, allocations: 0.7328 MB / 398.1 MB, free: 5.988 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002402/0.08062, allocations: 1.086 MB / 399.2 MB, free: 4.898 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004188/0.08481, allocations: 3.676 MB / 402.9 MB, free: 1.152 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002129/0.08502, allocations: 403.1 kB / 403.3 MB, free: 0.7578 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005174/0.08554, allocations: 0.5198 MB / 403.8 MB, free: 244 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007948/0.09349, allocations: 7.297 MB / 411.1 MB, free: 8.812 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.552e-05/0.09357, allocations: 15.89 kB / 411.1 MB, free: 8.797 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000347/0.09392, allocations: 220 kB / 411.3 MB, free: 8.582 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001744/0.09409, allocations: 262.6 kB / 411.6 MB, free: 8.324 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006702/0.1008, allocations: 5.94 MB / 417.5 MB, free: 2.375 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02117/0.122, allocations: 19.95 MB / 437.5 MB, free: 13.88 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004217/0.1262, allocations: 3.73 MB / 441.2 MB, free: 10.34 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00231/0.1285, allocations: 2.108 MB / 443.3 MB, free: 8.223 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007077/0.1356, allocations: 5.271 MB / 448.6 MB, free: 2.918 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.722e-05/0.1356, allocations: 56.56 kB / 448.7 MB, free: 2.855 MB / 410.7 MB Notification: Performance of pre-optimization done (n=220): time 4.278e-06/0.1356, allocations: 0 / 448.7 MB, free: 2.855 MB / 410.7 MB Notification: Performance of matching and sorting (n=240): time 0.2446/0.3803, allocations: 10.23 MB / 458.9 MB, free: 109.1 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.48e-05/0.3803, allocations: 79.42 kB / 459 MB, free: 109 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00281/0.3831, allocations: 3.238 MB / 462.2 MB, free: 107.8 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.352e-05/0.3832, allocations: 65.48 kB / 462.3 MB, free: 107.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007475/0.384, allocations: 2.571 MB / 464.8 MB, free: 106.1 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002878/0.3843, allocations: 0.8606 MB / 465.7 MB, free: 105.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004614/0.3847, allocations: 0.5539 MB / 466.3 MB, free: 105.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.399e-05/0.3847, allocations: 301.1 kB / 466.5 MB, free: 105 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001155/0.3859, allocations: 1.337 MB / 467.9 MB, free: 104.3 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00138/0.3873, allocations: 2.369 MB / 470.3 MB, free: 101.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002692/0.39, allocations: 3.924 MB / 474.2 MB, free: 97.65 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.111e-05/0.39, allocations: 12 kB / 474.2 MB, free: 97.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.003842/0.3938, allocations: 4.586 MB / 478.8 MB, free: 93.3 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.323e-05/0.3938, allocations: 16 kB / 478.8 MB, free: 93.28 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.189e-05/0.3939, allocations: 32.66 kB / 478.8 MB, free: 93.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00062/0.3945, allocations: 0.5468 MB / 479.4 MB, free: 92.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001262/0.3957, allocations: 0.7371 MB / 480.1 MB, free: 91.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004012/0.3998, allocations: 9.862 MB / 490 MB, free: 81.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001156/0.4009, allocations: 191.7 kB / 490.2 MB, free: 81.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001251/0.401, allocations: 143.9 kB / 490.3 MB, free: 81.22 MB / 410.7 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 (377): * Single equations (assignments): 370 * 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,6,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.001662/0.4027, allocations: 1.574 MB / 491.9 MB, free: 79.64 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002845/0.403, allocations: 361.7 kB / 492.2 MB, free: 79.28 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003574/0.4066, allocations: 3.829 MB / 496 MB, free: 75.41 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.816e-06/0.4066, allocations: 24 kB / 496.1 MB, free: 75.39 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/0.4066, allocations: 8 kB / 496.1 MB, free: 75.38 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.23e-05/0.4066, allocations: 14.58 kB / 496.1 MB, free: 75.37 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00763/0.4142, allocations: 8.233 MB / 0.4925 GB, free: 67.06 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.4142, allocations: 6.734 kB / 0.4925 GB, free: 67.06 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008344/0.4151, allocations: 403.4 kB / 0.4929 GB, free: 66.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009656/0.416, allocations: 0.7496 MB / 0.4936 GB, free: 65.89 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000107/0.4161, allocations: 71.95 kB / 0.4937 GB, free: 65.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006642/0.4228, allocations: 15.95 MB / 0.5093 GB, free: 48.98 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.4228, allocations: 4 kB / 0.5093 GB, free: 48.98 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004913/0.4277, allocations: 5.62 MB / 0.5148 GB, free: 43.25 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009854/0.4287, allocations: 0.6534 MB / 0.5154 GB, free: 42.6 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002467/0.4289, allocations: 63.98 kB / 0.5155 GB, free: 42.54 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008189/0.4297, allocations: 131.9 kB / 0.5156 GB, free: 42.41 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002948/0.43, allocations: 185.5 kB / 0.5158 GB, free: 42.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.794e-05/0.4301, allocations: 79.94 kB / 0.5159 GB, free: 42.15 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001883/0.432, allocations: 2.143 MB / 0.5179 GB, free: 40.02 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.432, allocations: 0 / 0.5179 GB, free: 40.02 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002254/0.4343, allocations: 0.9921 MB / 0.5189 GB, free: 39.03 MB / 410.7 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 (198): * Single equations (assignments): 190 * 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,6,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.00513/0.4394, allocations: 6.349 MB / 0.5251 GB, free: 32.58 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003713/0.4431, allocations: 3.865 MB / 0.5289 GB, free: 28.65 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/0.4431, allocations: 4 kB / 0.5289 GB, free: 28.64 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002084/0.4452, allocations: 2.668 MB / 0.5315 GB, free: 25.88 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002454/0.4476, allocations: 0.9699 MB / 0.5324 GB, free: 24.93 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03996/0.4876, allocations: 35.33 MB / 0.5669 GB, free: 4.254 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002959/0.4906, allocations: 2.906 MB / 0.5698 GB, free: 1.305 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001862/0.4924, allocations: 0.8113 MB / 0.5706 GB, free: 0.4922 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001929/0.4944, allocations: 2.118 MB / 0.5726 GB, free: 14.38 MB / 442.7 MB Notification: Performance of SimCode: time 1.764e-06/0.4944, allocations: 0 / 0.5726 GB, free: 14.38 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2369/0.7312, allocations: 93.69 MB / 0.6641 GB, free: 126.3 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.887/10.62, allocations: 2.656 kB / 0.6641 GB, free: 126.3 MB / 474.7 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 15.449225762858987]