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.001266/0.001266, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.003991/0.003991, allocations: 164.1 kB / 24.7 MB, free: 8.891 MB / 18.57 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 0.8717/0.8717, allocations: 177.1 MB / 205 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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 1.382e-06/1.382e-06, allocations: 0 / 325.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.604e-05/1.742e-05, allocations: 2.281 kB / 325.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.007042/0.00706, allocations: 9.167 MB / 335 MB, free: 6.211 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003792/0.01085, allocations: 3.303 MB / 338.3 MB, free: 2.895 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005945/0.01145, allocations: 67.56 kB / 338.4 MB, free: 2.828 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001015/0.01246, allocations: 0.7722 MB / 339.2 MB, free: 2.051 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001238/0.0137, allocations: 0.9274 MB / 340.1 MB, free: 1.113 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004581/0.01416, allocations: 423.4 kB / 340.5 MB, free: 0.6992 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001586/0.01574, allocations: 2.866 MB / 343.4 MB, free: 13.82 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001078/0.01682, allocations: 1.297 MB / 344.7 MB, free: 12.46 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001294/0.01811, allocations: 1.894 MB / 346.6 MB, free: 10.56 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001047/0.01916, allocations: 1.364 MB / 347.9 MB, free: 9.195 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002592/0.01942, allocations: 336 kB / 348.2 MB, free: 8.867 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000403/0.01982, allocations: 439.8 kB / 348.7 MB, free: 8.438 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005236/0.02035, allocations: 0.9738 MB / 349.6 MB, free: 7.461 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006388/0.02099, allocations: 1.037 MB / 350.7 MB, free: 6.422 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002969/0.02396, allocations: 4.456 MB / 355.1 MB, free: 1.953 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.02396, allocations: 4 kB / 355.1 MB, free: 1.949 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.02396, allocations: 0 / 355.1 MB, free: 1.949 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.157e-05/0.02399, allocations: 0 / 355.1 MB, free: 1.949 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.003262/0.02725, allocations: 3.026 MB / 358.2 MB, free: 14.88 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.266e-05/0.02729, allocations: 8.031 kB / 358.2 MB, free: 14.87 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004913/0.02778, allocations: 343 kB / 358.5 MB, free: 14.53 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001654/0.02943, allocations: 1.554 MB / 360.1 MB, free: 12.93 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.317e-05/0.02952, allocations: 168.8 kB / 360.2 MB, free: 12.77 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002118/0.02973, allocations: 224.3 kB / 360.4 MB, free: 12.55 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003012/0.03274, allocations: 3.013 MB / 363.5 MB, free: 9.422 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.623e-05/0.03279, allocations: 11.95 kB / 363.5 MB, free: 9.41 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001448/0.03293, allocations: 88 kB / 363.6 MB, free: 9.324 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.758e-05/0.03301, allocations: 116.3 kB / 363.7 MB, free: 9.207 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002649/0.03566, allocations: 2.43 MB / 366.1 MB, free: 6.762 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007243/0.0429, allocations: 7.835 MB / 373.9 MB, free: 14.67 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001348/0.04425, allocations: 1.171 MB / 375.1 MB, free: 13.49 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009971/0.04524, allocations: 0.9364 MB / 376 MB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001432/0.04539, allocations: 48.95 kB / 376.1 MB, free: 12.5 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.944e-05/0.04543, allocations: 43.56 kB / 376.1 MB, free: 12.45 MB / 346.7 MB Notification: Performance of pre-optimization done (n=105): time 2.094e-06/0.04543, allocations: 0 / 376.1 MB, free: 12.45 MB / 346.7 MB Notification: Performance of matching and sorting (n=122): time 0.007772/0.0532, allocations: 6.054 MB / 382.2 MB, free: 6.367 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.06e-05/0.05324, allocations: 64.41 kB / 382.3 MB, free: 6.293 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001568/0.05481, allocations: 1.425 MB / 383.7 MB, free: 4.855 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.119e-05/0.05487, allocations: 45.7 kB / 383.7 MB, free: 4.805 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005226/0.05539, allocations: 1.141 MB / 384.9 MB, free: 3.652 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000216/0.05561, allocations: 444.2 kB / 385.3 MB, free: 3.215 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002551/0.05586, allocations: 271.5 kB / 385.6 MB, free: 2.945 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.664e-05/0.05593, allocations: 305.1 kB / 385.9 MB, free: 2.645 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007338/0.05667, allocations: 0.7066 MB / 386.6 MB, free: 1.938 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000929/0.05759, allocations: 1.142 MB / 387.7 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001753/0.05935, allocations: 1.963 MB / 389.7 MB, free: 14.47 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.111e-06/0.05935, allocations: 4 kB / 389.7 MB, free: 14.47 MB / 362.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.002793/0.06215, allocations: 2.436 MB / 392.1 MB, free: 12.01 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.06216, allocations: 12 kB / 392.1 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.06218, allocations: 12 kB / 392.1 MB, free: 11.99 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005742/0.06275, allocations: 427.3 kB / 392.6 MB, free: 11.56 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006611/0.06341, allocations: 355.3 kB / 392.9 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004639/0.06805, allocations: 6.697 MB / 399.6 MB, free: 4.203 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005829/0.06863, allocations: 107.8 kB / 399.7 MB, free: 4.098 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.126e-05/0.0687, allocations: 63.98 kB / 399.8 MB, free: 4.035 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.000855/0.06956, allocations: 0.7125 MB / 400.5 MB, free: 3.312 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001599/0.06972, allocations: 166.9 kB / 400.6 MB, free: 3.148 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00222/0.07194, allocations: 2.106 MB / 402.7 MB, free: 1.02 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.367e-06/0.07195, allocations: 16 kB / 402.8 MB, free: 1.004 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.07195, allocations: 4 kB / 402.8 MB, free: 1 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.174e-05/0.07197, allocations: 3.984 kB / 402.8 MB, free: 0.9961 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004418/0.07638, allocations: 4.122 MB / 406.9 MB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.07639, allocations: 4 kB / 406.9 MB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004661/0.07686, allocations: 219.7 kB / 407.1 MB, free: 12.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006328/0.07749, allocations: 466.1 kB / 407.6 MB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.209e-05/0.07755, allocations: 39.98 kB / 407.6 MB, free: 12.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005023/0.08257, allocations: 8.112 MB / 415.7 MB, free: 3.516 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/0.08258, allocations: 11.88 kB / 415.7 MB, free: 3.504 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003207/0.08578, allocations: 3.124 MB / 418.9 MB, free: 316 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004246/0.08621, allocations: 306.8 kB / 419.2 MB, free: 8 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001184/0.08633, allocations: 32.03 kB / 419.2 MB, free: 15.97 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004278/0.08676, allocations: 79.86 kB / 419.3 MB, free: 15.9 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001442/0.0869, allocations: 108.7 kB / 419.4 MB, free: 15.79 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.417e-05/0.08695, allocations: 35.98 kB / 419.4 MB, free: 15.76 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0008576/0.08781, allocations: 0.9535 MB / 420.4 MB, free: 14.8 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.08781, allocations: 4 kB / 420.4 MB, free: 14.8 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001017/0.08883, allocations: 491.9 kB / 420.8 MB, free: 14.32 MB / 394.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.0002992/0.08913, allocations: 201.5 kB / 421 MB, free: 14.11 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002161/0.09129, allocations: 2.15 MB / 423.2 MB, free: 11.93 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.09129, allocations: 0 / 423.2 MB, free: 11.93 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001295/0.09259, allocations: 1.424 MB / 424.6 MB, free: 10.45 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001056/0.09364, allocations: 418 kB / 425 MB, free: 10.05 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004804/0.09845, allocations: 4.619 MB / 429.6 MB, free: 5.344 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009014/0.09935, allocations: 1.273 MB / 430.9 MB, free: 4.031 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002631/0.09961, allocations: 124.5 kB / 431 MB, free: 3.91 MB / 394.7 MB Notification: Performance of SimCode: time 7.11e-07/0.09961, allocations: 0 / 431 MB, free: 3.91 MB / 394.7 MB Notification: Performance of Templates: time 0.1989/0.2985, allocations: 74.02 MB / 0.4932 GB, free: 66.63 MB / 410.7 MB " [Timeout remaining time 660] 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: 8.681318446062505]