Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.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.001571/0.001571, allocations: 116.4 kB / 18.5 MB, free: 4.602 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.001762/0.001762, allocations: 208.9 kB / 21.46 MB, free: 1.648 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.445/1.445, allocations: 230.2 MB / 254.5 MB, free: 15.41 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.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002928/0.002928, allocations: 67.89 kB / 373.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.116, allocations: 53.32 MB / 426.7 MB, free: 4.988 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01275/0.1288, allocations: 9.715 MB / 436.4 MB, free: 11.23 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006372/0.1351, allocations: 3.174 MB / 439.6 MB, free: 8.051 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001466/0.1366, allocations: 51.81 kB / 439.6 MB, free: 8 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001878/0.1385, allocations: 0.7104 MB / 440.3 MB, free: 7.285 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002616/0.1411, allocations: 0.8077 MB / 441.1 MB, free: 6.473 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009894/0.1421, allocations: 391.5 kB / 441.5 MB, free: 6.09 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003283/0.1454, allocations: 2.564 MB / 444.1 MB, free: 3.516 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00211/0.1475, allocations: 1.674 MB / 445.8 MB, free: 1.777 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001757/0.1492, allocations: 1.191 MB / 446.9 MB, free: 0.582 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2152/0.3644, allocations: 1.537 MB / 448.5 MB, free: 11.15 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008317/0.3652, allocations: 320.7 kB / 448.8 MB, free: 11.15 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001062/0.3663, allocations: 421.6 kB / 449.2 MB, free: 11.15 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007848/0.3671, allocations: 0.909 MB / 450.1 MB, free: 11.15 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001489/0.3686, allocations: 1.422 MB / 451.5 MB, free: 10.93 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005962/0.3745, allocations: 4.176 MB / 455.7 MB, free: 10.41 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.3745, allocations: 0.75 kB / 455.7 MB, free: 10.41 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.016e-06/0.3745, allocations: 1.094 kB / 455.7 MB, free: 10.41 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001555/0.3747, allocations: 1.781 kB / 455.7 MB, free: 10.41 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.008497/0.3832, allocations: 2.971 MB / 458.7 MB, free: 9.129 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.397e-05/0.3832, allocations: 10.33 kB / 458.7 MB, free: 9.129 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005406/0.3838, allocations: 312.9 kB / 459 MB, free: 9.074 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001053/0.3848, allocations: 312.5 kB / 459.3 MB, free: 8.926 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003382/0.3882, allocations: 1.561 MB / 460.9 MB, free: 8.098 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001329/0.3883, allocations: 153.8 kB / 461 MB, free: 8.027 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003969/0.3887, allocations: 218.2 kB / 461.2 MB, free: 7.953 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005491/0.3942, allocations: 2.796 MB / 464 MB, free: 6.809 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-05/0.3943, allocations: 7.328 kB / 464 MB, free: 6.805 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002108/0.3945, allocations: 88.56 kB / 464.1 MB, free: 6.738 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001318/0.3946, allocations: 108 kB / 464.2 MB, free: 6.727 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00431/0.399, allocations: 2.349 MB / 466.6 MB, free: 5.895 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01375/0.4127, allocations: 8.523 MB / 475.1 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002276/0.415, allocations: 1.638 MB / 476.7 MB, free: 15.61 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001746/0.4167, allocations: 0.8954 MB / 477.6 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000332/0.4171, allocations: 208.5 kB / 477.8 MB, free: 14.97 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.267e-05/0.4171, allocations: 40.12 kB / 477.9 MB, free: 14.93 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 3.006e-06/0.4171, allocations: 4 kB / 477.9 MB, free: 14.92 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01415/0.4313, allocations: 6.26 MB / 484.1 MB, free: 11.28 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.534e-05/0.4313, allocations: 63.41 kB / 484.2 MB, free: 11.21 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002574/0.4339, allocations: 1.447 MB / 485.7 MB, free: 10.44 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001474/0.434, allocations: 45.3 kB / 485.7 MB, free: 10.39 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000843/0.4349, allocations: 1.064 MB / 486.8 MB, free: 9.453 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003928/0.4353, allocations: 430.3 kB / 487.2 MB, free: 9.086 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004087/0.4357, allocations: 255.6 kB / 487.4 MB, free: 8.938 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.4359, allocations: 356.4 kB / 487.8 MB, free: 8.598 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001092/0.4369, allocations: 0.6912 MB / 488.5 MB, free: 8.254 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001351/0.4383, allocations: 1.071 MB / 489.5 MB, free: 7.43 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002483/0.4408, allocations: 1.865 MB / 491.4 MB, free: 6.227 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.826e-06/0.4408, allocations: 10.31 kB / 491.4 MB, free: 6.223 MB / 382.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004229/0.445, allocations: 2.424 MB / 493.8 MB, free: 4.836 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.896e-05/0.445, allocations: 8 kB / 493.8 MB, free: 4.828 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.502e-05/0.4451, allocations: 12 kB / 493.9 MB, free: 4.816 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00104/0.4461, allocations: 419.7 kB / 494.3 MB, free: 4.398 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001207/0.4473, allocations: 325 kB / 494.6 MB, free: 4.098 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007672/0.455, allocations: 7.037 MB / 0.4899 GB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001723/0.4567, allocations: 111.8 kB / 0.49 GB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001414/0.4569, allocations: 52 kB / 0.49 GB, free: 12.54 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (157): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 3 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001517/0.4584, allocations: 0.6947 MB / 0.4907 GB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004287/0.4588, allocations: 166.2 kB / 0.4909 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0039/0.4627, allocations: 2.123 MB / 0.4929 GB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.411e-05/0.4627, allocations: 12 kB / 0.4929 GB, free: 9.527 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.033e-05/0.4627, allocations: 4 kB / 0.493 GB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.299e-05/0.4627, allocations: 3.984 kB / 0.493 GB, free: 9.52 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008924/0.4717, allocations: 4.564 MB / 0.4974 GB, free: 4.895 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.415e-06/0.4717, allocations: 4 kB / 0.4974 GB, free: 4.891 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009198/0.4726, allocations: 212.8 kB / 0.4976 GB, free: 4.691 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001162/0.4737, allocations: 457.8 kB / 0.4981 GB, free: 4.242 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.326e-05/0.4738, allocations: 31.98 kB / 0.4981 GB, free: 4.211 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008967/0.4828, allocations: 8.629 MB / 0.5065 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.591e-06/0.4828, allocations: 4 kB / 0.5065 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005443/0.4883, allocations: 3.109 MB / 0.5096 GB, free: 7.918 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001222/0.4895, allocations: 387.9 kB / 0.5099 GB, free: 7.52 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002853/0.4898, allocations: 35.98 kB / 0.51 GB, free: 7.484 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008792/0.4906, allocations: 79.91 kB / 0.51 GB, free: 7.406 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002555/0.4909, allocations: 95.62 kB / 0.5101 GB, free: 7.312 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.146e-05/0.491, allocations: 35.98 kB / 0.5102 GB, free: 7.277 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001592/0.4926, allocations: 0.9888 MB / 0.5111 GB, free: 6.289 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4926, allocations: 0 / 0.5111 GB, free: 6.289 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001913/0.4945, allocations: 463.9 kB / 0.5116 GB, free: 5.836 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],vfController.x,loadInertia.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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005625/0.5001, allocations: 3.742 MB / 0.5152 GB, free: 2.023 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003891/0.504, allocations: 2.161 MB / 0.5173 GB, free: 15.86 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.531e-06/0.504, allocations: 0 / 0.5173 GB, free: 15.86 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002392/0.5064, allocations: 1.395 MB / 0.5187 GB, free: 14.44 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002293/0.5087, allocations: 421.4 kB / 0.5191 GB, free: 14.05 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02929/0.538, allocations: 16.9 MB / 0.5356 GB, free: 12.57 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001726/0.5397, allocations: 1.803 MB / 0.5374 GB, free: 10.74 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001195/0.5409, allocations: 369.6 kB / 0.5377 GB, free: 10.38 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00111/0.542, allocations: 0.8156 MB / 0.5385 GB, free: 9.559 MB / 446.1 MB Notification: Performance of SimCode: time 8.42e-07/0.542, allocations: 0 / 0.5385 GB, free: 9.559 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09703/0.639, allocations: 42.27 MB / 0.5798 GB, free: 15.7 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.76/13.4, allocations: 7.984 kB / 0.5798 GB, free: 15.69 MB / 494.1 MB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 18.0860090139322]