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.0009764/0.0009764, allocations: 79.69 kB / 21.7 MB, free: 2.848 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.001199/0.001199, allocations: 167.7 kB / 24.99 MB, free: 8.219 MB / 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 0.9958/0.9958, allocations: 177 MB / 205.2 MB, free: 5.527 MB / 186.7 MB " [Timeout remaining time 179] 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.[0-9,]+.|smpm.idq_dr.[0-9,]+.|smpm.idq_rr.[0-9,]+.|smpm.idq_sr.[0-9,]+.|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.[0-9,]+.|smpm.idq_dr.[0-9,]+.|smpm.idq_rr.[0-9,]+.|smpm.idq_sr.[0-9,]+.|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 273 MB, free: 1.703 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.267e-05/2.423e-05, allocations: 5.406 kB / 273 MB, free: 1.699 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.02421/0.02424, allocations: 10.24 MB / 283.3 MB, free: 7.41 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005775/0.03001, allocations: 3.42 MB / 286.7 MB, free: 3.977 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001262/0.03127, allocations: 71.5 kB / 286.7 MB, free: 3.906 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001741/0.03301, allocations: 0.7684 MB / 287.5 MB, free: 3.133 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002493/0.03551, allocations: 0.9235 MB / 288.4 MB, free: 2.203 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001027/0.03653, allocations: 423.3 kB / 288.8 MB, free: 1.789 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1259/0.1625, allocations: 2.867 MB / 291.7 MB, free: 15.28 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0022/0.1647, allocations: 1.308 MB / 293 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002737/0.1674, allocations: 1.912 MB / 294.9 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002265/0.1697, allocations: 1.479 MB / 296.4 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009963/0.1707, allocations: 335.8 kB / 296.7 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001109/0.1718, allocations: 437.9 kB / 297.2 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009259/0.1727, allocations: 0.9947 MB / 298.2 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001821/0.1745, allocations: 1.043 MB / 299.2 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003397/0.1779, allocations: 2.432 MB / 301.6 MB, free: 13.98 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1779, allocations: 0 / 301.6 MB, free: 13.98 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1779, allocations: 2.156 kB / 301.6 MB, free: 13.98 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001038/0.178, allocations: 0 / 301.6 MB, free: 13.98 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.004476/0.1825, allocations: 3.223 MB / 304.9 MB, free: 12.12 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.1825, allocations: 17.17 kB / 304.9 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009977/0.1835, allocations: 0.5033 MB / 305.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002031/0.1856, allocations: 1.529 MB / 306.9 MB, free: 11.1 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.791e-05/0.1856, allocations: 168.8 kB / 307.1 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002185/0.1859, allocations: 224.2 kB / 307.3 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002588/0.1884, allocations: 1.814 MB / 309.1 MB, free: 10.17 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.27e-05/0.1885, allocations: 10.89 kB / 309.1 MB, free: 10.16 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001388/0.1886, allocations: 88.62 kB / 309.2 MB, free: 10.1 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.432e-05/0.1887, allocations: 110.6 kB / 309.3 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001681/0.1904, allocations: 0.8348 MB / 310.1 MB, free: 9.883 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007566/0.198, allocations: 7.485 MB / 317.6 MB, free: 2.922 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009558/0.1989, allocations: 0.6699 MB / 318.3 MB, free: 2.254 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006858/0.1996, allocations: 0.5125 MB / 318.8 MB, free: 1.746 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001597/0.1998, allocations: 59.88 kB / 318.9 MB, free: 1.691 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.488e-05/0.1998, allocations: 50.39 kB / 318.9 MB, free: 1.629 MB / 266.7 MB Notification: Performance of pre-optimization done (n=105): time 3.246e-06/0.1998, allocations: 0 / 318.9 MB, free: 1.629 MB / 266.7 MB Notification: Performance of matching and sorting (n=122): time 0.005641/0.2054, allocations: 3.291 MB / 322.2 MB, free: 14.34 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.111e-05/0.2055, allocations: 68.34 kB / 322.3 MB, free: 14.26 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001539/0.207, allocations: 1.288 MB / 323.6 MB, free: 12.95 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.656e-05/0.2071, allocations: 45.7 kB / 323.6 MB, free: 12.89 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006706/0.2078, allocations: 1.233 MB / 324.8 MB, free: 11.66 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003068/0.2081, allocations: 443.3 kB / 325.3 MB, free: 11.23 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003143/0.2084, allocations: 281.1 kB / 325.6 MB, free: 10.94 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.2085, allocations: 476.8 kB / 326 MB, free: 10.47 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004637/0.209, allocations: 231.8 kB / 326.2 MB, free: 10.25 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000765/0.2097, allocations: 0.8372 MB / 327.1 MB, free: 9.164 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00131/0.211, allocations: 1.191 MB / 328.3 MB, free: 7.781 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.013e-05/0.211, allocations: 0.6875 kB / 328.3 MB, free: 7.781 MB / 282.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.002418/0.2135, allocations: 1.424 MB / 329.7 MB, free: 6.426 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.485e-05/0.2135, allocations: 8 kB / 329.7 MB, free: 6.418 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.096e-05/0.2135, allocations: 16 kB / 329.7 MB, free: 6.402 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006596/0.2142, allocations: 260.9 kB / 330 MB, free: 6.137 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007646/0.2149, allocations: 344.1 kB / 330.3 MB, free: 5.82 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004604/0.2196, allocations: 6.66 MB / 337 MB, free: 14.85 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009968/0.2205, allocations: 99.86 kB / 337.1 MB, free: 14.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.885e-05/0.2206, allocations: 63.98 kB / 337.1 MB, free: 14.69 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.0007833/0.2214, allocations: 253.4 kB / 337.4 MB, free: 14.45 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003415/0.2218, allocations: 206.3 kB / 337.6 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00177/0.2235, allocations: 1.154 MB / 338.7 MB, free: 13.08 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.638e-06/0.2235, allocations: 15.31 kB / 338.8 MB, free: 13.07 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.2235, allocations: 8 kB / 338.8 MB, free: 13.06 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.41e-05/0.2236, allocations: 7.969 kB / 338.8 MB, free: 13.05 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004517/0.2281, allocations: 3.155 MB / 341.9 MB, free: 9.836 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.723e-06/0.2281, allocations: 4 kB / 341.9 MB, free: 9.832 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000542/0.2286, allocations: 213.9 kB / 342.1 MB, free: 9.633 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000701/0.2293, allocations: 303.5 kB / 342.4 MB, free: 9.328 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.537e-05/0.2294, allocations: 31.98 kB / 342.5 MB, free: 9.297 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004856/0.2343, allocations: 8.455 MB / 350.9 MB, free: 404 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.164e-05/0.2343, allocations: 4 kB / 350.9 MB, free: 400 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002544/0.2368, allocations: 1.692 MB / 352.6 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005574/0.2374, allocations: 298.8 kB / 352.9 MB, free: 14.32 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001487/0.2375, allocations: 28 kB / 352.9 MB, free: 14.3 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004744/0.238, allocations: 79.91 kB / 353 MB, free: 14.22 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001819/0.2382, allocations: 107.9 kB / 353.1 MB, free: 14.12 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.222e-05/0.2382, allocations: 43.98 kB / 353.2 MB, free: 14.08 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008781/0.2391, allocations: 0.7505 MB / 353.9 MB, free: 13.33 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2391, allocations: 0 / 353.9 MB, free: 13.33 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001304/0.2404, allocations: 483.9 kB / 354.4 MB, free: 12.86 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.0003202/0.2407, allocations: 196.1 kB / 354.6 MB, free: 12.67 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001923/0.2427, allocations: 1.524 MB / 356.1 MB, free: 11.13 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.2427, allocations: 4.062 kB / 356.1 MB, free: 11.13 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001635/0.2443, allocations: 1.288 MB / 357.4 MB, free: 9.801 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001281/0.2456, allocations: 449.8 kB / 357.8 MB, free: 9.387 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00549/0.2511, allocations: 4.041 MB / 361.9 MB, free: 5.254 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000524/0.2516, allocations: 0.5927 MB / 362.5 MB, free: 4.633 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006828/0.2523, allocations: 310 kB / 362.8 MB, free: 4.324 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002429/0.2525, allocations: 120.5 kB / 362.9 MB, free: 4.207 MB / 314.7 MB Notification: Performance of SimCode: time 1.733e-06/0.2525, allocations: 0 / 362.9 MB, free: 4.207 MB / 314.7 MB Notification: Performance of Templates: time 0.03067/0.2832, allocations: 25.62 MB / 388.5 MB, free: 11.01 MB / 346.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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.5649118279106915]