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.0008431/0.0008431, allocations: 84 kB / 21.43 MB, free: 3.129 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.003729/0.003729, allocations: 141 kB / 24.68 MB, free: 9.43 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.8193/0.8193, allocations: 173.4 MB / 201.2 MB, free: 9.426 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.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|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.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.412e-06/1.412e-06, allocations: 0 / 319.7 MB, free: 5.828 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.078e-05/2.219e-05, allocations: 2.281 kB / 319.7 MB, free: 5.824 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.00742/0.007443, allocations: 9.115 MB / 328.8 MB, free: 12.67 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003548/0.01099, allocations: 3.236 MB / 332 MB, free: 9.418 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005375/0.01153, allocations: 75.44 kB / 332.1 MB, free: 9.344 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001091/0.01262, allocations: 0.7724 MB / 332.9 MB, free: 8.566 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001333/0.01395, allocations: 0.9196 MB / 333.8 MB, free: 7.641 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006037/0.01456, allocations: 419.3 kB / 334.2 MB, free: 7.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002024/0.01658, allocations: 2.85 MB / 337.1 MB, free: 4.371 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001492/0.01807, allocations: 1.309 MB / 338.4 MB, free: 2.996 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001462/0.01953, allocations: 1.887 MB / 340.3 MB, free: 1.105 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001128/0.02066, allocations: 1.348 MB / 341.6 MB, free: 15.75 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000258/0.02092, allocations: 336 kB / 341.9 MB, free: 15.42 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004194/0.02134, allocations: 439.7 kB / 342.4 MB, free: 14.99 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005312/0.02187, allocations: 0.9738 MB / 343.4 MB, free: 14.02 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006265/0.0225, allocations: 1.025 MB / 344.4 MB, free: 12.99 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002571/0.02507, allocations: 4.436 MB / 348.8 MB, free: 8.539 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.115e-06/0.02507, allocations: 0 / 348.8 MB, free: 8.539 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.02507, allocations: 4 kB / 348.8 MB, free: 8.535 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.343e-05/0.02511, allocations: 0 / 348.8 MB, free: 8.535 MB / 314.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.003472/0.02858, allocations: 3.033 MB / 351.8 MB, free: 5.453 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.02861, allocations: 8.922 kB / 351.9 MB, free: 5.445 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004861/0.0291, allocations: 323 kB / 352.2 MB, free: 5.129 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001696/0.03079, allocations: 1.558 MB / 353.7 MB, free: 3.531 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.238e-05/0.03088, allocations: 168.8 kB / 353.9 MB, free: 3.363 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002041/0.03108, allocations: 228.2 kB / 354.1 MB, free: 3.141 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002959/0.03404, allocations: 3.017 MB / 357.1 MB, free: 12 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.043e-05/0.03408, allocations: 3.984 kB / 357.1 MB, free: 8 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001481/0.03423, allocations: 95.98 kB / 357.2 MB, free: 15.91 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.606e-05/0.0343, allocations: 112.3 kB / 357.3 MB, free: 15.8 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002729/0.03703, allocations: 2.43 MB / 359.8 MB, free: 13.36 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007388/0.04442, allocations: 7.835 MB / 367.6 MB, free: 5.262 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001289/0.04571, allocations: 1.174 MB / 368.8 MB, free: 4.078 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009862/0.0467, allocations: 0.9248 MB / 369.7 MB, free: 3.152 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001506/0.04685, allocations: 52.91 kB / 369.8 MB, free: 3.102 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.669e-05/0.04687, allocations: 47.55 kB / 369.8 MB, free: 3.043 MB / 330.7 MB Notification: Performance of pre-optimization done (n=105): time 3.006e-06/0.04688, allocations: 0 / 369.8 MB, free: 3.043 MB / 330.7 MB Notification: Performance of matching and sorting (n=122): time 0.007637/0.05451, allocations: 6.04 MB / 375.8 MB, free: 12.98 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.412e-05/0.05455, allocations: 68.34 kB / 375.9 MB, free: 12.9 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001187/0.05574, allocations: 1.421 MB / 377.3 MB, free: 11.47 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.367e-05/0.05579, allocations: 45.7 kB / 377.4 MB, free: 11.42 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004818/0.05627, allocations: 1.133 MB / 378.5 MB, free: 10.27 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002095/0.05648, allocations: 452.2 kB / 379 MB, free: 9.828 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002554/0.05674, allocations: 271.5 kB / 379.2 MB, free: 9.559 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.184e-05/0.0568, allocations: 305.1 kB / 379.5 MB, free: 9.258 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009472/0.05775, allocations: 0.7066 MB / 380.2 MB, free: 8.551 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008816/0.05863, allocations: 1.142 MB / 381.4 MB, free: 7.219 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001659/0.06029, allocations: 1.967 MB / 383.3 MB, free: 5.07 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.06029, allocations: 4 kB / 383.3 MB, free: 5.066 MB / 346.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.002378/0.06267, allocations: 2.44 MB / 385.8 MB, free: 2.605 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.06269, allocations: 10.97 kB / 385.8 MB, free: 2.598 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.0627, allocations: 16 kB / 385.8 MB, free: 2.582 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005484/0.06325, allocations: 419.3 kB / 386.2 MB, free: 2.16 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006362/0.06389, allocations: 355.4 kB / 386.6 MB, free: 1.812 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004517/0.0684, allocations: 6.705 MB / 393.3 MB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007975/0.0692, allocations: 103.8 kB / 393.4 MB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001004/0.0693, allocations: 60 kB / 393.4 MB, free: 10.64 MB / 362.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.001226/0.07053, allocations: 0.7169 MB / 394.1 MB, free: 9.918 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001637/0.07069, allocations: 167 kB / 394.3 MB, free: 9.754 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002214/0.0729, allocations: 2.106 MB / 396.4 MB, free: 7.621 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.754e-06/0.07291, allocations: 12 kB / 396.4 MB, free: 7.609 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.07292, allocations: 8 kB / 396.4 MB, free: 7.602 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.196e-06/0.07292, allocations: 7.922 kB / 396.4 MB, free: 7.594 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004269/0.07719, allocations: 4.122 MB / 400.6 MB, free: 3.363 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/0.0772, allocations: 4 kB / 400.6 MB, free: 3.359 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004737/0.07767, allocations: 219.7 kB / 400.8 MB, free: 3.145 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008436/0.07852, allocations: 443.5 kB / 401.2 MB, free: 2.699 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.822e-05/0.07857, allocations: 39.98 kB / 401.2 MB, free: 2.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004771/0.08335, allocations: 8.122 MB / 409.4 MB, free: 10.13 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.08335, allocations: 4 kB / 409.4 MB, free: 10.13 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002897/0.08624, allocations: 3.124 MB / 412.5 MB, free: 6.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004113/0.08666, allocations: 310.8 kB / 412.8 MB, free: 6.625 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001121/0.08677, allocations: 39.98 kB / 412.8 MB, free: 6.586 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004274/0.0872, allocations: 79.91 kB / 412.9 MB, free: 6.508 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001423/0.08734, allocations: 108.7 kB / 413 MB, free: 6.402 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.686e-05/0.08738, allocations: 39.98 kB / 413.1 MB, free: 6.363 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008387/0.08822, allocations: 0.9494 MB / 414 MB, free: 5.414 MB / 378.7 MB Notification: Performance of sort global known variables: time 4e-08/0.08822, allocations: 0 / 414 MB, free: 5.414 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001011/0.08923, allocations: 487.9 kB / 414.5 MB, free: 4.938 MB / 378.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.0002868/0.08952, allocations: 199 kB / 414.7 MB, free: 4.734 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002355/0.09188, allocations: 2.151 MB / 416.8 MB, free: 2.535 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.09188, allocations: 0 / 416.8 MB, free: 2.535 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001232/0.09311, allocations: 1.415 MB / 418.3 MB, free: 1.07 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001014/0.09412, allocations: 419.7 kB / 418.7 MB, free: 0.6641 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00463/0.09876, allocations: 4.614 MB / 423.3 MB, free: 11.96 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009041/0.09966, allocations: 1.269 MB / 424.5 MB, free: 10.66 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002599/0.09992, allocations: 132.5 kB / 424.7 MB, free: 10.53 MB / 394.7 MB Notification: Performance of SimCode: time 7.62e-07/0.09992, allocations: 0 / 424.7 MB, free: 10.53 MB / 394.7 MB Notification: Performance of Templates: time 0.1631/0.263, allocations: 73.88 MB / 498.6 MB, free: 81.38 MB / 410.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 7.994735467247665]