Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001284/0.001284, allocations: 198 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 226.6 MB / 244.3 MB, free: 8.305 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008056/0.0008056, allocations: 85.95 kB / 296.4 MB, free: 7.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002167/0.0002168, allocations: 8 kB / 356.2 MB, free: 11.18 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2065/0.2068, allocations: 51.29 MB / 407.5 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.006619/0.2134, allocations: 8.511 MB / 416 MB, free: 19.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00443/0.2179, allocations: 2.956 MB / 419 MB, free: 16.33 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001221/0.2191, allocations: 47.81 kB / 419 MB, free: 16.28 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001438/0.2206, allocations: 0.5397 MB / 419.6 MB, free: 15.74 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002157/0.2228, allocations: 0.6525 MB / 420.2 MB, free: 15.08 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000821/0.2236, allocations: 251.6 kB / 420.5 MB, free: 14.84 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002336/0.226, allocations: 2.588 MB / 423.1 MB, free: 12.24 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001805/0.2278, allocations: 1.524 MB / 424.6 MB, free: 10.68 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001175/0.229, allocations: 0.8871 MB / 425.5 MB, free: 9.789 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001488/0.2305, allocations: 1.214 MB / 426.7 MB, free: 8.57 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004336/0.2309, allocations: 132 kB / 426.8 MB, free: 8.441 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007767/0.2317, allocations: 207.9 kB / 427 MB, free: 8.238 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005001/0.2322, allocations: 0.6737 MB / 427.7 MB, free: 7.562 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004248/0.2326, allocations: 496.5 kB / 428.2 MB, free: 7.07 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00202/0.2347, allocations: 3.335 MB / 431.5 MB, free: 3.727 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.2347, allocations: 3.984 kB / 431.5 MB, free: 3.723 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.2347, allocations: 3.938 kB / 431.5 MB, free: 3.719 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.641e-05/0.2347, allocations: 0 / 431.5 MB, free: 3.719 MB / 298.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.003839/0.2386, allocations: 2.507 MB / 434 MB, free: 1.148 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.289e-05/0.2386, allocations: 8.031 kB / 434 MB, free: 1.141 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006209/0.2393, allocations: 296.7 kB / 434.3 MB, free: 0.8477 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00202/0.2413, allocations: 1.444 MB / 435.8 MB, free: 15.34 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001482/0.2414, allocations: 164.2 kB / 435.9 MB, free: 15.18 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002832/0.2417, allocations: 215.9 kB / 436.1 MB, free: 14.97 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00441/0.2462, allocations: 2.796 MB / 438.9 MB, free: 12.09 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.477e-05/0.2462, allocations: 4 kB / 438.9 MB, free: 12.08 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001829/0.2464, allocations: 84 kB / 439 MB, free: 12 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001051/0.2465, allocations: 112.1 kB / 439.1 MB, free: 11.89 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003821/0.2503, allocations: 2.351 MB / 441.5 MB, free: 9.52 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01219/0.2625, allocations: 8.64 MB / 450.1 MB, free: 0.6289 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002274/0.2649, allocations: 1.706 MB / 451.8 MB, free: 14.8 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001651/0.2665, allocations: 0.9831 MB / 452.8 MB, free: 13.82 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002806/0.2668, allocations: 212 kB / 453 MB, free: 13.57 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.5e-05/0.2669, allocations: 47.5 kB / 453.1 MB, free: 13.52 MB / 330.7 MB Notification: Performance of pre-optimization done (n=101): time 3.307e-06/0.2669, allocations: 4 kB / 453.1 MB, free: 13.52 MB / 330.7 MB Notification: Performance of matching and sorting (n=116): time 0.0126/0.2795, allocations: 6.337 MB / 459.4 MB, free: 7.008 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.919e-05/0.2796, allocations: 68.34 kB / 459.5 MB, free: 6.926 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001902/0.2815, allocations: 1.433 MB / 460.9 MB, free: 5.48 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.073e-05/0.2816, allocations: 45.7 kB / 460.9 MB, free: 5.43 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000696/0.2823, allocations: 1.033 MB / 462 MB, free: 4.383 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003084/0.2826, allocations: 414.1 kB / 462.4 MB, free: 3.973 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.766e-05/0.2827, allocations: 28 kB / 462.4 MB, free: 3.945 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.2828, allocations: 361.9 kB / 462.8 MB, free: 3.586 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00114/0.284, allocations: 0.691 MB / 463.4 MB, free: 2.895 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001356/0.2853, allocations: 1.07 MB / 464.5 MB, free: 1.668 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00134/0.2867, allocations: 0.869 MB / 465.4 MB, free: 0.7969 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.075e-06/0.2867, allocations: 4 kB / 465.4 MB, free: 0.793 MB / 330.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003904/0.2906, allocations: 2.421 MB / 467.8 MB, free: 14.33 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.538e-05/0.2906, allocations: 11.98 kB / 467.8 MB, free: 14.32 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.494e-05/0.2907, allocations: 12 kB / 467.8 MB, free: 14.3 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009471/0.2916, allocations: 415.3 kB / 468.2 MB, free: 13.89 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00121/0.2928, allocations: 339.5 kB / 468.6 MB, free: 13.56 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006326/0.2992, allocations: 6.457 MB / 475 MB, free: 6.695 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001095/0.3003, allocations: 107.9 kB / 475.1 MB, free: 6.59 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001141/0.3004, allocations: 63.98 kB / 475.2 MB, free: 6.527 MB / 346.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 (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 11,(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001122/0.3016, allocations: 0.6847 MB / 475.9 MB, free: 5.832 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002952/0.3019, allocations: 162 kB / 476 MB, free: 5.672 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003693/0.3056, allocations: 2.154 MB / 478.2 MB, free: 3.48 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.231e-05/0.3056, allocations: 12 kB / 478.2 MB, free: 3.469 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.144e-06/0.3056, allocations: 4 kB / 478.2 MB, free: 3.465 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.292e-05/0.3056, allocations: 7.969 kB / 478.2 MB, free: 3.457 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007057/0.3127, allocations: 4.603 MB / 482.8 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.774e-06/0.3127, allocations: 4 kB / 482.8 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008822/0.3136, allocations: 224.1 kB / 483 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001088/0.3147, allocations: 442.9 kB / 483.5 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.723e-05/0.3148, allocations: 31.98 kB / 483.5 MB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007136/0.3219, allocations: 7.926 MB / 491.4 MB, free: 5.562 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.396e-06/0.322, allocations: 11.89 kB / 491.4 MB, free: 5.551 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004668/0.3266, allocations: 3.129 MB / 494.6 MB, free: 2.332 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007235/0.3274, allocations: 390.9 kB / 495 MB, free: 1.93 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002653/0.3276, allocations: 28 kB / 495 MB, free: 1.902 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009098/0.3286, allocations: 91.89 kB / 495.1 MB, free: 1.812 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001765/0.3287, allocations: 96.77 kB / 495.2 MB, free: 1.719 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.845e-05/0.3288, allocations: 36 kB / 495.2 MB, free: 1.684 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001474/0.3303, allocations: 0.9771 MB / 496.2 MB, free: 0.707 MB / 362.7 MB Notification: Performance of sort global known variables: time 2e-07/0.3303, allocations: 0 / 496.2 MB, free: 0.707 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001541/0.3319, allocations: 460.1 kB / 496.6 MB, free: 264 kB / 362.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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 11,(1,100.0%) 6,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003063/0.3322, allocations: 163 kB / 496.8 MB, free: 92 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003509/0.3357, allocations: 2.225 MB / 499 MB, free: 13.81 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.3357, allocations: 0 / 499 MB, free: 13.81 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002163/0.3379, allocations: 1.458 MB / 0.4887 GB, free: 12.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001794/0.3397, allocations: 410.6 kB / 0.4891 GB, free: 11.9 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007128/0.3468, allocations: 5.367 MB / 0.4944 GB, free: 6.457 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001477/0.3483, allocations: 1.78 MB / 0.4961 GB, free: 4.645 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003867/0.3487, allocations: 123.4 kB / 0.4962 GB, free: 4.523 MB / 378.7 MB Notification: Performance of SimCode: time 6.72e-07/0.3487, allocations: 4 kB / 0.4962 GB, free: 4.52 MB / 378.7 MB Notification: Performance of Templates: time 0.1937/0.5425, allocations: 68.65 MB / 0.5633 GB, free: 34.45 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches