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.001066/0.001066, allocations: 76.08 kB / 20.67 MB, free: 3.891 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.0009976/0.0009976, allocations: 149.1 kB / 23.93 MB, free: 0.6289 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.8903/0.8903, allocations: 173.4 MB / 200.5 MB, free: 9.418 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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 318.4 MB, free: 6.336 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.018e-05/2.18e-05, allocations: 2.281 kB / 318.5 MB, free: 6.332 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.007144/0.007166, allocations: 9.096 MB / 327.5 MB, free: 13.19 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00366/0.01083, allocations: 3.24 MB / 330.8 MB, free: 9.938 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006524/0.01148, allocations: 75.5 kB / 330.9 MB, free: 9.863 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00116/0.01264, allocations: 0.7684 MB / 331.6 MB, free: 9.09 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001367/0.014, allocations: 0.9351 MB / 332.6 MB, free: 8.148 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000553/0.01456, allocations: 415.3 kB / 333 MB, free: 7.742 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001843/0.0164, allocations: 2.846 MB / 335.8 MB, free: 4.887 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001181/0.01758, allocations: 1.301 MB / 337.1 MB, free: 3.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001468/0.01905, allocations: 1.891 MB / 339 MB, free: 1.625 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001191/0.02024, allocations: 1.36 MB / 340.4 MB, free: 264 kB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002904/0.02053, allocations: 336 kB / 340.7 MB, free: 15.93 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000458/0.02099, allocations: 435.7 kB / 341.1 MB, free: 15.5 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005467/0.02154, allocations: 0.9738 MB / 342.1 MB, free: 14.53 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007138/0.02225, allocations: 1.029 MB / 343.1 MB, free: 13.5 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002683/0.02493, allocations: 4.436 MB / 347.6 MB, free: 9.047 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.02494, allocations: 0 / 347.6 MB, free: 9.047 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.02494, allocations: 0 / 347.6 MB, free: 9.047 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.782e-05/0.02498, allocations: 4 kB / 347.6 MB, free: 9.043 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.003387/0.02836, allocations: 3.026 MB / 350.6 MB, free: 5.969 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.0284, allocations: 16.86 kB / 350.6 MB, free: 5.953 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002801/0.02868, allocations: 328.9 kB / 350.9 MB, free: 5.621 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004495/0.02913, allocations: 319.1 kB / 351.2 MB, free: 5.309 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00168/0.03081, allocations: 1.558 MB / 352.8 MB, free: 3.711 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.529e-05/0.0309, allocations: 164.8 kB / 353 MB, free: 3.547 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002077/0.0311, allocations: 228.1 kB / 353.2 MB, free: 3.324 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003189/0.03429, allocations: 3.021 MB / 356.2 MB, free: 196 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.927e-05/0.03433, allocations: 0 / 356.2 MB, free: 196 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001391/0.03447, allocations: 92 kB / 356.3 MB, free: 104 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.794e-05/0.03456, allocations: 112.4 kB / 356.4 MB, free: 15.98 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002642/0.0372, allocations: 2.433 MB / 358.8 MB, free: 13.54 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007659/0.04486, allocations: 8.167 MB / 367 MB, free: 5.094 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001327/0.04619, allocations: 1.174 MB / 368.2 MB, free: 3.906 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001032/0.04722, allocations: 0.9249 MB / 369.1 MB, free: 2.98 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001473/0.04736, allocations: 52.91 kB / 369.2 MB, free: 2.93 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.949e-05/0.04739, allocations: 51.48 kB / 369.2 MB, free: 2.867 MB / 330.7 MB Notification: Performance of pre-optimization done (n=105): time 2.434e-06/0.0474, allocations: 0 / 369.2 MB, free: 2.867 MB / 330.7 MB Notification: Performance of matching and sorting (n=122): time 0.007814/0.05521, allocations: 6.057 MB / 375.3 MB, free: 12.79 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.515e-05/0.05525, allocations: 68.34 kB / 375.3 MB, free: 12.71 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001368/0.05661, allocations: 1.584 MB / 376.9 MB, free: 11.12 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.359e-05/0.05668, allocations: 45.7 kB / 377 MB, free: 11.07 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005261/0.0572, allocations: 1.134 MB / 378.1 MB, free: 9.922 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000218/0.05742, allocations: 444.2 kB / 378.5 MB, free: 9.484 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002693/0.05769, allocations: 271.5 kB / 378.8 MB, free: 9.215 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.587e-05/0.05776, allocations: 301.1 kB / 379.1 MB, free: 8.918 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007462/0.0585, allocations: 0.7144 MB / 379.8 MB, free: 8.203 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009318/0.05944, allocations: 1.138 MB / 380.9 MB, free: 6.879 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001861/0.0613, allocations: 1.971 MB / 382.9 MB, free: 4.727 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.0613, allocations: 4 kB / 382.9 MB, free: 4.723 MB / 346.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.002504/0.06381, allocations: 2.452 MB / 385.4 MB, free: 2.25 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.15e-05/0.06383, allocations: 12 kB / 385.4 MB, free: 2.238 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.488e-05/0.06384, allocations: 19.92 kB / 385.4 MB, free: 2.219 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005743/0.06442, allocations: 426.8 kB / 385.8 MB, free: 1.793 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006693/0.06509, allocations: 347.4 kB / 386.1 MB, free: 1.453 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0043/0.06939, allocations: 6.767 MB / 392.9 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005796/0.06997, allocations: 107.8 kB / 393 MB, free: 10.24 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.279e-05/0.07004, allocations: 67.97 kB / 393.1 MB, free: 10.17 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.0007691/0.07081, allocations: 0.7208 MB / 393.8 MB, free: 9.441 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001652/0.07097, allocations: 178.9 kB / 394 MB, free: 9.266 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002243/0.07321, allocations: 2.099 MB / 396.1 MB, free: 7.137 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.131e-06/0.07322, allocations: 15.94 kB / 396.1 MB, free: 7.121 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.07323, allocations: 4 kB / 396.1 MB, free: 7.117 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.07323, allocations: 11.97 kB / 396.1 MB, free: 7.105 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004611/0.07785, allocations: 4.403 MB / 400.5 MB, free: 2.582 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.07785, allocations: 7.938 kB / 400.5 MB, free: 2.574 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004809/0.07833, allocations: 223.7 kB / 400.7 MB, free: 2.355 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006368/0.07897, allocations: 455 kB / 401.2 MB, free: 1.902 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.078e-05/0.07903, allocations: 35.98 kB / 401.2 MB, free: 1.867 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004979/0.08401, allocations: 8.21 MB / 409.4 MB, free: 9.199 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.08401, allocations: 4 kB / 409.4 MB, free: 9.195 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003195/0.08721, allocations: 3.14 MB / 412.6 MB, free: 5.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004276/0.08763, allocations: 326.7 kB / 412.9 MB, free: 5.66 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000122/0.08776, allocations: 31.98 kB / 412.9 MB, free: 5.629 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004526/0.08821, allocations: 87.91 kB / 413 MB, free: 5.543 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001459/0.08836, allocations: 104.7 kB / 413.1 MB, free: 5.441 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.802e-05/0.0884, allocations: 43.98 kB / 413.2 MB, free: 5.398 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009486/0.08935, allocations: 1.066 MB / 414.2 MB, free: 4.336 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.08935, allocations: 0 / 414.2 MB, free: 4.336 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001021/0.09037, allocations: 491.9 kB / 414.7 MB, free: 3.855 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.003546/0.09392, allocations: 3.761 MB / 418.5 MB, free: 4 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002248/0.09617, allocations: 2.156 MB / 420.6 MB, free: 13.8 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.09617, allocations: 12.12 kB / 420.6 MB, free: 13.79 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001306/0.09747, allocations: 1.418 MB / 422.1 MB, free: 12.32 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001172/0.09865, allocations: 471.7 kB / 422.5 MB, free: 11.87 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01948/0.1181, allocations: 17.7 MB / 440.2 MB, free: 9.461 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009754/0.1191, allocations: 1.298 MB / 441.5 MB, free: 8.121 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007444/0.1199, allocations: 390.8 kB / 441.9 MB, free: 7.734 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007371/0.1206, allocations: 0.8791 MB / 442.8 MB, free: 6.855 MB / 410.7 MB Notification: Performance of SimCode: time 7.91e-07/0.1206, allocations: 0 / 442.8 MB, free: 6.855 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1785/0.2991, allocations: 48.43 MB / 491.2 MB, free: 88.86 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.677/8.976, allocations: 10.11 kB / 491.2 MB, free: 88.85 MB / 410.7 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 52.5] 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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 11.961522923782468]