Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 72.08 kB / 21.69 MB, free: 2.863 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001254/0.001254, allocations: 139.8 kB / 24.97 MB, free: 8.371 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9634/0.9634, allocations: 173.3 MB / 201.5 MB, free: 9.281 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.[0-9,]+.|smr.idq_rr.[0-9,]+.|smr.idq_sr.[0-9,]+.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.[0-9,]+.|smr.idq_rr.[0-9,]+.|smr.idq_sr.[0-9,]+.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.264e-06/2.264e-06, allocations: 0 / 268.1 MB, free: 6.691 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.939e-05/3.165e-05, allocations: 6.25 kB / 268.1 MB, free: 6.684 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01906/0.0191, allocations: 9.519 MB / 277.6 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01143/0.03053, allocations: 3.046 MB / 280.6 MB, free: 10.07 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004393/0.03492, allocations: 75.44 kB / 280.7 MB, free: 9.996 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001593/0.03652, allocations: 0.6597 MB / 281.4 MB, free: 9.332 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005052/0.04157, allocations: 0.8458 MB / 282.2 MB, free: 8.48 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007327/0.0423, allocations: 395.4 kB / 282.6 MB, free: 8.094 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005199/0.0475, allocations: 2.637 MB / 285.3 MB, free: 5.445 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001732/0.04923, allocations: 1.264 MB / 286.5 MB, free: 4.117 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002369/0.0516, allocations: 1.782 MB / 288.3 MB, free: 2.332 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001928/0.05353, allocations: 1.407 MB / 289.7 MB, free: 0.9219 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005339/0.05406, allocations: 320 kB / 290 MB, free: 0.6094 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006813/0.05474, allocations: 419.7 kB / 290.4 MB, free: 204 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1285/0.1832, allocations: 0.9417 MB / 291.4 MB, free: 19.11 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002397/0.1856, allocations: 0.9828 MB / 292.4 MB, free: 19.11 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003603/0.1892, allocations: 2.301 MB / 294.7 MB, free: 18.92 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.204e-06/0.1893, allocations: 2.969 kB / 294.7 MB, free: 18.92 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1893, allocations: 0 / 294.7 MB, free: 18.92 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001062/0.1894, allocations: 0 / 294.7 MB, free: 18.92 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.005976/0.1953, allocations: 3.053 MB / 297.7 MB, free: 17.64 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.1954, allocations: 10.27 kB / 297.7 MB, free: 17.64 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001018/0.1964, allocations: 480.2 kB / 298.2 MB, free: 17.5 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002256/0.1987, allocations: 1.431 MB / 299.6 MB, free: 17.08 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001172/0.1988, allocations: 156.7 kB / 299.8 MB, free: 17.07 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002939/0.1991, allocations: 216.4 kB / 300 MB, free: 17.07 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003283/0.2024, allocations: 1.728 MB / 301.7 MB, free: 16.49 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.92e-05/0.2024, allocations: 10.5 kB / 301.7 MB, free: 16.48 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000181/0.2026, allocations: 85.03 kB / 301.8 MB, free: 16.42 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001161/0.2027, allocations: 104.5 kB / 301.9 MB, free: 16.41 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002135/0.2048, allocations: 0.7995 MB / 302.7 MB, free: 16.27 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009241/0.2141, allocations: 7.007 MB / 309.7 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001187/0.2153, allocations: 0.6736 MB / 310.4 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008701/0.2161, allocations: 0.4912 MB / 310.9 MB, free: 11.9 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001774/0.2163, allocations: 60.62 kB / 310.9 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.929e-05/0.2163, allocations: 50.55 kB / 311 MB, free: 11.85 MB / 266.7 MB Notification: Performance of pre-optimization done (n=101): time 4.429e-06/0.2164, allocations: 0 / 311 MB, free: 11.85 MB / 266.7 MB Notification: Performance of matching and sorting (n=116): time 0.006359/0.2227, allocations: 3.16 MB / 314.1 MB, free: 10.43 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.786e-05/0.2227, allocations: 62.75 kB / 314.2 MB, free: 10.37 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001301/0.224, allocations: 1.173 MB / 315.4 MB, free: 9.422 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.348e-05/0.2241, allocations: 45.7 kB / 315.4 MB, free: 9.371 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004625/0.2246, allocations: 1.14 MB / 316.6 MB, free: 8.223 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002159/0.2248, allocations: 430.8 kB / 317 MB, free: 7.809 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002976/0.2251, allocations: 261.2 kB / 317.2 MB, free: 7.543 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.709e-05/0.2252, allocations: 0.5433 MB / 317.8 MB, free: 6.992 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004314/0.2256, allocations: 219.9 kB / 318 MB, free: 6.777 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005887/0.2262, allocations: 0.7595 MB / 318.8 MB, free: 5.809 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001156/0.2273, allocations: 1.087 MB / 319.8 MB, free: 4.547 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.326e-06/0.2274, allocations: 6.25 kB / 319.9 MB, free: 4.543 MB / 266.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.002098/0.2294, allocations: 1.331 MB / 321.2 MB, free: 3.27 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.406e-05/0.2295, allocations: 14.97 kB / 321.2 MB, free: 3.258 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.662e-05/0.2295, allocations: 12.25 kB / 321.2 MB, free: 3.246 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007383/0.2302, allocations: 254.7 kB / 321.5 MB, free: 2.988 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008673/0.2311, allocations: 325.5 kB / 321.8 MB, free: 2.691 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00412/0.2352, allocations: 6.614 MB / 328.4 MB, free: 11.76 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009145/0.2361, allocations: 99.8 kB / 328.5 MB, free: 11.66 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.914e-05/0.2362, allocations: 68.48 kB / 328.6 MB, free: 11.61 MB / 282.7 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.0007074/0.2369, allocations: 239.9 kB / 328.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003006/0.2372, allocations: 195 kB / 329 MB, free: 11.19 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001692/0.2389, allocations: 1.087 MB / 330.1 MB, free: 10.09 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.2389, allocations: 8 kB / 330.1 MB, free: 10.08 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.782e-06/0.2389, allocations: 4 kB / 330.1 MB, free: 10.07 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.069e-05/0.239, allocations: 15.91 kB / 330.1 MB, free: 10.06 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004139/0.2431, allocations: 3.002 MB / 333.1 MB, free: 7 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/0.2431, allocations: 4 kB / 333.1 MB, free: 6.996 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005049/0.2436, allocations: 205 kB / 333.3 MB, free: 6.805 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006825/0.2443, allocations: 302.5 kB / 333.6 MB, free: 6.5 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.319e-05/0.2444, allocations: 31.98 kB / 333.6 MB, free: 6.469 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004656/0.249, allocations: 8.408 MB / 342 MB, free: 13.62 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.249, allocations: 4 kB / 342 MB, free: 13.62 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002394/0.2514, allocations: 1.605 MB / 343.6 MB, free: 11.94 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005488/0.252, allocations: 267 kB / 343.9 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001386/0.2521, allocations: 35.98 kB / 343.9 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004503/0.2526, allocations: 71.92 kB / 344 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002154/0.2528, allocations: 104.3 kB / 344.1 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.184e-05/0.2528, allocations: 36 kB / 344.1 MB, free: 11.44 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008635/0.2537, allocations: 0.692 MB / 344.8 MB, free: 10.75 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2537, allocations: 0 / 344.8 MB, free: 10.75 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00136/0.255, allocations: 455.9 kB / 345.3 MB, free: 10.3 MB / 298.7 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.0003367/0.2554, allocations: 207.7 kB / 345.5 MB, free: 10.11 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00188/0.2573, allocations: 1.482 MB / 347 MB, free: 8.609 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.2573, allocations: 0 / 347 MB, free: 8.609 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001179/0.2584, allocations: 1.259 MB / 348.2 MB, free: 7.301 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001165/0.2596, allocations: 373.9 kB / 348.6 MB, free: 6.945 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005289/0.2649, allocations: 3.81 MB / 352.4 MB, free: 3.059 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000504/0.2654, allocations: 0.5559 MB / 353 MB, free: 2.473 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0007402/0.2661, allocations: 292.5 kB / 353.2 MB, free: 2.18 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002529/0.2664, allocations: 108.5 kB / 353.3 MB, free: 2.07 MB / 298.7 MB Notification: Performance of SimCode: time 1.863e-06/0.2664, allocations: 0 / 353.3 MB, free: 2.07 MB / 298.7 MB Notification: Performance of Templates: time 0.03069/0.2971, allocations: 23.31 MB / 376.7 MB, free: 11.13 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_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.468121913028881]