Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00183/0.00183, allocations: 111.1 kB / 20.44 MB, free: 1.059 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002387/0.002387, allocations: 212.9 kB / 23.73 MB, free: 4.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 230.5 MB / 257.4 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_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_trunk_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.002145/0.002145, allocations: 71.88 kB / 377.8 MB, free: 2.797 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.2645, allocations: 53.4 MB / 431.2 MB, free: 6.598 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.02261/0.2871, allocations: 18.11 MB / 449.3 MB, free: 4.406 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01126/0.2984, allocations: 5.924 MB / 455.2 MB, free: 14.46 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002718/0.3011, allocations: 170.9 kB / 455.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003471/0.3046, allocations: 1.37 MB / 456.7 MB, free: 12.92 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005131/0.3097, allocations: 1.984 MB / 458.7 MB, free: 10.92 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002725/0.3124, allocations: 1.246 MB / 460 MB, free: 9.68 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008348/0.3208, allocations: 6.165 MB / 466.1 MB, free: 3.488 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00495/0.3257, allocations: 2.917 MB / 469 MB, free: 496 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004974/0.3307, allocations: 2.925 MB / 472 MB, free: 13.55 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006504/0.3372, allocations: 3.347 MB / 475.3 MB, free: 10.19 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002563/0.3398, allocations: 0.7851 MB / 476.1 MB, free: 9.406 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003524/0.3433, allocations: 1.066 MB / 477.2 MB, free: 8.34 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003428/0.3467, allocations: 1.967 MB / 479.1 MB, free: 6.367 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006515/0.3532, allocations: 2.676 MB / 481.8 MB, free: 3.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01673/0.37, allocations: 10.43 MB / 492.2 MB, free: 9.215 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.546e-06/0.37, allocations: 4 kB / 492.2 MB, free: 9.211 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.37, allocations: 0 / 492.2 MB, free: 9.211 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000319/0.3703, allocations: 0 / 492.2 MB, free: 9.211 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.0181/0.3884, allocations: 6.683 MB / 498.9 MB, free: 2.457 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.3884, allocations: 15.98 kB / 498.9 MB, free: 2.441 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001416/0.3899, allocations: 0.7039 MB / 499.7 MB, free: 1.727 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005228/0.3951, allocations: 1.02 MB / 0.4889 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008515/0.4036, allocations: 3.502 MB / 0.4924 GB, free: 13.14 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004657/0.4041, allocations: 390.6 kB / 0.4927 GB, free: 12.75 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001442/0.4055, allocations: 0.5115 MB / 0.4932 GB, free: 12.24 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01449/0.42, allocations: 7.005 MB / 0.5001 GB, free: 5.113 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001286/0.4201, allocations: 11.95 kB / 0.5001 GB, free: 5.102 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005225/0.4207, allocations: 208 kB / 0.5003 GB, free: 4.898 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002743/0.4209, allocations: 242.2 kB / 0.5005 GB, free: 4.66 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01281/0.4337, allocations: 5.752 MB / 0.5061 GB, free: 14.89 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04078/0.4745, allocations: 18.8 MB / 0.5245 GB, free: 11.61 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007477/0.482, allocations: 3.696 MB / 0.5281 GB, free: 8.121 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004074/0.4861, allocations: 2.03 MB / 0.5301 GB, free: 6.078 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01159/0.4977, allocations: 5.052 MB / 0.535 GB, free: 0.9844 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.403e-05/0.4977, allocations: 60.56 kB / 0.5351 GB, free: 0.9141 MB / 446.1 MB Notification: Performance of pre-optimization done (n=205): time 4.889e-06/0.4977, allocations: 0 / 0.5351 GB, free: 0.9141 MB / 446.1 MB Notification: Performance of matching and sorting (n=222): time 0.2152/0.7129, allocations: 9.569 MB / 0.5444 GB, free: 96.24 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.611e-05/0.713, allocations: 77.06 kB / 0.5445 GB, free: 96.17 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003778/0.7168, allocations: 2.977 MB / 0.5474 GB, free: 95.07 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00024/0.717, allocations: 68.58 kB / 0.5475 GB, free: 95.01 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001104/0.7181, allocations: 2.431 MB / 0.5498 GB, free: 93.47 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004984/0.7186, allocations: 0.7998 MB / 0.5506 GB, free: 92.93 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006401/0.7192, allocations: 0.5159 MB / 0.5511 GB, free: 92.67 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.55e-05/0.7193, allocations: 316.9 kB / 0.5514 GB, free: 92.37 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00175/0.721, allocations: 1.269 MB / 0.5527 GB, free: 91.91 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001961/0.723, allocations: 2.199 MB / 0.5548 GB, free: 89.85 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003692/0.7267, allocations: 3.666 MB / 0.5584 GB, free: 86.06 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.356e-05/0.7267, allocations: 8 kB / 0.5584 GB, free: 86.05 MB / 446.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.005922/0.7326, allocations: 4.328 MB / 0.5626 GB, free: 82.18 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.952e-05/0.7326, allocations: 16 kB / 0.5626 GB, free: 82.16 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.318e-05/0.7327, allocations: 31.12 kB / 0.5627 GB, free: 82.14 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001023/0.7337, allocations: 0.538 MB / 0.5632 GB, free: 81.63 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002257/0.7359, allocations: 0.6825 MB / 0.5639 GB, free: 80.95 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006684/0.7426, allocations: 9.758 MB / 0.5734 GB, free: 70.65 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002704/0.7453, allocations: 179.7 kB / 0.5736 GB, free: 70.47 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003082/0.7456, allocations: 128 kB / 0.5737 GB, free: 70.35 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.002452/0.7481, allocations: 1.521 MB / 0.5752 GB, free: 68.82 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000784/0.7489, allocations: 341.8 kB / 0.5755 GB, free: 68.48 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005552/0.7544, allocations: 3.659 MB / 0.5791 GB, free: 64.79 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.364e-05/0.7544, allocations: 24 kB / 0.5791 GB, free: 64.76 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.44e-05/0.7545, allocations: 8 kB / 0.5791 GB, free: 64.75 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-05/0.7545, allocations: 11.95 kB / 0.5791 GB, free: 64.74 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01249/0.767, allocations: 7.783 MB / 0.5867 GB, free: 56.89 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.053e-05/0.767, allocations: 4 kB / 0.5867 GB, free: 56.88 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00154/0.7685, allocations: 379.3 kB / 0.5871 GB, free: 56.52 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001669/0.7702, allocations: 0.7473 MB / 0.5878 GB, free: 55.75 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002046/0.7704, allocations: 63.97 kB / 0.5879 GB, free: 55.69 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01086/0.7813, allocations: 15.83 MB / 0.6033 GB, free: 38.96 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.7813, allocations: 4 kB / 0.6033 GB, free: 38.95 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007515/0.7888, allocations: 5.345 MB / 0.6085 GB, free: 33.52 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001906/0.7907, allocations: 0.5953 MB / 0.6091 GB, free: 32.93 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006576/0.7913, allocations: 55.98 kB / 0.6092 GB, free: 32.87 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001654/0.793, allocations: 128 kB / 0.6093 GB, free: 32.75 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003571/0.7933, allocations: 189.5 kB / 0.6095 GB, free: 32.56 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000124/0.7935, allocations: 59.98 kB / 0.6095 GB, free: 32.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002438/0.7959, allocations: 1.984 MB / 0.6115 GB, free: 30.52 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.7959, allocations: 0 / 0.6115 GB, free: 30.52 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002995/0.7989, allocations: 0.9374 MB / 0.6124 GB, free: 29.58 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.00723/0.8061, allocations: 6.056 MB / 0.6183 GB, free: 23.44 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004881/0.811, allocations: 3.693 MB / 0.6219 GB, free: 19.69 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.063e-06/0.811, allocations: 4 kB / 0.6219 GB, free: 19.68 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003228/0.8143, allocations: 2.574 MB / 0.6244 GB, free: 17.01 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003426/0.8177, allocations: 0.8652 MB / 0.6253 GB, free: 16.16 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04972/0.8674, allocations: 33.18 MB / 0.6577 GB, free: 13.77 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00384/0.8712, allocations: 2.795 MB / 0.6604 GB, free: 10.93 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002507/0.8737, allocations: 0.7619 MB / 0.6612 GB, free: 10.16 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002832/0.8766, allocations: 1.948 MB / 0.6631 GB, free: 8.219 MB / 478.1 MB Notification: Performance of SimCode: time 9.82e-07/0.8766, allocations: 0 / 0.6631 GB, free: 8.219 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3668/1.243, allocations: 86.94 MB / 0.748 GB, free: 178.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.3/19.55, allocations: 2.844 kB / 0.748 GB, free: 178.6 MB / 0.5294 GB " [Timeout remaining time 640] (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 30.35012912005186]