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.001883/0.001883, allocations: 119.5 kB / 18.41 MB, free: 4.684 MB / 14.72 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.002156/0.002156, allocations: 192.3 kB / 21.35 MB, free: 1.75 MB / 14.72 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 1.459/1.459, allocations: 222.9 MB / 247 MB, free: 4.215 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001497/0.001497, allocations: 43.92 kB / 358.7 MB, free: 8.34 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09448/0.09599, allocations: 49.45 MB / 408.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.0127/0.1087, allocations: 10.32 MB / 418.4 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00658/0.1153, allocations: 3.419 MB / 421.8 MB, free: 9.066 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001457/0.1168, allocations: 55.75 kB / 421.9 MB, free: 9.012 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002097/0.119, allocations: 0.7685 MB / 422.7 MB, free: 8.238 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002898/0.1219, allocations: 0.8307 MB / 423.5 MB, free: 7.402 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001105/0.123, allocations: 427.4 kB / 423.9 MB, free: 6.984 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003766/0.1268, allocations: 2.747 MB / 426.7 MB, free: 4.223 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003031/0.1298, allocations: 2.41 MB / 429.1 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002035/0.1319, allocations: 1.257 MB / 430.3 MB, free: 492 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1724/0.3043, allocations: 1.569 MB / 431.9 MB, free: 8.371 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005882/0.3049, allocations: 332.6 kB / 432.2 MB, free: 8.371 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000841/0.3058, allocations: 440.6 kB / 432.7 MB, free: 8.371 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007403/0.3065, allocations: 0.9344 MB / 433.6 MB, free: 8.371 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001205/0.3078, allocations: 1.508 MB / 435.1 MB, free: 8.082 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005078/0.3129, allocations: 4.394 MB / 439.5 MB, free: 7.539 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.575e-06/0.3129, allocations: 0.75 kB / 439.5 MB, free: 7.539 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.664e-06/0.3129, allocations: 3.938 kB / 439.5 MB, free: 7.535 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000134/0.313, allocations: 1.188 kB / 439.5 MB, free: 7.535 MB / 350.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.006135/0.3192, allocations: 3.124 MB / 442.6 MB, free: 6.188 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.398e-05/0.3192, allocations: 10.19 kB / 442.6 MB, free: 6.188 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007427/0.32, allocations: 325.1 kB / 443 MB, free: 6.031 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002336/0.3223, allocations: 1.64 MB / 444.6 MB, free: 5.539 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000106/0.3224, allocations: 163.2 kB / 444.8 MB, free: 5.531 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003083/0.3227, allocations: 233.1 kB / 445 MB, free: 5.523 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004413/0.3272, allocations: 2.912 MB / 447.9 MB, free: 5.301 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.122e-05/0.3272, allocations: 13.61 kB / 447.9 MB, free: 5.297 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002085/0.3275, allocations: 92.03 kB / 448 MB, free: 5.297 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001048/0.3276, allocations: 114.1 kB / 448.1 MB, free: 5.289 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003739/0.3313, allocations: 2.429 MB / 450.5 MB, free: 5.258 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01148/0.3428, allocations: 9.037 MB / 459.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002321/0.3452, allocations: 1.701 MB / 461.3 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001746/0.3469, allocations: 0.9778 MB / 462.3 MB, free: 13.99 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003064/0.3472, allocations: 211.6 kB / 462.5 MB, free: 13.78 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.546e-05/0.3473, allocations: 46.84 kB / 462.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of pre-optimization done (n=105): time 2.826e-06/0.3473, allocations: 1.531 kB / 462.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.01394/0.3612, allocations: 6.602 MB / 469.1 MB, free: 9.93 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.415e-05/0.3613, allocations: 64.75 kB / 469.2 MB, free: 9.867 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002249/0.3636, allocations: 1.566 MB / 470.7 MB, free: 8.758 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001055/0.3637, allocations: 45.7 kB / 470.8 MB, free: 8.707 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009299/0.3646, allocations: 1.137 MB / 471.9 MB, free: 7.562 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004004/0.365, allocations: 443.2 kB / 472.4 MB, free: 7.133 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00047/0.3655, allocations: 275.5 kB / 472.6 MB, free: 6.855 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.3657, allocations: 305.1 kB / 472.9 MB, free: 6.555 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001256/0.3669, allocations: 0.7105 MB / 473.6 MB, free: 5.844 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001614/0.3685, allocations: 1.141 MB / 474.8 MB, free: 4.531 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002977/0.3715, allocations: 1.965 MB / 476.7 MB, free: 2.438 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.736e-06/0.3715, allocations: 4 kB / 476.7 MB, free: 2.434 MB / 366.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004459/0.376, allocations: 2.535 MB / 479.3 MB, free: 15.95 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.74e-05/0.3761, allocations: 22.22 kB / 479.3 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.072e-05/0.3761, allocations: 12 kB / 479.3 MB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001028/0.3771, allocations: 420.2 kB / 479.7 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001311/0.3784, allocations: 354.4 kB / 480.1 MB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007695/0.3861, allocations: 7.129 MB / 487.2 MB, free: 7.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001471/0.3876, allocations: 107.8 kB / 487.3 MB, free: 7.574 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001251/0.3878, allocations: 60 kB / 487.4 MB, free: 7.516 MB / 382.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.001324/0.3891, allocations: 0.7238 MB / 488.1 MB, free: 6.805 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003327/0.3894, allocations: 178.9 kB / 488.3 MB, free: 6.629 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00404/0.3935, allocations: 2.201 MB / 490.5 MB, free: 4.391 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.19e-05/0.3935, allocations: 12 kB / 490.5 MB, free: 4.379 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.3935, allocations: 4 kB / 490.5 MB, free: 4.375 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.565e-05/0.3936, allocations: 11.97 kB / 490.5 MB, free: 4.363 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008215/0.4018, allocations: 4.771 MB / 495.3 MB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.663e-06/0.4018, allocations: 4 kB / 495.3 MB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009855/0.4028, allocations: 228.3 kB / 495.5 MB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001182/0.404, allocations: 458 kB / 495.9 MB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.47e-05/0.4041, allocations: 31.98 kB / 496 MB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008928/0.413, allocations: 8.686 MB / 0.4928 GB, free: 5.625 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.4131, allocations: 6.625 kB / 0.4928 GB, free: 5.621 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005551/0.4186, allocations: 3.227 MB / 0.496 GB, free: 2.316 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009191/0.4196, allocations: 411.7 kB / 0.4964 GB, free: 1.895 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002483/0.4198, allocations: 36 kB / 0.4964 GB, free: 1.859 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009316/0.4208, allocations: 79.91 kB / 0.4965 GB, free: 1.781 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002469/0.421, allocations: 107.8 kB / 0.4966 GB, free: 1.676 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.998e-05/0.4211, allocations: 35.98 kB / 0.4966 GB, free: 1.641 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001712/0.4228, allocations: 1.066 MB / 0.4977 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4228, allocations: 3 kB / 0.4977 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001809/0.4247, allocations: 487.9 kB / 0.4981 GB, free: 104 kB / 398.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.0004249/0.4251, allocations: 197.3 kB / 0.4983 GB, free: 15.91 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004078/0.4292, allocations: 2.304 MB / 0.5006 GB, free: 13.61 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.156e-06/0.4292, allocations: 4.438 kB / 0.5006 GB, free: 13.6 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002603/0.4318, allocations: 1.477 MB / 0.502 GB, free: 12.1 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002382/0.4342, allocations: 467.1 kB / 0.5025 GB, free: 11.66 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008316/0.4425, allocations: 4.818 MB / 0.5072 GB, free: 6.797 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00181/0.4444, allocations: 1.835 MB / 0.509 GB, free: 4.93 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006286/0.445, allocations: 135.4 kB / 0.5091 GB, free: 4.797 MB / 414.1 MB Notification: Performance of SimCode: time 6.81e-07/0.445, allocations: 0 / 0.5091 GB, free: 4.797 MB / 414.1 MB Notification: Performance of Templates: time 0.09009/0.5351, allocations: 73.86 MB / 0.5812 GB, free: 10.99 MB / 494.1 MB " [Timeout remaining time 659] 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 12.762463914928958]