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.001697/0.001697, allocations: 118.6 kB / 18.5 MB, free: 4.566 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.001958/0.001958, allocations: 214.6 kB / 21.46 MB, free: 1.605 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.448/1.448, allocations: 230.2 MB / 254.5 MB, free: 15.4 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.001879/0.001879, allocations: 59.91 kB / 373.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1335/0.1354, allocations: 53.31 MB / 426.7 MB, free: 4.98 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.307/0.4424, allocations: 21.01 MB / 447.7 MB, free: 9.562 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01455/0.4569, allocations: 6.196 MB / 453.9 MB, free: 9.484 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004452/0.4614, allocations: 136.7 kB / 454 MB, free: 9.484 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004026/0.4654, allocations: 1.431 MB / 455.5 MB, free: 9.25 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009929/0.4753, allocations: 1.964 MB / 457.4 MB, free: 8.355 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005246/0.4806, allocations: 1.294 MB / 458.7 MB, free: 7.66 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01291/0.4935, allocations: 6.158 MB / 464.9 MB, free: 4.719 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007385/0.5009, allocations: 3.816 MB / 468.7 MB, free: 3.086 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007698/0.5086, allocations: 2.865 MB / 471.6 MB, free: 1.73 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008318/0.5169, allocations: 3.57 MB / 475.1 MB, free: 152 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002393/0.5193, allocations: 0.7804 MB / 475.9 MB, free: 152 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004673/0.524, allocations: 1.089 MB / 477 MB, free: 60 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00373/0.5277, allocations: 1.961 MB / 479 MB, free: 14.9 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01136/0.539, allocations: 3.365 MB / 482.3 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02214/0.5612, allocations: 10.38 MB / 492.7 MB, free: 5.113 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.5612, allocations: 0 / 492.7 MB, free: 5.113 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.128e-06/0.5612, allocations: 3.984 kB / 492.7 MB, free: 5.109 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000341/0.5615, allocations: 4 kB / 492.7 MB, free: 5.105 MB / 382.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.02448/0.586, allocations: 6.771 MB / 499.5 MB, free: 96 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.733e-05/0.5861, allocations: 12.03 kB / 499.5 MB, free: 84 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003765/0.5899, allocations: 0.699 MB / 0.4885 GB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007494/0.5974, allocations: 1.026 MB / 0.4895 GB, free: 14.35 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01339/0.6107, allocations: 3.61 MB / 0.493 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007152/0.6115, allocations: 386 kB / 0.4934 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00321/0.6147, allocations: 0.5114 MB / 0.4939 GB, free: 9.828 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02679/0.6415, allocations: 6.785 MB / 0.5005 GB, free: 2.984 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003591/0.6418, allocations: 15.83 kB / 0.5005 GB, free: 2.969 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002237/0.644, allocations: 206.8 kB / 0.5007 GB, free: 2.77 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003783/0.6444, allocations: 246.2 kB / 0.5009 GB, free: 2.527 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01765/0.6621, allocations: 5.756 MB / 0.5066 GB, free: 12.76 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05383/0.7159, allocations: 20.99 MB / 0.527 GB, free: 7.492 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01199/0.7279, allocations: 8.613 MB / 0.5355 GB, free: 13.89 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004714/0.7326, allocations: 2.046 MB / 0.5375 GB, free: 11.84 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01644/0.7491, allocations: 6.211 MB / 0.5435 GB, free: 5.496 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.816e-05/0.7491, allocations: 56.56 kB / 0.5436 GB, free: 5.43 MB / 446.1 MB Notification: Performance of pre-optimization done (n=205): time 3.617e-06/0.7491, allocations: 0 / 0.5436 GB, free: 5.43 MB / 446.1 MB Notification: Performance of matching and sorting (n=222): time 0.02383/0.773, allocations: 10.48 MB / 0.5538 GB, free: 10.71 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.063e-05/0.773, allocations: 77.34 kB / 0.5539 GB, free: 10.62 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007928/0.781, allocations: 2.929 MB / 0.5567 GB, free: 7.688 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004989/0.7815, allocations: 69.7 kB / 0.5568 GB, free: 7.613 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00258/0.7841, allocations: 2.421 MB / 0.5592 GB, free: 5.184 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001303/0.7854, allocations: 0.8074 MB / 0.56 GB, free: 4.387 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001642/0.787, allocations: 0.5179 MB / 0.5605 GB, free: 3.859 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.7872, allocations: 309.1 kB / 0.5608 GB, free: 3.555 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002795/0.79, allocations: 1.275 MB / 0.562 GB, free: 2.277 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0035/0.7935, allocations: 2.175 MB / 0.5641 GB, free: 15.7 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006181/0.7996, allocations: 3.668 MB / 0.5677 GB, free: 11.64 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.839e-05/0.7997, allocations: 8 kB / 0.5677 GB, free: 11.63 MB / 478.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.00923/0.8089, allocations: 4.47 MB / 0.5721 GB, free: 7.094 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.915e-05/0.809, allocations: 18.19 kB / 0.5721 GB, free: 7.078 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.093e-05/0.809, allocations: 28 kB / 0.5721 GB, free: 7.051 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001417/0.8104, allocations: 0.5411 MB / 0.5727 GB, free: 6.488 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00261/0.8131, allocations: 0.6825 MB / 0.5733 GB, free: 5.805 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01185/0.8249, allocations: 10.35 MB / 0.5834 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003804/0.8287, allocations: 179.8 kB / 0.5836 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006887/0.8294, allocations: 135.9 kB / 0.5837 GB, free: 10.46 MB / 494.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.004832/0.8342, allocations: 1.512 MB / 0.5852 GB, free: 8.938 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001459/0.8357, allocations: 341.8 kB / 0.5855 GB, free: 8.602 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009104/0.8448, allocations: 3.88 MB / 0.5893 GB, free: 4.621 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.673e-05/0.8448, allocations: 20 kB / 0.5893 GB, free: 4.602 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.811e-05/0.8449, allocations: 8 kB / 0.5894 GB, free: 4.594 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.654e-05/0.8449, allocations: 15.89 kB / 0.5894 GB, free: 4.578 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01887/0.8638, allocations: 8.491 MB / 0.5977 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-05/0.8638, allocations: 4 kB / 0.5977 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001706/0.8655, allocations: 380 kB / 0.598 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002041/0.8675, allocations: 0.746 MB / 0.5988 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002148/0.8677, allocations: 63.97 kB / 0.5988 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01864/0.8864, allocations: 16.75 MB / 0.6152 GB, free: 8.887 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.113e-06/0.8864, allocations: 4 kB / 0.6152 GB, free: 8.883 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01238/0.8988, allocations: 5.574 MB / 0.6206 GB, free: 3.168 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002916/0.9017, allocations: 0.6705 MB / 0.6213 GB, free: 2.477 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001271/0.903, allocations: 60.17 kB / 0.6213 GB, free: 2.418 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002632/0.9056, allocations: 139.6 kB / 0.6215 GB, free: 2.285 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006278/0.9062, allocations: 165.6 kB / 0.6216 GB, free: 2.121 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002505/0.9065, allocations: 71.92 kB / 0.6217 GB, free: 2.051 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.005033/0.9115, allocations: 1.98 MB / 0.6236 GB, free: 76 kB / 0.5137 GB Notification: Performance of sort global known variables: time 1e-07/0.9115, allocations: 0 / 0.6236 GB, free: 76 kB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005107/0.9166, allocations: 0.9414 MB / 0.6246 GB, free: 15.13 MB / 0.5294 GB 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.01072/0.9273, allocations: 6.293 MB / 0.6307 GB, free: 8.688 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006824/0.9342, allocations: 3.846 MB / 0.6345 GB, free: 4.742 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/0.9342, allocations: 1.875 kB / 0.6345 GB, free: 4.742 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004171/0.9383, allocations: 2.581 MB / 0.637 GB, free: 2.062 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003959/0.9423, allocations: 0.8516 MB / 0.6378 GB, free: 1.227 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2989/1.241, allocations: 33.45 MB / 0.6705 GB, free: 166.9 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002969/1.244, allocations: 3.302 MB / 0.6737 GB, free: 165.6 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002388/1.247, allocations: 0.7569 MB / 0.6744 GB, free: 165.5 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001919/1.248, allocations: 1.948 MB / 0.6763 GB, free: 163.9 MB / 0.5294 GB Notification: Performance of SimCode: time 1.192e-06/1.248, allocations: 3.969 kB / 0.6763 GB, free: 163.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1326/1.381, allocations: 82.93 MB / 0.7573 GB, free: 87.35 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.54/19.92, allocations: 15.72 kB / 0.7573 GB, free: 87.34 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_2/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_2/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: 28.113144114613533]