Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.001443/0.001443, 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.001464/0.001464, 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.507/1.507, allocations: 230.6 MB / 257.5 MB, free: 8.004 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.SMR_Inverter,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002352/0.002352, allocations: 47.92 kB / 377.8 MB, free: 3.121 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2673/0.2696, allocations: 53.36 MB / 431.2 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.02528/0.2949, allocations: 21.08 MB / 452.2 MB, free: 1.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01315/0.3081, allocations: 6.203 MB / 458.4 MB, free: 11.46 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00409/0.3122, allocations: 170.9 kB / 458.6 MB, free: 11.29 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00485/0.317, allocations: 1.424 MB / 460 MB, free: 9.859 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008289/0.3253, allocations: 1.999 MB / 462 MB, free: 7.852 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004663/0.33, allocations: 1.302 MB / 463.3 MB, free: 6.547 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01046/0.3404, allocations: 6.171 MB / 469.5 MB, free: 364 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006937/0.3473, allocations: 3.034 MB / 472.5 MB, free: 13.23 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005166/0.3525, allocations: 2.932 MB / 475.5 MB, free: 10.29 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006527/0.359, allocations: 3.569 MB / 479 MB, free: 6.711 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002492/0.3615, allocations: 0.7812 MB / 479.8 MB, free: 5.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003771/0.3653, allocations: 1.093 MB / 480.9 MB, free: 4.836 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00338/0.3687, allocations: 1.975 MB / 482.9 MB, free: 2.855 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00683/0.3755, allocations: 3.357 MB / 486.3 MB, free: 15.48 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01854/0.3941, allocations: 10.39 MB / 496.6 MB, free: 5.062 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.055e-06/0.3941, allocations: 0 / 496.6 MB, free: 5.062 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.3941, allocations: 0 / 496.6 MB, free: 5.062 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005109/0.3946, allocations: 4 kB / 496.6 MB, free: 5.059 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: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.02246/0.417, allocations: 6.701 MB / 0.4915 GB, free: 14.29 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.436e-05/0.4171, allocations: 8.031 kB / 0.4916 GB, free: 14.28 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002552/0.4196, allocations: 0.6961 MB / 0.4922 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006077/0.4257, allocations: 1.028 MB / 0.4932 GB, free: 12.54 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01/0.4357, allocations: 3.521 MB / 0.4967 GB, free: 8.953 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004783/0.4362, allocations: 391.3 kB / 0.497 GB, free: 8.57 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001838/0.438, allocations: 0.496 MB / 0.4975 GB, free: 8.074 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01741/0.4554, allocations: 6.783 MB / 0.5042 GB, free: 1.223 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002053/0.4557, allocations: 19.94 kB / 0.5042 GB, free: 1.203 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00113/0.4568, allocations: 204 kB / 0.5044 GB, free: 1.004 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000298/0.4571, allocations: 246.2 kB / 0.5046 GB, free: 0.7617 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01323/0.4703, allocations: 5.763 MB / 0.5102 GB, free: 10.98 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04227/0.5126, allocations: 20.57 MB / 0.5303 GB, free: 5.926 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007387/0.52, allocations: 3.707 MB / 0.5339 GB, free: 2.422 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003834/0.5238, allocations: 2.042 MB / 0.5359 GB, free: 376 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2215/0.7453, allocations: 5.567 MB / 0.5414 GB, free: 94.39 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.572e-05/0.7453, allocations: 56.47 kB / 0.5414 GB, free: 94.33 MB / 446.1 MB Notification: Performance of pre-optimization done (n=205): time 4.037e-06/0.7453, allocations: 0 / 0.5414 GB, free: 94.33 MB / 446.1 MB Notification: Performance of matching and sorting (n=222): time 0.01707/0.7624, allocations: 9.576 MB / 0.5508 GB, free: 91.05 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.316e-05/0.7624, allocations: 74.5 kB / 0.5508 GB, free: 90.99 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003585/0.766, allocations: 2.93 MB / 0.5537 GB, free: 89.91 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001725/0.7661, allocations: 60.95 kB / 0.5538 GB, free: 89.85 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009881/0.7671, allocations: 2.428 MB / 0.5561 GB, free: 88.31 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004173/0.7676, allocations: 0.8092 MB / 0.5569 GB, free: 87.76 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005936/0.7681, allocations: 0.5145 MB / 0.5574 GB, free: 87.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.701e-05/0.7682, allocations: 305 kB / 0.5577 GB, free: 87.21 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001612/0.7698, allocations: 1.269 MB / 0.559 GB, free: 86.58 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001927/0.7717, allocations: 2.188 MB / 0.5611 GB, free: 84.75 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003604/0.7753, allocations: 3.656 MB / 0.5647 GB, free: 80.74 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.208e-05/0.7753, allocations: 12 kB / 0.5647 GB, free: 80.73 MB / 446.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.005752/0.7811, allocations: 4.332 MB / 0.5689 GB, free: 76.37 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.247e-05/0.7811, allocations: 16 kB / 0.5689 GB, free: 76.35 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.592e-05/0.7812, allocations: 28 kB / 0.569 GB, free: 76.32 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001051/0.7822, allocations: 0.5411 MB / 0.5695 GB, free: 75.76 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002214/0.7844, allocations: 0.6747 MB / 0.5701 GB, free: 75.09 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006375/0.7908, allocations: 9.827 MB / 0.5797 GB, free: 64.72 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002474/0.7933, allocations: 183.7 kB / 0.5799 GB, free: 64.54 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001875/0.7935, allocations: 131.9 kB / 0.58 GB, free: 64.41 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (345): * Single equations (assignments): 338 * 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,11,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.002126/0.7956, allocations: 1.52 MB / 0.5815 GB, free: 62.88 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004776/0.7961, allocations: 334.5 kB / 0.5818 GB, free: 62.55 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00505/0.8011, allocations: 3.659 MB / 0.5854 GB, free: 58.86 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.128e-05/0.8011, allocations: 20 kB / 0.5854 GB, free: 58.84 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.141e-05/0.8011, allocations: 11.84 kB / 0.5854 GB, free: 58.83 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.856e-05/0.8012, allocations: 11.95 kB / 0.5855 GB, free: 58.82 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01056/0.8117, allocations: 8.252 MB / 0.5935 GB, free: 50.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.777e-06/0.8117, allocations: 4 kB / 0.5935 GB, free: 50.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001437/0.8132, allocations: 383.9 kB / 0.5939 GB, free: 50.12 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001517/0.8147, allocations: 0.7404 MB / 0.5946 GB, free: 49.36 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001262/0.8148, allocations: 59.97 kB / 0.5947 GB, free: 49.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0102/0.825, allocations: 15.94 MB / 0.6102 GB, free: 32.46 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/0.825, allocations: 11.92 kB / 0.6102 GB, free: 32.45 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007012/0.832, allocations: 5.345 MB / 0.6155 GB, free: 27.02 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001756/0.8338, allocations: 0.5953 MB / 0.616 GB, free: 26.43 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004338/0.8342, allocations: 52 kB / 0.6161 GB, free: 26.38 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001462/0.8357, allocations: 131.9 kB / 0.6162 GB, free: 26.25 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003771/0.836, allocations: 181.5 kB / 0.6164 GB, free: 26.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000121/0.8362, allocations: 67.98 kB / 0.6165 GB, free: 26 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002467/0.8386, allocations: 1.98 MB / 0.6184 GB, free: 24.03 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.8386, allocations: 3.375 kB / 0.6184 GB, free: 24.03 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003102/0.8417, allocations: 0.9413 MB / 0.6193 GB, free: 23.09 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],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 (182): * Single equations (assignments): 174 * 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,11,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007063/0.8488, allocations: 6.059 MB / 0.6252 GB, free: 16.94 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004949/0.8537, allocations: 3.696 MB / 0.6288 GB, free: 13.17 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.68e-06/0.8538, allocations: 0 / 0.6288 GB, free: 13.17 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003375/0.8571, allocations: 2.574 MB / 0.6314 GB, free: 10.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004394/0.8615, allocations: 0.8565 MB / 0.6322 GB, free: 9.664 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05362/0.9151, allocations: 33.2 MB / 0.6646 GB, free: 7.246 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004728/0.9199, allocations: 3.31 MB / 0.6678 GB, free: 3.902 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002453/0.9223, allocations: 0.7541 MB / 0.6686 GB, free: 3.145 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00289/0.9252, allocations: 1.952 MB / 0.6705 GB, free: 1.191 MB / 478.1 MB Notification: Performance of SimCode: time 9.61e-07/0.9252, allocations: 0 / 0.6705 GB, free: 1.191 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4399/1.365, allocations: 85.19 MB / 0.7537 GB, free: 173.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.77/20.14, allocations: 6.406 kB / 0.7537 GB, free: 173.9 MB / 0.5294 GB " [Timeout remaining time 640] (rm -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_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_SMR_Inverter.fmu > Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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: 27.643425357993692]