Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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.000872/0.000872, allocations: 76.06 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.0008674/0.0008674, 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.8702/0.8702, allocations: 173.4 MB / 200.4 MB, free: 9.438 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.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.658e-06/1.11e-05, allocations: 2.281 kB / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.007103/0.007114, allocations: 8.527 MB / 327 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00425/0.01136, allocations: 2.933 MB / 329.9 MB, free: 10.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006575/0.01202, allocations: 71.5 kB / 330 MB, free: 10.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001083/0.0131, allocations: 0.6868 MB / 330.7 MB, free: 10.08 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001417/0.01452, allocations: 0.8303 MB / 331.5 MB, free: 9.242 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005387/0.01506, allocations: 403.3 kB / 331.9 MB, free: 8.848 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002106/0.01717, allocations: 2.64 MB / 334.5 MB, free: 6.199 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001325/0.01849, allocations: 1.249 MB / 335.8 MB, free: 4.887 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001613/0.0201, allocations: 1.774 MB / 337.6 MB, free: 3.109 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001182/0.02129, allocations: 1.294 MB / 338.8 MB, free: 1.812 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002687/0.02155, allocations: 316 kB / 339.2 MB, free: 1.504 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004502/0.022, allocations: 419.7 kB / 339.6 MB, free: 1.094 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000524/0.02253, allocations: 0.9427 MB / 340.5 MB, free: 148 kB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006705/0.0232, allocations: 0.9666 MB / 341.5 MB, free: 15.18 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002613/0.02581, allocations: 4.21 MB / 345.7 MB, free: 10.95 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.02582, allocations: 0 / 345.7 MB, free: 10.95 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.02582, allocations: 0 / 345.7 MB, free: 10.95 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.884e-05/0.02585, allocations: 0 / 345.7 MB, free: 10.95 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.003151/0.029, allocations: 2.858 MB / 348.5 MB, free: 8.047 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.02904, allocations: 16.86 kB / 348.6 MB, free: 8.031 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002673/0.0293, allocations: 316.2 kB / 348.9 MB, free: 7.711 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004173/0.02972, allocations: 299.2 kB / 349.2 MB, free: 7.418 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001589/0.03131, allocations: 1.474 MB / 350.6 MB, free: 5.898 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.454e-05/0.0314, allocations: 152.6 kB / 350.8 MB, free: 5.746 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001992/0.03159, allocations: 224.2 kB / 351 MB, free: 5.527 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002853/0.03445, allocations: 2.892 MB / 353.9 MB, free: 2.523 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.916e-05/0.03449, allocations: 15.94 kB / 353.9 MB, free: 2.508 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001342/0.03462, allocations: 84 kB / 354 MB, free: 2.426 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.555e-05/0.0347, allocations: 104.2 kB / 354.1 MB, free: 2.32 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002504/0.0372, allocations: 2.343 MB / 356.4 MB, free: 15.96 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007409/0.04461, allocations: 7.705 MB / 364.1 MB, free: 8.016 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00138/0.04599, allocations: 1.17 MB / 365.3 MB, free: 6.836 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001005/0.04699, allocations: 0.8938 MB / 366.2 MB, free: 5.934 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001559/0.04715, allocations: 48.97 kB / 366.3 MB, free: 5.887 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.106e-05/0.04718, allocations: 51.48 kB / 366.3 MB, free: 5.824 MB / 330.7 MB Notification: Performance of pre-optimization done (n=101): time 2.635e-06/0.04718, allocations: 4 kB / 366.3 MB, free: 5.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=116): time 0.007272/0.05446, allocations: 5.728 MB / 372 MB, free: 64 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.018e-05/0.0545, allocations: 64.45 kB / 372.1 MB, free: 15.98 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001184/0.05568, allocations: 1.453 MB / 373.5 MB, free: 14.52 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.25e-05/0.05573, allocations: 41.7 kB / 373.6 MB, free: 14.48 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004545/0.05619, allocations: 1.075 MB / 374.7 MB, free: 13.39 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001939/0.05638, allocations: 420.4 kB / 375.1 MB, free: 12.98 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002357/0.05662, allocations: 263.4 kB / 375.3 MB, free: 12.71 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.441e-05/0.05671, allocations: 365.9 kB / 375.7 MB, free: 12.35 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000692/0.0574, allocations: 0.6832 MB / 376.4 MB, free: 11.67 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008377/0.05824, allocations: 1.074 MB / 377.4 MB, free: 10.44 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001733/0.05997, allocations: 1.864 MB / 379.3 MB, free: 8.414 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.583e-06/0.05998, allocations: 4 kB / 379.3 MB, free: 8.41 MB / 346.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.002339/0.06232, allocations: 2.343 MB / 381.7 MB, free: 6.047 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.06234, allocations: 12 kB / 381.7 MB, free: 6.035 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.06235, allocations: 12 kB / 381.7 MB, free: 6.023 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005603/0.06291, allocations: 419.3 kB / 382.1 MB, free: 5.602 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006125/0.06352, allocations: 327.5 kB / 382.4 MB, free: 5.281 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004268/0.06779, allocations: 6.687 MB / 389.1 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005547/0.06834, allocations: 99.89 kB / 389.2 MB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.744e-05/0.06841, allocations: 63.98 kB / 389.3 MB, free: 14.09 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (157): * Single equations (assignments): 153 * 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,11,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.0007134/0.06913, allocations: 0.6856 MB / 389.9 MB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001628/0.06929, allocations: 166.9 kB / 390.1 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002297/0.07159, allocations: 2.055 MB / 392.2 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/0.07159, allocations: 16 kB / 392.2 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.0716, allocations: 4 kB / 392.2 MB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.07161, allocations: 3.984 kB / 392.2 MB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004274/0.07588, allocations: 4.214 MB / 396.4 MB, free: 6.805 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.07588, allocations: 7.984 kB / 396.4 MB, free: 6.797 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004526/0.07634, allocations: 207.7 kB / 396.6 MB, free: 6.594 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006001/0.07694, allocations: 451.3 kB / 397 MB, free: 6.141 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.623e-05/0.07699, allocations: 31.98 kB / 397.1 MB, free: 6.109 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005072/0.08207, allocations: 8.148 MB / 405.2 MB, free: 13.51 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.08207, allocations: 7.938 kB / 405.2 MB, free: 13.5 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00301/0.08508, allocations: 3.021 MB / 408.3 MB, free: 10.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000392/0.08547, allocations: 310.8 kB / 408.6 MB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001082/0.08558, allocations: 28 kB / 408.6 MB, free: 10.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004227/0.086, allocations: 87.89 kB / 408.7 MB, free: 9.992 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001447/0.08615, allocations: 96.7 kB / 408.8 MB, free: 9.898 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.899e-05/0.0862, allocations: 35.98 kB / 408.8 MB, free: 9.863 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008599/0.08706, allocations: 0.9886 MB / 409.8 MB, free: 8.875 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.08706, allocations: 0 / 409.8 MB, free: 8.875 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009049/0.08796, allocations: 463.9 kB / 410.2 MB, free: 8.422 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],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 (102): * Single equations (assignments): 98 * 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,11,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.003304/0.09126, allocations: 3.659 MB / 413.9 MB, free: 4.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002014/0.09328, allocations: 2.075 MB / 416 MB, free: 2.562 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.09328, allocations: 4.797 kB / 416 MB, free: 2.559 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001199/0.09448, allocations: 1.387 MB / 417.4 MB, free: 1.121 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001007/0.09549, allocations: 424.1 kB / 417.8 MB, free: 0.7109 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01718/0.1127, allocations: 16.69 MB / 434.5 MB, free: 15.36 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008943/0.1136, allocations: 1.227 MB / 435.7 MB, free: 14.09 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000653/0.1142, allocations: 365.6 kB / 436.1 MB, free: 13.72 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006936/0.1149, allocations: 0.8244 MB / 436.9 MB, free: 12.89 MB / 410.7 MB Notification: Performance of SimCode: time 9.51e-07/0.1149, allocations: 0 / 436.9 MB, free: 12.89 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1833/0.2982, allocations: 44.84 MB / 481.7 MB, free: 96.55 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.187/8.485, allocations: 11.84 kB / 481.7 MB, free: 96.54 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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.374209458939731]