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.001759/0.001759, allocations: 113.2 kB / 20.43 MB, free: 1.449 MB / 14.72 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.001765/0.001765, allocations: 212 kB / 23.74 MB, free: 4.656 MB / 14.72 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 1.428/1.428, allocations: 230.6 MB / 257.5 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001608/0.001608, allocations: 51.92 kB / 377.8 MB, free: 3.102 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2734/0.275, allocations: 53.36 MB / 431.2 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.02931/0.3043, allocations: 22.54 MB / 453.7 MB, free: 216 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01583/0.3202, allocations: 6.69 MB / 460.4 MB, free: 9.504 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006264/0.3264, allocations: 178.9 kB / 460.6 MB, free: 9.328 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008416/0.3349, allocations: 1.576 MB / 462.2 MB, free: 7.742 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008651/0.3435, allocations: 2.147 MB / 464.3 MB, free: 5.582 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005291/0.3488, allocations: 1.363 MB / 465.7 MB, free: 4.219 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01357/0.3624, allocations: 6.586 MB / 472.2 MB, free: 13.61 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008589/0.371, allocations: 3.139 MB / 475.4 MB, free: 10.38 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006151/0.3771, allocations: 3.088 MB / 478.5 MB, free: 7.285 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007285/0.3844, allocations: 3.748 MB / 482.2 MB, free: 3.523 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002605/0.387, allocations: 0.8164 MB / 483 MB, free: 2.707 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004169/0.3912, allocations: 1.128 MB / 484.2 MB, free: 1.578 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004212/0.3954, allocations: 2.057 MB / 486.2 MB, free: 15.52 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009071/0.4045, allocations: 3.547 MB / 489.8 MB, free: 11.95 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01985/0.4243, allocations: 10.88 MB / 0.4889 GB, free: 1.035 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.117e-06/0.4243, allocations: 0 / 0.4889 GB, free: 1.035 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.4243, allocations: 0 / 0.4889 GB, free: 1.035 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004199/0.4247, allocations: 0 / 0.4889 GB, free: 1.035 MB / 398.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.03343/0.4582, allocations: 7.039 MB / 0.4958 GB, free: 9.922 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.199e-05/0.4582, allocations: 12.03 kB / 0.4958 GB, free: 9.91 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003455/0.4617, allocations: 0.7329 MB / 0.4965 GB, free: 9.168 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007866/0.4696, allocations: 1.078 MB / 0.4976 GB, free: 8.086 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01138/0.4809, allocations: 3.704 MB / 0.5012 GB, free: 4.316 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005934/0.4815, allocations: 406.9 kB / 0.5016 GB, free: 3.918 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002245/0.4838, allocations: 0.5234 MB / 0.5021 GB, free: 3.395 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02096/0.5047, allocations: 7.059 MB / 0.509 GB, free: 12.26 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002885/0.505, allocations: 11.95 kB / 0.509 GB, free: 12.25 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001685/0.5067, allocations: 224 kB / 0.5092 GB, free: 12.03 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003542/0.5071, allocations: 262.6 kB / 0.5095 GB, free: 11.77 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01623/0.5233, allocations: 5.952 MB / 0.5153 GB, free: 5.812 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2657/0.789, allocations: 21.82 MB / 0.5366 GB, free: 90.04 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006798/0.7958, allocations: 3.745 MB / 0.5402 GB, free: 89.92 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003221/0.7991, allocations: 2.088 MB / 0.5423 GB, free: 89.88 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009869/0.8089, allocations: 5.822 MB / 0.548 GB, free: 87.66 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.855e-05/0.809, allocations: 58.42 kB / 0.548 GB, free: 87.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=220): time 4.388e-06/0.809, allocations: 1.031 kB / 0.548 GB, free: 87.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=240): time 0.01874/0.8277, allocations: 10.25 MB / 0.558 GB, free: 84.08 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.55e-05/0.8278, allocations: 79.78 kB / 0.5581 GB, free: 84.02 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003994/0.8318, allocations: 3.17 MB / 0.5612 GB, free: 82.38 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001874/0.8319, allocations: 69.36 kB / 0.5613 GB, free: 82.32 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001183/0.8331, allocations: 2.581 MB / 0.5638 GB, free: 80.38 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004555/0.8336, allocations: 0.8734 MB / 0.5646 GB, free: 79.66 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006584/0.8342, allocations: 0.556 MB / 0.5652 GB, free: 79.34 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.022e-05/0.8343, allocations: 308.8 kB / 0.5655 GB, free: 79.04 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001705/0.836, allocations: 1.337 MB / 0.5668 GB, free: 78.08 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002029/0.838, allocations: 2.335 MB / 0.5691 GB, free: 75.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003934/0.8419, allocations: 3.924 MB / 0.5729 GB, free: 70.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.238e-05/0.842, allocations: 8 kB / 0.5729 GB, free: 70.89 MB / 446.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.00621/0.8482, allocations: 4.585 MB / 0.5774 GB, free: 66.23 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.253e-05/0.8482, allocations: 22.56 kB / 0.5774 GB, free: 66.21 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.889e-05/0.8482, allocations: 36 kB / 0.5774 GB, free: 66.18 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00105/0.8493, allocations: 0.5397 MB / 0.578 GB, free: 65.62 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002362/0.8516, allocations: 0.741 MB / 0.5787 GB, free: 64.88 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006547/0.8582, allocations: 9.934 MB / 0.5884 GB, free: 54.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002683/0.8609, allocations: 187.9 kB / 0.5886 GB, free: 54.21 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002241/0.8611, allocations: 144 kB / 0.5887 GB, free: 54.07 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 (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.002362/0.8635, allocations: 1.578 MB / 0.5902 GB, free: 52.48 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005469/0.864, allocations: 365.7 kB / 0.5906 GB, free: 52.12 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005433/0.8694, allocations: 3.828 MB / 0.5943 GB, free: 48.26 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.229e-05/0.8695, allocations: 24 kB / 0.5944 GB, free: 48.23 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.299e-05/0.8695, allocations: 8 kB / 0.5944 GB, free: 48.23 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.801e-05/0.8695, allocations: 11.95 kB / 0.5944 GB, free: 48.21 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01192/0.8814, allocations: 8.735 MB / 0.6029 GB, free: 39.39 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.437e-06/0.8814, allocations: 4 kB / 0.6029 GB, free: 39.39 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001582/0.883, allocations: 408 kB / 0.6033 GB, free: 38.99 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001633/0.8846, allocations: 0.7596 MB / 0.604 GB, free: 38.21 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001469/0.8848, allocations: 67.97 kB / 0.6041 GB, free: 38.15 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01094/0.8957, allocations: 16.08 MB / 0.6198 GB, free: 21.18 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.8957, allocations: 7.938 kB / 0.6198 GB, free: 21.17 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007762/0.9035, allocations: 5.636 MB / 0.6253 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002146/0.9056, allocations: 0.6458 MB / 0.6259 GB, free: 14.78 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005223/0.9062, allocations: 59.98 kB / 0.626 GB, free: 14.72 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00157/0.9077, allocations: 143.9 kB / 0.6261 GB, free: 14.58 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003807/0.9081, allocations: 197.5 kB / 0.6263 GB, free: 14.39 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001278/0.9082, allocations: 67.98 kB / 0.6264 GB, free: 14.32 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002731/0.911, allocations: 2.139 MB / 0.6285 GB, free: 12.19 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.911, allocations: 0 / 0.6285 GB, free: 12.19 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003192/0.9142, allocations: 0.996 MB / 0.6295 GB, free: 11.2 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 (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.007541/0.9217, allocations: 6.355 MB / 0.6357 GB, free: 4.73 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005309/0.927, allocations: 3.873 MB / 0.6394 GB, free: 0.793 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/0.927, allocations: 4 kB / 0.6394 GB, free: 0.7891 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004185/0.9312, allocations: 2.671 MB / 0.6421 GB, free: 14.02 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004518/0.9357, allocations: 0.9738 MB / 0.643 GB, free: 13.07 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06568/1.001, allocations: 35.42 MB / 0.6776 GB, free: 8.301 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00541/1.007, allocations: 3.42 MB / 0.6809 GB, free: 4.848 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002924/1.01, allocations: 0.8035 MB / 0.6817 GB, free: 4.043 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00342/1.013, allocations: 2.112 MB / 0.6838 GB, free: 1.93 MB / 494.1 MB Notification: Performance of SimCode: time 1.072e-06/1.013, allocations: 0 / 0.6838 GB, free: 1.93 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4618/1.475, allocations: 91.86 MB / 0.7735 GB, free: 187 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.13/21.61, allocations: 5.938 kB / 0.7735 GB, free: 187 MB / 0.545 GB " [Timeout remaining time 638] (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/jenkins1/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/jenkins1/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 657] Reference file matches [Calling sys.exit(0), Time elapsed: 29.436085599008948]