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.001366/0.001366, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001646/0.001646, allocations: 205.6 kB / 23.72 MB, free: 4.391 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.447/1.447, allocations: 230.5 MB / 257.4 MB, free: 7.727 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.002605/0.002605, allocations: 59.91 kB / 377.7 MB, free: 2.789 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.245/0.2476, allocations: 53.42 MB / 431.2 MB, free: 6.422 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01121/0.2588, allocations: 8.557 MB / 439.7 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005772/0.2646, allocations: 2.987 MB / 442.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009387/0.2655, allocations: 71.5 kB / 442.8 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001595/0.2671, allocations: 0.6676 MB / 443.4 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001986/0.2691, allocations: 0.8116 MB / 444.3 MB, free: 9.277 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007911/0.2699, allocations: 391.5 kB / 444.6 MB, free: 8.895 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002628/0.2725, allocations: 2.56 MB / 447.2 MB, free: 6.324 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001688/0.2742, allocations: 1.257 MB / 448.5 MB, free: 5.004 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001534/0.2758, allocations: 1.227 MB / 449.7 MB, free: 3.773 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001991/0.2777, allocations: 1.44 MB / 451.1 MB, free: 2.328 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004349/0.2782, allocations: 320 kB / 451.4 MB, free: 2.016 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008136/0.279, allocations: 419.8 kB / 451.8 MB, free: 1.605 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009746/0.28, allocations: 0.9193 MB / 452.8 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001336/0.2813, allocations: 1.136 MB / 453.9 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004699/0.286, allocations: 4.208 MB / 458.1 MB, free: 11.32 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.286, allocations: 0 / 458.1 MB, free: 11.32 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.286, allocations: 0 / 458.1 MB, free: 11.32 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.996e-05/0.2861, allocations: 0 / 458.1 MB, free: 11.32 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.005905/0.292, allocations: 2.908 MB / 461 MB, free: 8.363 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.838e-05/0.292, allocations: 15.98 kB / 461 MB, free: 8.348 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004227/0.2924, allocations: 308.2 kB / 461.3 MB, free: 8.035 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008346/0.2933, allocations: 311.2 kB / 461.6 MB, free: 7.73 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003204/0.2965, allocations: 1.475 MB / 463.1 MB, free: 6.215 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001528/0.2966, allocations: 156.2 kB / 463.3 MB, free: 6.059 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003462/0.297, allocations: 215.9 kB / 463.5 MB, free: 5.848 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004978/0.302, allocations: 2.904 MB / 466.4 MB, free: 2.832 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.352e-05/0.302, allocations: 0 / 466.4 MB, free: 2.832 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002/0.3022, allocations: 92 kB / 466.5 MB, free: 2.742 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001288/0.3023, allocations: 104.2 kB / 466.6 MB, free: 2.637 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004169/0.3065, allocations: 2.343 MB / 468.9 MB, free: 284 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01424/0.3208, allocations: 7.704 MB / 476.6 MB, free: 8.328 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0023/0.3231, allocations: 1.179 MB / 477.8 MB, free: 7.141 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001744/0.3248, allocations: 0.8938 MB / 478.7 MB, free: 6.25 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002331/0.325, allocations: 52.91 kB / 478.7 MB, free: 6.199 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.183e-05/0.3251, allocations: 47.55 kB / 478.8 MB, free: 6.141 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 3.587e-06/0.3251, allocations: 3.938 kB / 478.8 MB, free: 6.137 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01375/0.3388, allocations: 5.72 MB / 484.5 MB, free: 392 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.369e-05/0.3389, allocations: 68.41 kB / 484.6 MB, free: 312 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002688/0.3416, allocations: 1.465 MB / 486 MB, free: 14.83 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001168/0.3417, allocations: 49.64 kB / 486.1 MB, free: 14.77 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00093/0.3426, allocations: 1.067 MB / 487.2 MB, free: 13.7 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004534/0.3431, allocations: 428.4 kB / 487.6 MB, free: 13.27 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004636/0.3435, allocations: 255.5 kB / 487.8 MB, free: 13.02 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000184/0.3437, allocations: 365.9 kB / 488.2 MB, free: 12.65 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001262/0.345, allocations: 0.6871 MB / 488.9 MB, free: 11.96 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001581/0.3466, allocations: 1.077 MB / 489.9 MB, free: 10.73 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002968/0.3495, allocations: 1.864 MB / 491.8 MB, free: 8.703 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.105e-05/0.3495, allocations: 4 kB / 491.8 MB, free: 8.699 MB / 398.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004712/0.3543, allocations: 2.339 MB / 494.2 MB, free: 6.34 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.416e-05/0.3543, allocations: 15.94 kB / 494.2 MB, free: 6.324 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.759e-05/0.3543, allocations: 15.94 kB / 494.2 MB, free: 6.309 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0011/0.3554, allocations: 414.4 kB / 494.6 MB, free: 5.895 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001246/0.3567, allocations: 327.5 kB / 494.9 MB, free: 5.574 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007664/0.3643, allocations: 6.684 MB / 0.4898 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001357/0.3657, allocations: 103.8 kB / 0.4899 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001876/0.3659, allocations: 59.94 kB / 0.49 GB, free: 14.38 MB / 414.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.001399/0.3673, allocations: 0.6927 MB / 0.4907 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005103/0.3678, allocations: 166.9 kB / 0.4908 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004099/0.3719, allocations: 2.055 MB / 0.4928 GB, free: 11.44 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.298e-05/0.3719, allocations: 12 kB / 0.4928 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.344e-05/0.3719, allocations: 4 kB / 0.4928 GB, free: 11.42 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.144e-05/0.3719, allocations: 7.984 kB / 0.4929 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008785/0.3807, allocations: 4.211 MB / 0.497 GB, free: 7.102 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.29e-05/0.3807, allocations: 4 kB / 0.497 GB, free: 7.098 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009489/0.3817, allocations: 207.7 kB / 0.4972 GB, free: 6.895 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001228/0.3829, allocations: 458.8 kB / 0.4976 GB, free: 6.438 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001135/0.383, allocations: 35.92 kB / 0.4976 GB, free: 6.402 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008971/0.392, allocations: 8.161 MB / 0.5056 GB, free: 13.78 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.713e-06/0.392, allocations: 7.938 kB / 0.5056 GB, free: 13.77 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005606/0.3976, allocations: 3.033 MB / 0.5086 GB, free: 10.67 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001096/0.3987, allocations: 306.8 kB / 0.5089 GB, free: 10.37 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004186/0.3991, allocations: 28 kB / 0.5089 GB, free: 10.34 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001104/0.4002, allocations: 91.78 kB / 0.509 GB, free: 10.25 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003033/0.4005, allocations: 100.8 kB / 0.5091 GB, free: 10.16 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001029/0.4006, allocations: 35.98 kB / 0.5091 GB, free: 10.12 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001928/0.4025, allocations: 0.9888 MB / 0.5101 GB, free: 9.133 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4025, allocations: 0 / 0.5101 GB, free: 9.133 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001776/0.4043, allocations: 463.9 kB / 0.5105 GB, free: 8.68 MB / 430.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.005787/0.4101, allocations: 3.67 MB / 0.5141 GB, free: 4.926 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003997/0.4141, allocations: 2.075 MB / 0.5161 GB, free: 2.812 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/0.4141, allocations: 4 kB / 0.5161 GB, free: 2.809 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002516/0.4166, allocations: 1.399 MB / 0.5175 GB, free: 1.355 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00234/0.419, allocations: 415.5 kB / 0.5179 GB, free: 0.9609 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2198/0.6388, allocations: 16.77 MB / 0.5343 GB, free: 103.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001798/0.6406, allocations: 1.232 MB / 0.5355 GB, free: 103.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001155/0.6418, allocations: 368.7 kB / 0.5358 GB, free: 103 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009044/0.6427, allocations: 0.8178 MB / 0.5366 GB, free: 103 MB / 446.1 MB Notification: Performance of SimCode: time 1.192e-06/0.6427, allocations: 3.875 kB / 0.5366 GB, free: 103 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08696/0.7296, allocations: 44.97 MB / 0.5805 GB, free: 65.43 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.15/13.88, allocations: 3.984 kB / 0.5805 GB, free: 65.43 MB / 446.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/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/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.311868539080024]