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.001807/0.001807, allocations: 116.4 kB / 20.43 MB, free: 1.457 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.002294/0.002294, allocations: 215.1 kB / 23.75 MB, free: 4.672 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.441/1.441, allocations: 230.5 MB / 257.4 MB, free: 7.977 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.002044/0.002044, allocations: 71.88 kB / 377.8 MB, free: 2.934 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3295/0.3315, allocations: 53.4 MB / 431.2 MB, free: 6.773 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.02664/0.3582, allocations: 21.08 MB / 452.3 MB, free: 1.602 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01679/0.375, allocations: 6.2 MB / 458.5 MB, free: 11.38 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005225/0.3802, allocations: 174.9 kB / 458.7 MB, free: 11.21 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005703/0.3859, allocations: 1.433 MB / 460.1 MB, free: 9.77 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009327/0.3952, allocations: 1.996 MB / 462.1 MB, free: 7.766 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005182/0.4004, allocations: 1.301 MB / 463.4 MB, free: 6.465 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01208/0.4125, allocations: 6.167 MB / 469.6 MB, free: 284 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009325/0.4218, allocations: 3.034 MB / 472.6 MB, free: 13.16 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006762/0.4286, allocations: 2.925 MB / 475.5 MB, free: 10.22 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008038/0.4366, allocations: 3.573 MB / 479.1 MB, free: 6.637 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002965/0.4396, allocations: 0.7812 MB / 479.9 MB, free: 5.855 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005033/0.4446, allocations: 1.101 MB / 481 MB, free: 4.754 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004257/0.4489, allocations: 1.963 MB / 482.9 MB, free: 2.785 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008853/0.4577, allocations: 3.372 MB / 486.3 MB, free: 15.39 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01767/0.4754, allocations: 10.38 MB / 496.7 MB, free: 4.984 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.4754, allocations: 0 / 496.7 MB, free: 4.984 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4754, allocations: 4 kB / 496.7 MB, free: 4.98 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003399/0.4757, allocations: 3.938 kB / 496.7 MB, free: 4.977 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.02485/0.5006, allocations: 6.691 MB / 0.4916 GB, free: 14.21 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.268e-05/0.5006, allocations: 8.031 kB / 0.4916 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002852/0.5035, allocations: 0.7039 MB / 0.4923 GB, free: 13.49 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006431/0.5099, allocations: 1.032 MB / 0.4933 GB, free: 12.46 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01106/0.521, allocations: 3.525 MB / 0.4967 GB, free: 8.867 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005259/0.5215, allocations: 382.7 kB / 0.4971 GB, free: 8.492 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002187/0.5237, allocations: 0.5037 MB / 0.4976 GB, free: 7.988 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02064/0.5443, allocations: 6.783 MB / 0.5042 GB, free: 1.137 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003238/0.5447, allocations: 15.94 kB / 0.5042 GB, free: 1.121 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001639/0.5463, allocations: 208 kB / 0.5044 GB, free: 0.918 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003742/0.5467, allocations: 234.2 kB / 0.5046 GB, free: 0.6875 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01498/0.5617, allocations: 5.767 MB / 0.5103 GB, free: 10.91 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04625/0.6079, allocations: 20.58 MB / 0.5304 GB, free: 5.832 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008027/0.6159, allocations: 3.706 MB / 0.534 GB, free: 2.332 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004323/0.6203, allocations: 2.042 MB / 0.536 GB, free: 284 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2792/0.8995, allocations: 5.554 MB / 0.5414 GB, free: 94.15 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.243e-05/0.8996, allocations: 58.44 kB / 0.5415 GB, free: 94.09 MB / 446.1 MB Notification: Performance of pre-optimization done (n=205): time 4.499e-06/0.8996, allocations: 0 / 0.5415 GB, free: 94.09 MB / 446.1 MB Notification: Performance of matching and sorting (n=222): time 0.01957/0.9191, allocations: 9.578 MB / 0.5508 GB, free: 90.79 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.172e-05/0.9192, allocations: 73.03 kB / 0.5509 GB, free: 90.73 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004624/0.9238, allocations: 2.928 MB / 0.5538 GB, free: 89.65 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003596/0.9242, allocations: 61.08 kB / 0.5538 GB, free: 89.59 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001488/0.9256, allocations: 2.43 MB / 0.5562 GB, free: 88.05 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007233/0.9264, allocations: 0.8108 MB / 0.557 GB, free: 87.48 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007356/0.9271, allocations: 0.5183 MB / 0.5575 GB, free: 87.23 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.325e-05/0.9272, allocations: 302.3 kB / 0.5578 GB, free: 86.93 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001776/0.9289, allocations: 1.273 MB / 0.559 GB, free: 86.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002055/0.931, allocations: 2.178 MB / 0.5611 GB, free: 84.47 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003871/0.9349, allocations: 3.663 MB / 0.5647 GB, free: 80.49 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-05/0.9349, allocations: 8 kB / 0.5647 GB, free: 80.48 MB / 446.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.006568/0.9414, allocations: 4.328 MB / 0.569 GB, free: 76.12 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.598e-05/0.9415, allocations: 16 kB / 0.569 GB, free: 76.11 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.663e-05/0.9415, allocations: 28 kB / 0.569 GB, free: 76.08 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001134/0.9427, allocations: 0.5408 MB / 0.5695 GB, free: 75.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002221/0.9449, allocations: 0.6825 MB / 0.5702 GB, free: 74.84 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007022/0.9519, allocations: 9.836 MB / 0.5798 GB, free: 64.46 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003436/0.9553, allocations: 181 kB / 0.58 GB, free: 64.29 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003577/0.9557, allocations: 132 kB / 0.5801 GB, free: 64.16 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.003514/0.9592, allocations: 1.512 MB / 0.5816 GB, free: 62.64 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009666/0.9602, allocations: 337.8 kB / 0.5819 GB, free: 62.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006057/0.9662, allocations: 3.654 MB / 0.5855 GB, free: 58.61 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.498e-05/0.9662, allocations: 20 kB / 0.5855 GB, free: 58.59 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.397e-05/0.9663, allocations: 15.94 kB / 0.5855 GB, free: 58.58 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.068e-05/0.9663, allocations: 11.95 kB / 0.5855 GB, free: 58.57 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01309/0.9794, allocations: 8.243 MB / 0.5936 GB, free: 50.25 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.011e-05/0.9794, allocations: 0 / 0.5936 GB, free: 50.25 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001499/0.9809, allocations: 375.4 kB / 0.5939 GB, free: 49.88 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001732/0.9826, allocations: 0.7483 MB / 0.5946 GB, free: 49.11 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001516/0.9828, allocations: 63.91 kB / 0.5947 GB, free: 49.05 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01229/0.9951, allocations: 15.94 MB / 0.6103 GB, free: 32.21 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/0.9951, allocations: 4.125 kB / 0.6103 GB, free: 32.21 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008257/1.003, allocations: 5.353 MB / 0.6155 GB, free: 26.77 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002292/1.006, allocations: 0.5953 MB / 0.6161 GB, free: 26.18 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005402/1.006, allocations: 55.92 kB / 0.6161 GB, free: 26.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001537/1.008, allocations: 135.9 kB / 0.6163 GB, free: 25.99 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004496/1.008, allocations: 181.3 kB / 0.6164 GB, free: 25.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001303/1.008, allocations: 67.97 kB / 0.6165 GB, free: 25.75 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002721/1.011, allocations: 1.976 MB / 0.6184 GB, free: 23.78 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/1.011, allocations: 0 / 0.6184 GB, free: 23.78 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003448/1.014, allocations: 0.9335 MB / 0.6194 GB, free: 22.84 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.007493/1.022, allocations: 6.06 MB / 0.6253 GB, free: 16.69 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005435/1.027, allocations: 3.701 MB / 0.6289 GB, free: 12.93 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.546e-06/1.027, allocations: 3 kB / 0.6289 GB, free: 12.93 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003612/1.031, allocations: 2.573 MB / 0.6314 GB, free: 10.25 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004192/1.035, allocations: 0.8542 MB / 0.6322 GB, free: 9.418 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07534/1.111, allocations: 33.21 MB / 0.6647 GB, free: 6.988 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007158/1.118, allocations: 3.299 MB / 0.6679 GB, free: 3.656 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003759/1.121, allocations: 0.758 MB / 0.6686 GB, free: 2.895 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004056/1.125, allocations: 1.952 MB / 0.6705 GB, free: 0.9414 MB / 478.1 MB Notification: Performance of SimCode: time 1.092e-06/1.125, allocations: 0 / 0.6705 GB, free: 0.9414 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5496/1.675, allocations: 85.18 MB / 0.7537 GB, free: 173.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.18/19.86, allocations: 7.875 kB / 0.7537 GB, free: 173.9 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: 27.124258995987475]