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.000997/0.000997, allocations: 107.4 kB / 17.16 MB, free: 6.305 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.001046/0.001046, allocations: 198 kB / 18.07 MB, free: 5.41 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.244/1.244, allocations: 205.1 MB / 223.9 MB, free: 12.46 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.001103/0.001103, allocations: 50.17 kB / 280.1 MB, free: 3.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07935/0.08046, allocations: 46.63 MB / 326.7 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter): time 0.01023/0.09073, allocations: 9.509 MB / 336.2 MB, free: 11.23 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005053/0.09581, allocations: 3.129 MB / 339.3 MB, free: 8.086 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008017/0.09664, allocations: 43.75 kB / 339.4 MB, free: 8.043 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001327/0.09801, allocations: 0.5827 MB / 340 MB, free: 7.457 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001409/0.09943, allocations: 0.6877 MB / 340.7 MB, free: 6.766 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005767/0.1, allocations: 351.6 kB / 341 MB, free: 6.422 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002155/0.1022, allocations: 2.876 MB / 343.9 MB, free: 3.535 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001903/0.1041, allocations: 1.926 MB / 345.8 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001109/0.1052, allocations: 1.031 MB / 346.8 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001395/0.1066, allocations: 1.444 MB / 348.3 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002944/0.1069, allocations: 196 kB / 348.5 MB, free: 14.87 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000619/0.1075, allocations: 311.8 kB / 348.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006602/0.1082, allocations: 0.771 MB / 349.5 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001117/0.1093, allocations: 1.29 MB / 350.8 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002815/0.1122, allocations: 4.003 MB / 354.8 MB, free: 8.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1122, allocations: 0 / 354.8 MB, free: 8.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.041e-06/0.1122, allocations: 0 / 354.8 MB, free: 8.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.801e-05/0.1122, allocations: 0 / 354.8 MB, free: 8.48 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.004777/0.117, allocations: 2.9 MB / 357.7 MB, free: 5.516 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.1171, allocations: 8.031 kB / 357.7 MB, free: 5.508 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003498/0.1174, allocations: 312.2 kB / 358.1 MB, free: 5.191 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006243/0.118, allocations: 293.6 kB / 358.3 MB, free: 4.902 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002003/0.1201, allocations: 1.429 MB / 359.8 MB, free: 3.414 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000132/0.1202, allocations: 168.3 kB / 359.9 MB, free: 3.246 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002776/0.1205, allocations: 216 kB / 360.1 MB, free: 3.035 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004029/0.1245, allocations: 2.788 MB / 362.9 MB, free: 164 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.342e-05/0.1246, allocations: 7.906 kB / 362.9 MB, free: 156 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001828/0.1248, allocations: 91.98 kB / 363 MB, free: 64 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001146/0.1249, allocations: 104.2 kB / 363.1 MB, free: 15.95 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003707/0.1286, allocations: 2.351 MB / 365.5 MB, free: 13.59 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01131/0.1399, allocations: 8.597 MB / 374.1 MB, free: 4.746 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002201/0.1421, allocations: 1.708 MB / 375.8 MB, free: 2.926 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00155/0.1437, allocations: 0.9753 MB / 376.8 MB, free: 1.945 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002676/0.144, allocations: 207.2 kB / 377 MB, free: 1.703 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.034e-05/0.144, allocations: 43.5 kB / 377 MB, free: 1.652 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 2.725e-06/0.144, allocations: 3.938 kB / 377 MB, free: 1.648 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.1356/0.2797, allocations: 6.089 MB / 383.1 MB, free: 50.91 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.958e-05/0.2797, allocations: 64.56 kB / 383.2 MB, free: 50.84 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001881/0.2816, allocations: 1.44 MB / 384.6 MB, free: 50.29 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.811e-05/0.2817, allocations: 47.95 kB / 384.6 MB, free: 50.24 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000531/0.2822, allocations: 1.043 MB / 385.7 MB, free: 49.43 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002295/0.2825, allocations: 407.9 kB / 386.1 MB, free: 49.12 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000359/0.2828, allocations: 250.8 kB / 386.3 MB, free: 49 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.107e-05/0.2829, allocations: 361.3 kB / 386.7 MB, free: 48.68 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00105/0.284, allocations: 0.6864 MB / 387.4 MB, free: 48.45 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001181/0.2852, allocations: 1.073 MB / 388.4 MB, free: 47.73 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002242/0.2874, allocations: 1.857 MB / 390.3 MB, free: 46.68 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.263e-06/0.2875, allocations: 2.75 kB / 390.3 MB, free: 46.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003783/0.2912, allocations: 2.405 MB / 392.7 MB, free: 45.66 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.214e-05/0.2913, allocations: 13.75 kB / 392.7 MB, free: 45.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.918e-05/0.2913, allocations: 12 kB / 392.7 MB, free: 45.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008941/0.2922, allocations: 419.3 kB / 393.1 MB, free: 45.53 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001082/0.2933, allocations: 323.5 kB / 393.5 MB, free: 45.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004842/0.2982, allocations: 6.473 MB / 399.9 MB, free: 40.46 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001138/0.2993, allocations: 101.5 kB / 400 MB, free: 40.44 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.667e-05/0.2994, allocations: 55.06 kB / 400.1 MB, free: 40.43 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.0009844/0.3004, allocations: 0.6947 MB / 400.8 MB, free: 40.04 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002301/0.3006, allocations: 159.7 kB / 400.9 MB, free: 39.95 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002848/0.3035, allocations: 2.122 MB / 403.1 MB, free: 38.72 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.493e-06/0.3035, allocations: 11.34 kB / 403.1 MB, free: 38.72 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.3035, allocations: 7.75 kB / 403.1 MB, free: 38.72 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.987e-06/0.3035, allocations: 7.969 kB / 403.1 MB, free: 38.71 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005346/0.3089, allocations: 4.578 MB / 407.7 MB, free: 34.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.3089, allocations: 4 kB / 407.7 MB, free: 34.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007553/0.3097, allocations: 208.7 kB / 407.9 MB, free: 34.36 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009084/0.3106, allocations: 455.1 kB / 408.3 MB, free: 33.91 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.315e-05/0.3107, allocations: 39.98 kB / 408.4 MB, free: 33.87 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005083/0.3158, allocations: 7.904 MB / 416.3 MB, free: 25.46 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.3158, allocations: 6.938 kB / 416.3 MB, free: 25.46 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00361/0.3194, allocations: 3.12 MB / 419.4 MB, free: 22.25 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000561/0.32, allocations: 374.4 kB / 419.8 MB, free: 21.86 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001867/0.3202, allocations: 31.98 kB / 419.8 MB, free: 21.83 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007636/0.3209, allocations: 83.91 kB / 419.9 MB, free: 21.75 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001824/0.3211, allocations: 96.75 kB / 420 MB, free: 21.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.31e-05/0.3212, allocations: 35.98 kB / 420 MB, free: 21.62 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001046/0.3222, allocations: 0.9919 MB / 421 MB, free: 20.63 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3223, allocations: 4 kB / 421 MB, free: 20.63 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001356/0.3236, allocations: 458.6 kB / 421.4 MB, free: 20.18 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.003786/0.3274, allocations: 3.74 MB / 425.2 MB, free: 16.34 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002745/0.3302, allocations: 2.213 MB / 427.4 MB, free: 14.07 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.3302, allocations: 0 / 427.4 MB, free: 14.07 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00169/0.3319, allocations: 1.44 MB / 428.8 MB, free: 12.59 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001687/0.3336, allocations: 397.2 kB / 429.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02417/0.3578, allocations: 19.23 MB / 448.5 MB, free: 7.805 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001394/0.3592, allocations: 1.799 MB / 450.3 MB, free: 5.977 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001122/0.3603, allocations: 361.6 kB / 450.6 MB, free: 5.617 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00106/0.3614, allocations: 0.8156 MB / 451.4 MB, free: 4.801 MB / 334.1 MB Notification: Performance of SimCode: time 1.724e-06/0.3614, allocations: 0 / 451.4 MB, free: 4.801 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0721/0.4335, allocations: 39.89 MB / 491.3 MB, free: 12.81 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002335/0.4338, allocations: 257 kB / 491.6 MB, free: 12.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.984/3.418, allocations: 0 / 491.6 MB, free: 12.52 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