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.001709/0.001709, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.001835/0.001835, allocations: 208.7 kB / 24.51 MB, free: 3.941 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.612/1.612, allocations: 230.5 MB / 258.2 MB, free: 7.789 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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001878/0.001878, allocations: 63.89 kB / 378.5 MB, free: 2.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3868/0.3887, allocations: 53.41 MB / 431.9 MB, free: 6.473 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.03001/0.4187, allocations: 18.09 MB / 450 MB, free: 4.293 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01919/0.4379, allocations: 5.908 MB / 455.9 MB, free: 14.37 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007129/0.445, allocations: 166.9 kB / 456.1 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006772/0.4518, allocations: 1.374 MB / 457.5 MB, free: 12.82 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01135/0.4631, allocations: 1.969 MB / 459.4 MB, free: 10.84 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005906/0.469, allocations: 1.264 MB / 460.7 MB, free: 9.586 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01263/0.4817, allocations: 6.168 MB / 466.9 MB, free: 3.395 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008149/0.4898, allocations: 3.038 MB / 469.9 MB, free: 276 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006957/0.4968, allocations: 2.925 MB / 472.8 MB, free: 13.33 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008072/0.5048, allocations: 3.577 MB / 476.4 MB, free: 9.742 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003318/0.5081, allocations: 0.7812 MB / 477.2 MB, free: 8.961 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004912/0.5131, allocations: 1.078 MB / 478.3 MB, free: 7.887 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004076/0.5171, allocations: 1.959 MB / 480.2 MB, free: 5.922 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0084/0.5255, allocations: 2.684 MB / 482.9 MB, free: 3.227 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02247/0.548, allocations: 10.44 MB / 493.4 MB, free: 8.746 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.548, allocations: 3.938 kB / 493.4 MB, free: 8.742 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.548, allocations: 4 kB / 493.4 MB, free: 8.738 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000447/0.5485, allocations: 0 / 493.4 MB, free: 8.738 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.02926/0.5777, allocations: 6.694 MB / 0.4883 GB, free: 1.973 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.241e-05/0.5778, allocations: 8.031 kB / 0.4884 GB, free: 1.965 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002792/0.5781, allocations: 142.4 kB / 0.4885 GB, free: 1.824 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003375/0.5815, allocations: 0.7 MB / 0.4892 GB, free: 1.113 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005495/0.587, allocations: 1.02 MB / 0.4902 GB, free: 92 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008586/0.5955, allocations: 3.529 MB / 0.4936 GB, free: 12.5 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00039/0.5959, allocations: 386.4 kB / 0.494 GB, free: 12.12 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001211/0.5971, allocations: 0.5038 MB / 0.4945 GB, free: 11.61 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02684/0.624, allocations: 7.009 MB / 0.5013 GB, free: 4.48 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001258/0.6241, allocations: 7.953 kB / 0.5013 GB, free: 4.473 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005191/0.6246, allocations: 212 kB / 0.5015 GB, free: 4.266 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002743/0.6249, allocations: 242.2 kB / 0.5018 GB, free: 4.027 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0109/0.6358, allocations: 5.763 MB / 0.5074 GB, free: 14.25 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03218/0.668, allocations: 18.79 MB / 0.5257 GB, free: 10.97 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006523/0.6745, allocations: 3.704 MB / 0.5294 GB, free: 7.473 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00343/0.6779, allocations: 2.026 MB / 0.5313 GB, free: 5.434 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01051/0.6884, allocations: 5.056 MB / 0.5363 GB, free: 344 kB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.081e-05/0.6885, allocations: 52.56 kB / 0.5363 GB, free: 280 kB / 446.1 MB Notification: Performance of pre-optimization done (n=205): time 4.679e-06/0.6885, allocations: 0 / 0.5363 GB, free: 280 kB / 446.1 MB Notification: Performance of matching and sorting (n=222): time 0.2407/0.9292, allocations: 9.573 MB / 0.5457 GB, free: 96.32 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.465e-05/0.9292, allocations: 74.41 kB / 0.5457 GB, free: 96.26 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003541/0.9328, allocations: 2.934 MB / 0.5486 GB, free: 95.18 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001666/0.933, allocations: 60.95 kB / 0.5487 GB, free: 95.12 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001174/0.9341, allocations: 2.43 MB / 0.551 GB, free: 93.57 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004941/0.9346, allocations: 0.8066 MB / 0.5518 GB, free: 93.04 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007102/0.9353, allocations: 0.5204 MB / 0.5523 GB, free: 92.78 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.865e-05/0.9354, allocations: 312.9 kB / 0.5526 GB, free: 92.48 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001666/0.937, allocations: 1.266 MB / 0.5539 GB, free: 91.68 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001813/0.9389, allocations: 2.194 MB / 0.556 GB, free: 89.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003443/0.9423, allocations: 3.675 MB / 0.5596 GB, free: 85.51 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.218e-05/0.9423, allocations: 8 kB / 0.5596 GB, free: 85.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.00585/0.9482, allocations: 4.328 MB / 0.5638 GB, free: 81.56 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.972e-05/0.9482, allocations: 16 kB / 0.5639 GB, free: 81.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.724e-05/0.9482, allocations: 28 kB / 0.5639 GB, free: 81.52 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001037/0.9493, allocations: 0.5364 MB / 0.5644 GB, free: 80.96 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002095/0.9514, allocations: 0.6824 MB / 0.5651 GB, free: 80.28 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006267/0.9576, allocations: 9.77 MB / 0.5746 GB, free: 69.98 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002706/0.9603, allocations: 181.6 kB / 0.5748 GB, free: 69.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002128/0.9605, allocations: 128 kB / 0.5749 GB, free: 69.68 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.002623/0.9632, allocations: 1.514 MB / 0.5764 GB, free: 68.16 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000734/0.9639, allocations: 337.8 kB / 0.5767 GB, free: 67.83 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005299/0.9692, allocations: 3.657 MB / 0.5803 GB, free: 64.13 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-05/0.9692, allocations: 20 kB / 0.5803 GB, free: 64.11 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.142e-05/0.9692, allocations: 12 kB / 0.5803 GB, free: 64.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.843e-05/0.9692, allocations: 11.95 kB / 0.5803 GB, free: 64.09 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0114/0.9806, allocations: 7.789 MB / 0.5879 GB, free: 56.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.757e-06/0.9806, allocations: 4 kB / 0.5879 GB, free: 56.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00146/0.9821, allocations: 379.4 kB / 0.5883 GB, free: 55.86 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001648/0.9838, allocations: 0.7397 MB / 0.589 GB, free: 55.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001484/0.9839, allocations: 59.97 kB / 0.5891 GB, free: 55.04 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01036/0.9943, allocations: 15.83 MB / 0.6045 GB, free: 38.31 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.9943, allocations: 4 kB / 0.6045 GB, free: 38.31 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007268/1.002, allocations: 5.349 MB / 0.6098 GB, free: 32.88 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001606/1.003, allocations: 0.6031 MB / 0.6103 GB, free: 32.27 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004351/1.004, allocations: 51.98 kB / 0.6104 GB, free: 32.22 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001437/1.005, allocations: 131.9 kB / 0.6105 GB, free: 32.09 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003774/1.005, allocations: 173.5 kB / 0.6107 GB, free: 31.92 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001265/1.006, allocations: 71.97 kB / 0.6108 GB, free: 31.85 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002417/1.008, allocations: 1.976 MB / 0.6127 GB, free: 29.88 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/1.008, allocations: 0 / 0.6127 GB, free: 29.88 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003124/1.011, allocations: 0.9335 MB / 0.6136 GB, free: 28.94 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.006987/1.018, allocations: 6.063 MB / 0.6195 GB, free: 22.79 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005065/1.023, allocations: 3.693 MB / 0.6231 GB, free: 19.04 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.745e-06/1.023, allocations: 4 kB / 0.6231 GB, free: 19.04 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003096/1.026, allocations: 2.578 MB / 0.6256 GB, free: 16.36 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0034/1.03, allocations: 0.858 MB / 0.6265 GB, free: 15.52 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0493/1.079, allocations: 33.2 MB / 0.6589 GB, free: 13.12 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003566/1.082, allocations: 2.791 MB / 0.6616 GB, free: 10.28 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00251/1.085, allocations: 0.7541 MB / 0.6624 GB, free: 9.523 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00275/1.088, allocations: 1.948 MB / 0.6643 GB, free: 7.578 MB / 478.1 MB Notification: Performance of SimCode: time 1.182e-06/1.088, allocations: 0 / 0.6643 GB, free: 7.578 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.813/1.901, allocations: 87.32 MB / 0.7495 GB, free: 175.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.17/21.07, allocations: 8.219 kB / 0.7495 GB, free: 175.6 MB / 0.5294 GB " [Timeout remaining time 639] (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 655] Reference file matches [Calling sys.exit(0), Time elapsed: 33.12181258096825]