Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SynchronousInductionMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001166/0.001166, allocations: 111.8 kB / 17.28 MB, free: 6.219 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009443/0.0009443, allocations: 185.3 kB / 18.19 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.237/1.237, allocations: 205.1 MB / 224.1 MB, free: 12.44 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001108/0.001108, allocations: 52.34 kB / 280.3 MB, free: 3.383 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08266/0.08378, allocations: 46.62 MB / 326.9 MB, free: 4.695 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter): time 0.009671/0.09349, allocations: 9.524 MB / 336.4 MB, free: 11.12 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004989/0.09851, allocations: 3.109 MB / 339.5 MB, free: 7.996 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007746/0.09932, allocations: 47.75 kB / 339.6 MB, free: 7.949 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001331/0.1007, allocations: 0.5827 MB / 340.1 MB, free: 7.363 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001599/0.1023, allocations: 0.6877 MB / 340.8 MB, free: 6.672 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006422/0.103, allocations: 347.6 kB / 341.2 MB, free: 6.332 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002287/0.1053, allocations: 2.557 MB / 343.7 MB, free: 3.766 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002251/0.1075, allocations: 2.29 MB / 346 MB, free: 1.414 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001294/0.1088, allocations: 1.183 MB / 347.2 MB, free: 232 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001594/0.1104, allocations: 1.518 MB / 348.7 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003872/0.1108, allocations: 320 kB / 349 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006742/0.1115, allocations: 415.8 kB / 349.4 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000743/0.1123, allocations: 0.8999 MB / 350.3 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001213/0.1135, allocations: 1.416 MB / 351.8 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003333/0.1168, allocations: 4.108 MB / 355.9 MB, free: 7.539 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.1169, allocations: 0 / 355.9 MB, free: 7.539 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1169, allocations: 4 kB / 355.9 MB, free: 7.535 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.96e-05/0.1169, allocations: 0 / 355.9 MB, free: 7.535 MB / 302.1 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.004902/0.1218, allocations: 2.893 MB / 358.8 MB, free: 4.578 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.1219, allocations: 8.031 kB / 358.8 MB, free: 4.57 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003599/0.1223, allocations: 316.2 kB / 359.1 MB, free: 4.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006564/0.1229, allocations: 297.6 kB / 359.4 MB, free: 3.957 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002002/0.1249, allocations: 1.429 MB / 360.8 MB, free: 2.469 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001874/0.1251, allocations: 164.3 kB / 361 MB, free: 2.305 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002763/0.1254, allocations: 204 kB / 361.2 MB, free: 2.105 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004203/0.1296, allocations: 2.799 MB / 364 MB, free: 15.22 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.872e-05/0.1297, allocations: 11.84 kB / 364 MB, free: 15.21 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00018/0.1299, allocations: 84 kB / 364 MB, free: 15.12 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001067/0.13, allocations: 108.1 kB / 364.2 MB, free: 15.02 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003647/0.1337, allocations: 2.347 MB / 366.5 MB, free: 12.65 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01148/0.1452, allocations: 8.597 MB / 375.1 MB, free: 3.809 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002206/0.1474, allocations: 1.715 MB / 376.8 MB, free: 1.98 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001617/0.149, allocations: 0.9606 MB / 377.8 MB, free: 1.016 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003274/0.1494, allocations: 207.2 kB / 378 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.796e-05/0.1494, allocations: 51.44 kB / 378 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 4.127e-06/0.1494, allocations: 0 / 378 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.1565/0.306, allocations: 6.095 MB / 384.1 MB, free: 50.29 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.104e-05/0.306, allocations: 63.91 kB / 384.2 MB, free: 50.22 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001912/0.308, allocations: 1.442 MB / 385.6 MB, free: 49.66 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.702e-05/0.3081, allocations: 46.08 kB / 385.7 MB, free: 49.61 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005729/0.3086, allocations: 1.045 MB / 386.7 MB, free: 48.81 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002497/0.3089, allocations: 401.5 kB / 387.1 MB, free: 48.51 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003798/0.3093, allocations: 253.6 kB / 387.4 MB, free: 48.39 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.949e-05/0.3094, allocations: 361 kB / 387.7 MB, free: 48.06 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001057/0.3104, allocations: 0.6826 MB / 388.4 MB, free: 47.82 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001195/0.3117, allocations: 1.076 MB / 389.5 MB, free: 47.12 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002249/0.3139, allocations: 1.859 MB / 391.3 MB, free: 46.04 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.088e-06/0.3139, allocations: 3.438 kB / 391.3 MB, free: 46.04 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003488/0.3174, allocations: 2.405 MB / 393.7 MB, free: 45.03 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.195e-05/0.3175, allocations: 18 kB / 393.7 MB, free: 45.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.215e-05/0.3175, allocations: 12.5 kB / 393.8 MB, free: 45.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008804/0.3184, allocations: 409.5 kB / 394.2 MB, free: 44.9 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001067/0.3195, allocations: 330.2 kB / 394.5 MB, free: 44.87 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004961/0.3244, allocations: 7.055 MB / 401.5 MB, free: 39.32 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001399/0.3259, allocations: 98.52 kB / 401.6 MB, free: 39.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000141/0.326, allocations: 54.41 kB / 401.7 MB, free: 39.26 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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.001174/0.3272, allocations: 0.7 MB / 402.4 MB, free: 38.79 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003504/0.3276, allocations: 154.8 kB / 402.5 MB, free: 38.71 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003014/0.3306, allocations: 2.121 MB / 404.7 MB, free: 37.46 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.758e-06/0.3306, allocations: 11.44 kB / 404.7 MB, free: 37.46 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.337e-06/0.3306, allocations: 3.812 kB / 404.7 MB, free: 37.46 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.24e-05/0.3307, allocations: 11.91 kB / 404.7 MB, free: 37.45 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00596/0.3366, allocations: 4.578 MB / 409.3 MB, free: 32.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.977e-06/0.3367, allocations: 4 kB / 409.3 MB, free: 32.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008012/0.3375, allocations: 212.4 kB / 409.5 MB, free: 32.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009469/0.3384, allocations: 452.5 kB / 409.9 MB, free: 32.32 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.405e-05/0.3385, allocations: 39.92 kB / 410 MB, free: 32.28 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005621/0.3441, allocations: 8.618 MB / 418.6 MB, free: 23.14 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.3442, allocations: 7.938 kB / 418.6 MB, free: 23.14 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003904/0.3481, allocations: 3.112 MB / 421.7 MB, free: 19.94 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006951/0.3488, allocations: 375.1 kB / 422.1 MB, free: 19.55 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003351/0.3492, allocations: 35.92 kB / 422.1 MB, free: 19.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009064/0.3501, allocations: 79.91 kB / 422.2 MB, free: 19.44 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000205/0.3503, allocations: 96.81 kB / 422.3 MB, free: 19.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.756e-05/0.3504, allocations: 43.92 kB / 422.3 MB, free: 19.3 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001146/0.3515, allocations: 0.9879 MB / 423.3 MB, free: 18.31 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3515, allocations: 0 / 423.3 MB, free: 18.31 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001464/0.353, allocations: 458.6 kB / 423.7 MB, free: 17.87 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (103): * Single equations (assignments): 99 * 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.003927/0.3569, allocations: 3.743 MB / 427.5 MB, free: 14.02 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003813/0.3608, allocations: 2.682 MB / 430.2 MB, free: 11.3 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.3608, allocations: 0 / 430.2 MB, free: 11.3 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001844/0.3626, allocations: 1.447 MB / 431.6 MB, free: 9.805 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002146/0.3648, allocations: 425.8 kB / 432 MB, free: 9.398 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03231/0.3971, allocations: 19.24 MB / 451.3 MB, free: 4.98 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001617/0.3988, allocations: 1.803 MB / 453.1 MB, free: 3.148 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001084/0.3999, allocations: 365.6 kB / 453.4 MB, free: 2.785 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009861/0.4009, allocations: 0.8156 MB / 454.3 MB, free: 1.969 MB / 334.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4009, allocations: 0 / 454.3 MB, free: 1.969 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06709/0.468, allocations: 40.84 MB / 495.1 MB, free: 9.039 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001911/0.4682, allocations: 257.4 kB / 495.3 MB, free: 8.746 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.66/3.129, allocations: 4 kB / 495.4 MB, free: 8.742 MB / 382.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMR_Inverter/SMR_Inverter.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches