Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_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.002578/0.002578, allocations: 107.5 kB / 20.97 MB, free: 3.449 MB / 18.57 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.003018/0.003018, allocations: 156.8 kB / 24.27 MB, free: 156 kB / 18.57 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.559/1.559, allocations: 177 MB / 204.5 MB, free: 5.629 MB / 186.7 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: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.323e-06/1.323e-06, allocations: 0 / 272.2 MB, free: 1.809 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.797e-05/2.93e-05, allocations: 2.312 kB / 272.2 MB, free: 1.805 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01503/0.01506, allocations: 10.19 MB / 282.4 MB, free: 7.57 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007937/0.023, allocations: 3.416 MB / 285.8 MB, free: 4.141 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001378/0.02438, allocations: 71.5 kB / 285.9 MB, free: 4.07 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002014/0.02639, allocations: 0.7722 MB / 286.7 MB, free: 3.293 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002738/0.02913, allocations: 0.9119 MB / 287.6 MB, free: 2.375 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00108/0.03021, allocations: 435.2 kB / 288 MB, free: 1.949 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1162/0.1464, allocations: 2.848 MB / 290.8 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001986/0.1484, allocations: 1.307 MB / 292.2 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002631/0.151, allocations: 1.915 MB / 294.1 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002141/0.1531, allocations: 1.478 MB / 295.5 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004899/0.1536, allocations: 333.9 kB / 295.9 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008677/0.1545, allocations: 439.4 kB / 296.3 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009262/0.1554, allocations: 0.9918 MB / 297.3 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00121/0.1566, allocations: 1.045 MB / 298.3 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003732/0.1604, allocations: 4.482 MB / 302.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.1604, allocations: 0.625 kB / 302.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1604, allocations: 1.531 kB / 302.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.333e-05/0.1604, allocations: 0 / 302.8 MB, free: 13.59 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.005756/0.1662, allocations: 3.456 MB / 306.3 MB, free: 11.23 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.557e-05/0.1662, allocations: 20.34 kB / 306.3 MB, free: 11.23 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00114/0.1674, allocations: 0.4986 MB / 306.8 MB, free: 11 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002575/0.17, allocations: 1.544 MB / 308.3 MB, free: 10.01 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.464e-05/0.1701, allocations: 169.2 kB / 308.5 MB, free: 9.93 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002778/0.1703, allocations: 222 kB / 308.7 MB, free: 9.855 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003745/0.1741, allocations: 2.742 MB / 311.5 MB, free: 8.121 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.837e-05/0.1741, allocations: 0 / 311.5 MB, free: 8.121 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001938/0.1743, allocations: 92.41 kB / 311.6 MB, free: 8.051 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.635e-05/0.1744, allocations: 121 kB / 311.7 MB, free: 8.027 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002875/0.1773, allocations: 1.75 MB / 313.4 MB, free: 6.637 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0149/0.1922, allocations: 10.49 MB / 323.9 MB, free: 11.85 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002032/0.1942, allocations: 0.8322 MB / 324.7 MB, free: 11.02 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001581/0.1958, allocations: 0.6326 MB / 325.4 MB, free: 10.38 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002584/0.1961, allocations: 50.84 kB / 325.4 MB, free: 10.33 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.977e-05/0.1961, allocations: 46.39 kB / 325.5 MB, free: 10.28 MB / 282.7 MB Notification: Performance of pre-optimization done (n=105): time 3.136e-06/0.1961, allocations: 0 / 325.5 MB, free: 10.28 MB / 282.7 MB Notification: Performance of matching and sorting (n=122): time 0.01138/0.2075, allocations: 3.771 MB / 329.2 MB, free: 6.516 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.369e-05/0.2076, allocations: 68.34 kB / 329.3 MB, free: 6.438 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002882/0.2105, allocations: 1.721 MB / 331 MB, free: 4.688 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001181/0.2106, allocations: 49.7 kB / 331.1 MB, free: 4.633 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001309/0.2119, allocations: 1.293 MB / 332.4 MB, free: 3.332 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005705/0.2125, allocations: 497.3 kB / 332.9 MB, free: 2.852 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005936/0.213, allocations: 325.2 kB / 333.2 MB, free: 2.527 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002529/0.2133, allocations: 484.7 kB / 333.7 MB, free: 2.051 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009175/0.2142, allocations: 371.8 kB / 334 MB, free: 1.688 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001829/0.216, allocations: 1.023 MB / 335 MB, free: 428 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002616/0.2187, allocations: 1.537 MB / 336.6 MB, free: 14.69 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.013e-05/0.2187, allocations: 8 kB / 336.6 MB, free: 14.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.003973/0.2226, allocations: 1.715 MB / 338.3 MB, free: 13.04 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.819e-05/0.2227, allocations: 8 kB / 338.3 MB, free: 13.03 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.705e-05/0.2227, allocations: 19.98 kB / 338.3 MB, free: 13.01 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001066/0.2238, allocations: 281.5 kB / 338.6 MB, free: 12.72 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001346/0.2251, allocations: 347.7 kB / 338.9 MB, free: 12.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008317/0.2334, allocations: 6.922 MB / 345.9 MB, free: 5.172 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001664/0.2351, allocations: 107.8 kB / 346 MB, free: 5.066 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001428/0.2352, allocations: 63.98 kB / 346 MB, free: 5.004 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (169): * Single equations (assignments): 165 * 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,12,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.001353/0.2366, allocations: 0.5843 MB / 346.6 MB, free: 4.43 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005124/0.2371, allocations: 203 kB / 346.8 MB, free: 4.23 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003456/0.2406, allocations: 1.353 MB / 348.2 MB, free: 2.859 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.627e-05/0.2406, allocations: 16.03 kB / 348.2 MB, free: 2.844 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.957e-06/0.2406, allocations: 4 kB / 348.2 MB, free: 2.84 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.36e-05/0.2406, allocations: 3.984 kB / 348.2 MB, free: 2.836 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009619/0.2502, allocations: 3.913 MB / 352.1 MB, free: 14.85 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.27e-05/0.2502, allocations: 4.469 kB / 352.1 MB, free: 14.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001034/0.2513, allocations: 218.5 kB / 352.3 MB, free: 14.64 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001301/0.2526, allocations: 310.4 kB / 352.6 MB, free: 14.32 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001079/0.2527, allocations: 31.98 kB / 352.7 MB, free: 14.29 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01015/0.2628, allocations: 8.688 MB / 361.3 MB, free: 5.168 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.56e-06/0.2628, allocations: 8 kB / 361.3 MB, free: 5.16 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004829/0.2677, allocations: 2.02 MB / 363.4 MB, free: 3.062 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001215/0.2689, allocations: 298.8 kB / 363.7 MB, free: 2.77 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005922/0.2695, allocations: 35.55 kB / 363.7 MB, free: 2.738 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009896/0.2705, allocations: 83.86 kB / 363.8 MB, free: 2.656 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003079/0.2708, allocations: 108.1 kB / 363.9 MB, free: 2.555 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.643e-05/0.2709, allocations: 35.98 kB / 363.9 MB, free: 2.52 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001864/0.2727, allocations: 1 MB / 364.9 MB, free: 1.52 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2727, allocations: 0 / 364.9 MB, free: 1.52 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002414/0.2751, allocations: 487.9 kB / 365.4 MB, free: 1.043 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],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 (107): * Single equations (assignments): 103 * 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,12,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.0005911/0.2757, allocations: 197.7 kB / 365.6 MB, free: 0.8477 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004055/0.2798, allocations: 1.792 MB / 367.4 MB, free: 15.05 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/0.2798, allocations: 4 kB / 367.4 MB, free: 15.05 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002627/0.2824, allocations: 1.417 MB / 368.8 MB, free: 13.59 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002724/0.2851, allocations: 440.8 kB / 369.2 MB, free: 13.18 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009252/0.2944, allocations: 4.198 MB / 373.4 MB, free: 8.883 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001717/0.2961, allocations: 1.223 MB / 374.7 MB, free: 7.617 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001254/0.2974, allocations: 305.7 kB / 375 MB, free: 7.312 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004204/0.2978, allocations: 116.5 kB / 375.1 MB, free: 7.195 MB / 330.7 MB Notification: Performance of SimCode: time 1.423e-06/0.2978, allocations: 4 kB / 375.1 MB, free: 7.191 MB / 330.7 MB Notification: Performance of Templates: time 0.05311/0.3509, allocations: 25.6 MB / 400.7 MB, free: 14.01 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.794857493019663]