Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001915/0.001915, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001959/0.001959, allocations: 211 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.723/1.723, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001661/0.001661, allocations: 51.92 kB / 378.2 MB, free: 2.457 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2283/0.23, allocations: 53.37 MB / 431.6 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01199/0.242, allocations: 9.144 MB / 440.7 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006456/0.2484, allocations: 3.289 MB / 444 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001138/0.2496, allocations: 71.5 kB / 444.1 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001774/0.2513, allocations: 0.7644 MB / 444.9 MB, free: 9.402 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002813/0.2541, allocations: 0.8892 MB / 445.7 MB, free: 8.508 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001331/0.2555, allocations: 427.4 kB / 446.2 MB, free: 8.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00364/0.2591, allocations: 2.763 MB / 448.9 MB, free: 5.316 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001953/0.2611, allocations: 1.356 MB / 450.3 MB, free: 3.891 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001812/0.2629, allocations: 1.3 MB / 451.6 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002377/0.2653, allocations: 1.627 MB / 453.2 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000477/0.2657, allocations: 336 kB / 453.5 MB, free: 0.625 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008363/0.2666, allocations: 443.8 kB / 454 MB, free: 196 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001093/0.2677, allocations: 0.9467 MB / 454.9 MB, free: 15.24 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001559/0.2692, allocations: 1.221 MB / 456.1 MB, free: 14.01 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005161/0.2744, allocations: 4.426 MB / 460.6 MB, free: 9.57 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.2744, allocations: 4 kB / 460.6 MB, free: 9.566 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.2744, allocations: 3.938 kB / 460.6 MB, free: 9.562 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.273e-05/0.2745, allocations: 0 / 460.6 MB, free: 9.562 MB / 366.1 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.006698/0.2812, allocations: 3.068 MB / 463.6 MB, free: 6.445 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/0.2812, allocations: 12.03 kB / 463.7 MB, free: 6.434 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000948/0.2822, allocations: 335 kB / 464 MB, free: 6.105 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003437/0.2856, allocations: 1.559 MB / 465.5 MB, free: 4.508 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001643/0.2858, allocations: 168.4 kB / 465.7 MB, free: 4.34 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003789/0.2861, allocations: 227.9 kB / 465.9 MB, free: 4.117 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00541/0.2916, allocations: 3.013 MB / 468.9 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.699e-05/0.2916, allocations: 7.984 kB / 468.9 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002306/0.2919, allocations: 91.98 kB / 469 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001437/0.292, allocations: 112.3 kB / 469.1 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004566/0.2966, allocations: 2.433 MB / 471.6 MB, free: 14.33 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01455/0.3111, allocations: 7.823 MB / 479.4 MB, free: 6.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00229/0.3134, allocations: 1.178 MB / 480.6 MB, free: 5.074 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001829/0.3152, allocations: 0.9093 MB / 481.5 MB, free: 4.168 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002525/0.3155, allocations: 56.91 kB / 481.5 MB, free: 4.113 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.931e-05/0.3155, allocations: 43.56 kB / 481.6 MB, free: 4.059 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 3.146e-06/0.3155, allocations: 4 kB / 481.6 MB, free: 4.055 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01501/0.3305, allocations: 6.056 MB / 487.6 MB, free: 13.97 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.786e-05/0.3306, allocations: 64.41 kB / 487.7 MB, free: 13.9 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002476/0.3331, allocations: 1.429 MB / 489.1 MB, free: 12.46 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000147/0.3332, allocations: 45.7 kB / 489.2 MB, free: 12.41 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000935/0.3342, allocations: 1.145 MB / 490.3 MB, free: 11.25 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004169/0.3346, allocations: 456.1 kB / 490.8 MB, free: 10.8 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004659/0.335, allocations: 271.5 kB / 491 MB, free: 10.53 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.3352, allocations: 305.1 kB / 491.3 MB, free: 10.23 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001295/0.3365, allocations: 0.7105 MB / 492 MB, free: 9.516 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001637/0.3381, allocations: 1.142 MB / 493.2 MB, free: 8.188 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003117/0.3412, allocations: 1.967 MB / 495.2 MB, free: 6.035 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.15e-05/0.3412, allocations: 4 kB / 495.2 MB, free: 6.031 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.005182/0.3464, allocations: 2.433 MB / 497.6 MB, free: 3.578 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.738e-05/0.3465, allocations: 15.94 kB / 497.6 MB, free: 3.562 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.8e-05/0.3465, allocations: 12 kB / 497.6 MB, free: 3.551 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001105/0.3476, allocations: 414.8 kB / 498 MB, free: 3.137 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001399/0.349, allocations: 359.4 kB / 498.4 MB, free: 2.785 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008401/0.3574, allocations: 6.698 MB / 0.4932 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001642/0.359, allocations: 115.8 kB / 0.4933 GB, free: 11.67 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000152/0.3592, allocations: 64 kB / 0.4934 GB, free: 11.61 MB / 414.1 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.001454/0.3606, allocations: 0.7173 MB / 0.4941 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000407/0.361, allocations: 166.9 kB / 0.4943 GB, free: 10.72 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004135/0.3652, allocations: 2.106 MB / 0.4963 GB, free: 8.59 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.33e-05/0.3652, allocations: 12 kB / 0.4963 GB, free: 8.578 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.3652, allocations: 4 kB / 0.4963 GB, free: 8.574 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.413e-05/0.3652, allocations: 7.969 kB / 0.4963 GB, free: 8.566 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00836/0.3736, allocations: 4.118 MB / 0.5004 GB, free: 4.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.728e-06/0.3736, allocations: 4 kB / 0.5004 GB, free: 4.336 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/0.3746, allocations: 227.6 kB / 0.5006 GB, free: 4.113 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001223/0.3758, allocations: 458 kB / 0.501 GB, free: 3.656 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.785e-05/0.3759, allocations: 35.98 kB / 0.5011 GB, free: 3.621 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008846/0.3848, allocations: 8.127 MB / 0.509 GB, free: 11.08 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.33e-05/0.3848, allocations: 11.94 kB / 0.509 GB, free: 11.07 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005826/0.3906, allocations: 3.124 MB / 0.5121 GB, free: 7.867 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009975/0.3916, allocations: 310.8 kB / 0.5124 GB, free: 7.562 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002212/0.3918, allocations: 35.98 kB / 0.5124 GB, free: 7.527 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009113/0.3927, allocations: 83.91 kB / 0.5125 GB, free: 7.445 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002646/0.393, allocations: 104.7 kB / 0.5126 GB, free: 7.344 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.571e-05/0.3931, allocations: 36 kB / 0.5126 GB, free: 7.309 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001481/0.3946, allocations: 0.9574 MB / 0.5135 GB, free: 6.352 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3946, allocations: 0 / 0.5135 GB, free: 6.352 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001745/0.3963, allocations: 484.1 kB / 0.514 GB, free: 5.879 MB / 430.1 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.0004014/0.3967, allocations: 202.9 kB / 0.5142 GB, free: 5.672 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003874/0.4006, allocations: 2.144 MB / 0.5163 GB, free: 3.484 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.4006, allocations: 64 / 0.5163 GB, free: 3.484 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00249/0.4031, allocations: 1.422 MB / 0.5177 GB, free: 2.008 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002157/0.4052, allocations: 436.8 kB / 0.5181 GB, free: 1.602 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00802/0.4133, allocations: 4.728 MB / 0.5227 GB, free: 12.79 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001595/0.4148, allocations: 1.309 MB / 0.524 GB, free: 11.44 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001241/0.4161, allocations: 369.7 kB / 0.5243 GB, free: 11.07 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003511/0.4164, allocations: 119.4 kB / 0.5245 GB, free: 10.95 MB / 446.1 MB Notification: Performance of SimCode: time 7.42e-07/0.4164, allocations: 4 kB / 0.5245 GB, free: 10.95 MB / 446.1 MB Notification: Performance of Templates: time 0.2743/0.6907, allocations: 28.95 MB / 0.5527 GB, free: 93.16 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.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: 6.143375876825303]