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.001373/0.001373, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.001647/0.001647, allocations: 216.5 kB / 24.53 MB, free: 4.012 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.529/1.529, allocations: 230.5 MB / 258.2 MB, free: 8 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.001801/0.001801, allocations: 59.91 kB / 378.6 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2956/0.2974, allocations: 53.41 MB / 432 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.02589/0.3233, allocations: 21.08 MB / 453.1 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01624/0.3396, allocations: 6.208 MB / 459.3 MB, free: 11.29 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005639/0.3452, allocations: 170.9 kB / 459.4 MB, free: 11.12 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005223/0.3504, allocations: 1.429 MB / 460.9 MB, free: 9.688 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009178/0.3596, allocations: 1.995 MB / 462.9 MB, free: 7.684 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004097/0.3637, allocations: 1.308 MB / 464.2 MB, free: 6.379 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009877/0.3736, allocations: 6.163 MB / 470.3 MB, free: 200 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004985/0.3786, allocations: 3.042 MB / 473.4 MB, free: 13.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004688/0.3832, allocations: 2.925 MB / 476.3 MB, free: 10.13 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006112/0.3894, allocations: 3.573 MB / 479.9 MB, free: 6.547 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001271/0.3906, allocations: 0.7812 MB / 480.7 MB, free: 5.766 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002294/0.3929, allocations: 1.093 MB / 481.8 MB, free: 4.672 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001904/0.3948, allocations: 1.967 MB / 483.7 MB, free: 2.699 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004231/0.3991, allocations: 3.365 MB / 487.1 MB, free: 15.32 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01323/0.4123, allocations: 10.39 MB / 497.5 MB, free: 4.891 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.752e-06/0.4123, allocations: 4 kB / 497.5 MB, free: 4.887 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4123, allocations: 0 / 497.5 MB, free: 4.887 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002536/0.4125, allocations: 0 / 497.5 MB, free: 4.887 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.01778/0.4303, allocations: 6.687 MB / 0.4924 GB, free: 14.13 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.4304, allocations: 11.97 kB / 0.4924 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001444/0.4305, allocations: 142.5 kB / 0.4925 GB, free: 13.98 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001199/0.4317, allocations: 0.7 MB / 0.4932 GB, free: 13.27 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004712/0.4364, allocations: 1.028 MB / 0.4942 GB, free: 12.23 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007121/0.4435, allocations: 3.525 MB / 0.4976 GB, free: 8.645 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003321/0.4439, allocations: 386.4 kB / 0.498 GB, free: 8.266 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009317/0.4448, allocations: 0.5038 MB / 0.4985 GB, free: 7.762 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01231/0.4571, allocations: 6.775 MB / 0.5051 GB, free: 0.918 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001236/0.4572, allocations: 19.88 kB / 0.5051 GB, free: 0.8984 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004946/0.4577, allocations: 208 kB / 0.5053 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002485/0.458, allocations: 242.2 kB / 0.5056 GB, free: 468 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0107/0.4687, allocations: 5.759 MB / 0.5112 GB, free: 10.68 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0454/0.5141, allocations: 20.57 MB / 0.5313 GB, free: 5.621 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008838/0.5229, allocations: 3.719 MB / 0.5349 GB, free: 2.105 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004364/0.5273, allocations: 2.034 MB / 0.5369 GB, free: 60 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2777/0.8049, allocations: 5.557 MB / 0.5423 GB, free: 94.36 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.069e-05/0.805, allocations: 58.34 kB / 0.5424 GB, free: 94.3 MB / 446.1 MB Notification: Performance of pre-optimization done (n=205): time 4.298e-06/0.805, allocations: 0 / 0.5424 GB, free: 94.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=222): time 0.01891/0.8239, allocations: 9.578 MB / 0.5517 GB, free: 90.97 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/0.8239, allocations: 76.97 kB / 0.5518 GB, free: 90.9 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003987/0.8279, allocations: 2.927 MB / 0.5547 GB, free: 89.82 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001333/0.8281, allocations: 61.39 kB / 0.5547 GB, free: 89.77 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001198/0.8293, allocations: 2.433 MB / 0.5571 GB, free: 88.22 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004662/0.8297, allocations: 0.8112 MB / 0.5579 GB, free: 87.63 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006491/0.8304, allocations: 0.5176 MB / 0.5584 GB, free: 87.34 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.745e-05/0.8304, allocations: 308.9 kB / 0.5587 GB, free: 87.04 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001651/0.8321, allocations: 1.266 MB / 0.5599 GB, free: 86.4 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002053/0.8341, allocations: 2.18 MB / 0.562 GB, free: 84.47 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003802/0.8379, allocations: 3.665 MB / 0.5656 GB, free: 80.42 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.267e-05/0.8379, allocations: 8 kB / 0.5656 GB, free: 80.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.005926/0.8439, allocations: 4.325 MB / 0.5699 GB, free: 76.05 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.97e-05/0.8439, allocations: 16 kB / 0.5699 GB, free: 76.04 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.316e-05/0.8439, allocations: 32.92 kB / 0.5699 GB, free: 76.01 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001018/0.8449, allocations: 0.5363 MB / 0.5704 GB, free: 75.45 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002146/0.8471, allocations: 0.6824 MB / 0.5711 GB, free: 74.77 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006672/0.8538, allocations: 9.824 MB / 0.5807 GB, free: 64.41 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002885/0.8566, allocations: 179.8 kB / 0.5809 GB, free: 64.23 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002002/0.8568, allocations: 135.9 kB / 0.581 GB, free: 64.1 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.002873/0.8597, allocations: 1.516 MB / 0.5825 GB, free: 62.57 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000627/0.8603, allocations: 333.9 kB / 0.5828 GB, free: 62.24 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005532/0.8659, allocations: 3.663 MB / 0.5864 GB, free: 58.54 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.32e-05/0.8659, allocations: 22.08 kB / 0.5864 GB, free: 58.52 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.327e-05/0.8659, allocations: 8.094 kB / 0.5864 GB, free: 58.52 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.15e-05/0.8659, allocations: 19.94 kB / 0.5864 GB, free: 58.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01214/0.8781, allocations: 8.234 MB / 0.5945 GB, free: 50.19 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.406e-06/0.8781, allocations: 8.094 kB / 0.5945 GB, free: 50.18 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001449/0.8795, allocations: 379.4 kB / 0.5948 GB, free: 49.81 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001633/0.8812, allocations: 0.7441 MB / 0.5956 GB, free: 49.05 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001413/0.8813, allocations: 63.97 kB / 0.5956 GB, free: 48.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01072/0.892, allocations: 15.94 MB / 0.6112 GB, free: 32.15 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/0.892, allocations: 11.88 kB / 0.6112 GB, free: 32.14 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007263/0.8993, allocations: 5.345 MB / 0.6164 GB, free: 26.71 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001497/0.9008, allocations: 0.5992 MB / 0.617 GB, free: 26.11 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000395/0.9012, allocations: 48 kB / 0.617 GB, free: 26.06 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001439/0.9026, allocations: 135.9 kB / 0.6172 GB, free: 25.93 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003557/0.903, allocations: 177.5 kB / 0.6173 GB, free: 25.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001209/0.9031, allocations: 67.98 kB / 0.6174 GB, free: 25.69 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002451/0.9056, allocations: 1.98 MB / 0.6193 GB, free: 23.71 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.9056, allocations: 0 / 0.6193 GB, free: 23.71 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003071/0.9086, allocations: 0.9374 MB / 0.6203 GB, free: 22.77 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.007008/0.9156, allocations: 6.063 MB / 0.6262 GB, free: 16.62 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00509/0.9207, allocations: 3.689 MB / 0.6298 GB, free: 12.86 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/0.9207, allocations: 0 / 0.6298 GB, free: 12.86 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003148/0.9239, allocations: 2.576 MB / 0.6323 GB, free: 10.19 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003993/0.9279, allocations: 0.8577 MB / 0.6331 GB, free: 9.352 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05513/0.983, allocations: 33.22 MB / 0.6656 GB, free: 6.922 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003694/0.9867, allocations: 3.299 MB / 0.6688 GB, free: 3.59 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002538/0.9892, allocations: 0.7541 MB / 0.6695 GB, free: 2.832 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002738/0.992, allocations: 1.948 MB / 0.6714 GB, free: 0.8828 MB / 478.1 MB Notification: Performance of SimCode: time 1.402e-06/0.992, allocations: 4 kB / 0.6714 GB, free: 0.8789 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6625/1.654, allocations: 85.22 MB / 0.7547 GB, free: 173.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.81/19.47, allocations: 2.562 kB / 0.7547 GB, free: 173.8 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 655] Reference file matches [Calling sys.exit(0), Time elapsed: 31.524805241031572]