Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_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.001248/0.001248, allocations: 85.17 kB / 21.5 MB, free: 2.992 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.00133/0.00133, allocations: 143.5 kB / 24.89 MB, free: 8.742 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.9077/0.9077, allocations: 173.4 MB / 201.5 MB, free: 8.266 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.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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.382e-06/1.382e-06, allocations: 0 / 268.5 MB, free: 9.766 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.125e-05/1.263e-05, allocations: 6.312 kB / 268.5 MB, free: 9.758 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.00783/0.007842, allocations: 9.971 MB / 278.5 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004232/0.01207, allocations: 3.465 MB / 281.9 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000526/0.0126, allocations: 71.5 kB / 282 MB, free: 12.22 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001047/0.01365, allocations: 0.7606 MB / 282.8 MB, free: 11.46 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001319/0.01497, allocations: 0.9313 MB / 283.7 MB, free: 10.52 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005306/0.0155, allocations: 431.3 kB / 284.1 MB, free: 10.1 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001846/0.01734, allocations: 2.859 MB / 287 MB, free: 7.227 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001082/0.01843, allocations: 1.344 MB / 288.3 MB, free: 5.797 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001747/0.02017, allocations: 2.121 MB / 290.4 MB, free: 3.672 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001022/0.02119, allocations: 1.383 MB / 291.8 MB, free: 2.285 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002438/0.02144, allocations: 328 kB / 292.1 MB, free: 1.965 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004185/0.02186, allocations: 423.8 kB / 292.6 MB, free: 1.551 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005169/0.02237, allocations: 0.9309 MB / 293.5 MB, free: 0.6172 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006636/0.02304, allocations: 1.017 MB / 294.5 MB, free: 15.6 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001638/0.02467, allocations: 2.367 MB / 296.9 MB, free: 13.23 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.863e-06/0.02468, allocations: 0 / 296.9 MB, free: 13.23 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.02468, allocations: 4 kB / 296.9 MB, free: 13.22 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.648e-05/0.02469, allocations: 0 / 296.9 MB, free: 13.22 MB / 282.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.002721/0.02741, allocations: 2.805 MB / 299.7 MB, free: 10.38 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.02745, allocations: 12.03 kB / 299.7 MB, free: 10.36 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006016/0.02805, allocations: 404.5 kB / 300.1 MB, free: 9.969 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001286/0.02934, allocations: 1.153 MB / 301.2 MB, free: 8.758 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.22e-05/0.02943, allocations: 168.8 kB / 301.4 MB, free: 8.59 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002145/0.02965, allocations: 224.3 kB / 301.6 MB, free: 8.371 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001637/0.03128, allocations: 1.699 MB / 303.3 MB, free: 6.559 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.903e-05/0.03132, allocations: 4 kB / 303.3 MB, free: 6.555 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001295/0.03145, allocations: 88 kB / 303.4 MB, free: 6.469 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.088e-05/0.03153, allocations: 112.3 kB / 303.5 MB, free: 6.355 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009195/0.03245, allocations: 0.6541 MB / 304.2 MB, free: 5.66 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005595/0.03805, allocations: 5.866 MB / 310 MB, free: 15.54 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000749/0.0388, allocations: 0.6531 MB / 310.7 MB, free: 14.88 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005131/0.03931, allocations: 427.4 kB / 311.1 MB, free: 14.46 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001483/0.03946, allocations: 60.91 kB / 311.2 MB, free: 14.4 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.56e-05/0.03948, allocations: 47.55 kB / 311.2 MB, free: 14.34 MB / 298.7 MB Notification: Performance of pre-optimization done (n=105): time 1.954e-06/0.03949, allocations: 0 / 311.2 MB, free: 14.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=122): time 0.0039/0.04339, allocations: 2.569 MB / 313.8 MB, free: 11.74 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.643e-05/0.04341, allocations: 68.34 kB / 313.9 MB, free: 11.66 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006842/0.0441, allocations: 1.062 MB / 314.9 MB, free: 10.59 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.602e-05/0.04415, allocations: 45.7 kB / 315 MB, free: 10.54 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003555/0.04451, allocations: 0.9404 MB / 315.9 MB, free: 9.582 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002159/0.04472, allocations: 440.1 kB / 316.3 MB, free: 9.148 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002413/0.04497, allocations: 263.4 kB / 316.6 MB, free: 8.883 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.901e-05/0.04502, allocations: 301.1 kB / 316.9 MB, free: 8.586 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002282/0.04525, allocations: 174.8 kB / 317.1 MB, free: 8.414 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003888/0.04564, allocations: 0.5836 MB / 317.6 MB, free: 7.648 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000772/0.04641, allocations: 0.918 MB / 318.6 MB, free: 6.547 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.67e-06/0.04642, allocations: 7.984 kB / 318.6 MB, free: 6.539 MB / 298.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.001143/0.04756, allocations: 1.035 MB / 319.6 MB, free: 5.477 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.04758, allocations: 12.28 kB / 319.6 MB, free: 5.465 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.04759, allocations: 16 kB / 319.6 MB, free: 5.449 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000452/0.04804, allocations: 243.6 kB / 319.9 MB, free: 5.195 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005723/0.04862, allocations: 303.5 kB / 320.2 MB, free: 4.898 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002644/0.05126, allocations: 4.767 MB / 324.9 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003901/0.05165, allocations: 55.94 kB / 325 MB, free: 15.81 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.979e-05/0.05171, allocations: 48.16 kB / 325 MB, free: 15.76 MB / 314.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.0002992/0.05201, allocations: 220.2 kB / 325.2 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001621/0.05217, allocations: 131.9 kB / 325.4 MB, free: 15.41 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00126/0.05343, allocations: 0.8764 MB / 326.2 MB, free: 14.5 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.05344, allocations: 16 kB / 326.3 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.05344, allocations: 4 kB / 326.3 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.786e-06/0.05345, allocations: 7.969 kB / 326.3 MB, free: 14.47 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002579/0.05603, allocations: 2.512 MB / 328.8 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.05603, allocations: 0 / 328.8 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004182/0.05645, allocations: 191.7 kB / 329 MB, free: 11.65 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005275/0.05698, allocations: 307.7 kB / 329.3 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.322e-05/0.05703, allocations: 35.98 kB / 329.3 MB, free: 11.3 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003143/0.06018, allocations: 5.928 MB / 335.2 MB, free: 4.992 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.06018, allocations: 4 kB / 335.2 MB, free: 4.988 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001269/0.06145, allocations: 1.303 MB / 336.5 MB, free: 3.594 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002772/0.06172, allocations: 210.8 kB / 336.8 MB, free: 3.387 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001123/0.06184, allocations: 31.98 kB / 336.8 MB, free: 3.355 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003294/0.06217, allocations: 43.98 kB / 336.8 MB, free: 3.312 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001202/0.06229, allocations: 104.7 kB / 336.9 MB, free: 3.207 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.23e-05/0.06233, allocations: 31.98 kB / 337 MB, free: 3.176 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003858/0.06271, allocations: 0.5199 MB / 337.5 MB, free: 2.652 MB / 314.7 MB Notification: Performance of sort global known variables: time 2e-08/0.06271, allocations: 0 / 337.5 MB, free: 2.652 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008633/0.06358, allocations: 480.1 kB / 337.9 MB, free: 2.184 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%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002449/0.06382, allocations: 176 kB / 338.1 MB, free: 2.004 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001112/0.06493, allocations: 1.181 MB / 339.3 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.058e-05/0.06495, allocations: 20.5 kB / 339.3 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.066, allocations: 0.9542 MB / 340.3 MB, free: 15.76 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009051/0.0669, allocations: 424.3 kB / 340.7 MB, free: 15.35 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003796/0.0707, allocations: 3.816 MB / 344.5 MB, free: 11.43 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003944/0.07109, allocations: 0.534 MB / 345 MB, free: 10.86 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004255/0.07152, allocations: 209.9 kB / 345.2 MB, free: 10.65 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006137/0.07213, allocations: 419.1 kB / 345.7 MB, free: 10.23 MB / 330.7 MB Notification: Performance of SimCode: time 6.11e-07/0.07213, allocations: 0 / 345.7 MB, free: 10.23 MB / 330.7 MB Notification: Performance of Templates: time 0.1311/0.2033, allocations: 26.02 MB / 371.7 MB, free: 79.77 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.3188119460828602]