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.001334/0.001334, allocations: 100.6 kB / 16.94 MB, free: 6.441 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.001527/0.001527, allocations: 184.2 kB / 17.83 MB, free: 6.004 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.471/1.471, allocations: 205.4 MB / 224 MB, free: 13.18 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.0004952/0.0004956, allocations: 12 kB / 280.8 MB, free: 3.648 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.101, allocations: 47.58 MB / 328.4 MB, free: 3.996 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter): time 0.009192/0.1102, allocations: 7.774 MB / 336.2 MB, free: 12.19 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00548/0.1158, allocations: 3.042 MB / 339.2 MB, free: 9.137 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001007/0.1168, allocations: 43.75 kB / 339.3 MB, free: 9.094 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001279/0.1181, allocations: 0.5597 MB / 339.8 MB, free: 8.531 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001866/0.12, allocations: 0.6504 MB / 340.5 MB, free: 7.879 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007521/0.1207, allocations: 255.6 kB / 340.7 MB, free: 7.629 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00233/0.1231, allocations: 1.669 MB / 342.4 MB, free: 5.957 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001832/0.1249, allocations: 1.492 MB / 343.9 MB, free: 4.43 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001273/0.1262, allocations: 0.8173 MB / 344.7 MB, free: 3.609 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001374/0.1276, allocations: 1.058 MB / 345.8 MB, free: 2.547 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002264/0.1278, allocations: 132 kB / 345.9 MB, free: 2.418 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005198/0.1284, allocations: 211.8 kB / 346.1 MB, free: 2.211 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006892/0.1291, allocations: 0.6427 MB / 346.8 MB, free: 1.566 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004931/0.1296, allocations: 492.5 kB / 347.2 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00331/0.1329, allocations: 3.292 MB / 350.5 MB, free: 13.78 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1329, allocations: 0 / 350.5 MB, free: 13.78 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1329, allocations: 0 / 350.5 MB, free: 13.78 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.032e-05/0.133, allocations: 0 / 350.5 MB, free: 13.78 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.004889/0.1379, allocations: 2.476 MB / 353 MB, free: 11.24 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.188e-05/0.1379, allocations: 8.031 kB / 353 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004292/0.1384, allocations: 320 kB / 353.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006558/0.139, allocations: 292.8 kB / 353.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002518/0.1416, allocations: 1.39 MB / 355 MB, free: 9.168 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001553/0.1417, allocations: 160.2 kB / 355.2 MB, free: 9.008 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003076/0.142, allocations: 227.8 kB / 355.4 MB, free: 8.785 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004597/0.1466, allocations: 2.768 MB / 358.2 MB, free: 5.93 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.863e-05/0.1467, allocations: 11.84 kB / 358.2 MB, free: 5.918 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000183/0.1469, allocations: 91.95 kB / 358.3 MB, free: 5.828 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001142/0.147, allocations: 104.2 kB / 358.4 MB, free: 5.723 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004013/0.151, allocations: 2.351 MB / 360.7 MB, free: 3.355 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01375/0.1648, allocations: 8.585 MB / 369.3 MB, free: 10.52 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00245/0.1673, allocations: 1.715 MB / 371 MB, free: 8.691 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002975/0.1676, allocations: 212.2 kB / 371.2 MB, free: 8.449 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.615e-05/0.1677, allocations: 47.5 kB / 371.3 MB, free: 8.395 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 3.096e-06/0.1677, allocations: 0 / 371.3 MB, free: 8.395 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.01286/0.1805, allocations: 6.078 MB / 377.3 MB, free: 2.188 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.463e-05/0.1806, allocations: 64.41 kB / 377.4 MB, free: 2.113 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001992/0.1826, allocations: 1.379 MB / 378.8 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.766e-05/0.1827, allocations: 49.69 kB / 378.8 MB, free: 0.668 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2269/0.4096, allocations: 1.032 MB / 379.9 MB, free: 50.23 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006365/0.4103, allocations: 410.3 kB / 380.3 MB, free: 50.05 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001065/0.4104, allocations: 29.72 kB / 380.3 MB, free: 50.05 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.4105, allocations: 367.1 kB / 380.6 MB, free: 49.74 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001315/0.4119, allocations: 0.6953 MB / 381.3 MB, free: 49.74 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001675/0.4135, allocations: 1.078 MB / 382.4 MB, free: 49.31 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001472/0.415, allocations: 0.8722 MB / 383.3 MB, free: 49.29 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.073e-05/0.4151, allocations: 2.188 kB / 383.3 MB, free: 49.29 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004304/0.4194, allocations: 2.41 MB / 385.7 MB, free: 48.36 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.559e-05/0.4194, allocations: 9.5 kB / 385.7 MB, free: 48.36 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.352e-05/0.4195, allocations: 12.77 kB / 385.7 MB, free: 48.36 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001023/0.4205, allocations: 388.7 kB / 386.1 MB, free: 48.24 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001304/0.4218, allocations: 338.6 kB / 386.4 MB, free: 48.21 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006139/0.428, allocations: 6.379 MB / 392.8 MB, free: 43.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001547/0.4296, allocations: 102.2 kB / 392.9 MB, free: 43.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000139/0.4297, allocations: 63.67 kB / 393 MB, free: 43.17 MB / 318.1 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 (160): * Single equations (assignments): 156 * 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%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001456/0.4312, allocations: 0.6922 MB / 393.7 MB, free: 42.78 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000387/0.4316, allocations: 159.6 kB / 393.8 MB, free: 42.7 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003604/0.4352, allocations: 2.126 MB / 396 MB, free: 41.79 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.704e-05/0.4352, allocations: 22.09 kB / 396 MB, free: 41.79 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/0.4352, allocations: 2.188 kB / 396 MB, free: 41.79 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.384e-05/0.4352, allocations: 9.594 kB / 396 MB, free: 41.79 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00737/0.4426, allocations: 4.54 MB / 400.5 MB, free: 39.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.087e-06/0.4427, allocations: 7.969 kB / 400.5 MB, free: 39.83 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008571/0.4435, allocations: 225.2 kB / 400.8 MB, free: 39.78 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009643/0.4445, allocations: 427.1 kB / 401.2 MB, free: 39.55 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.199e-05/0.4446, allocations: 35.05 kB / 401.2 MB, free: 39.53 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005788/0.4504, allocations: 7.875 MB / 409.1 MB, free: 32.59 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.4505, allocations: 3.812 kB / 409.1 MB, free: 32.59 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004351/0.4548, allocations: 3.304 MB / 412.4 MB, free: 29.2 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009435/0.4558, allocations: 382.9 kB / 412.8 MB, free: 28.8 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001874/0.456, allocations: 35.98 kB / 412.8 MB, free: 28.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007603/0.4567, allocations: 89 kB / 412.9 MB, free: 28.68 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002206/0.457, allocations: 92.81 kB / 413 MB, free: 28.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.947e-05/0.457, allocations: 43.94 kB / 413 MB, free: 28.55 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001226/0.4583, allocations: 0.9457 MB / 414 MB, free: 27.61 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4583, allocations: 0 / 414 MB, free: 27.61 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001692/0.46, allocations: 454.8 kB / 414.4 MB, free: 27.16 MB / 318.1 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 (105): * Single equations (assignments): 101 * 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%) 3,(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.00425/0.4642, allocations: 4.781 MB / 419.2 MB, free: 22.25 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003228/0.4675, allocations: 2.223 MB / 421.4 MB, free: 19.97 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.997e-06/0.4675, allocations: 0 / 421.4 MB, free: 19.97 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001824/0.4694, allocations: 1.435 MB / 422.8 MB, free: 18.48 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001898/0.4713, allocations: 379.4 kB / 423.2 MB, free: 18.11 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02348/0.4948, allocations: 20.95 MB / 444.2 MB, free: 12.45 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0018/0.4966, allocations: 1.85 MB / 446 MB, free: 10.57 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001283/0.4979, allocations: 369.9 kB / 446.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001117/0.499, allocations: 0.8117 MB / 447.2 MB, free: 9.391 MB / 334.1 MB Notification: Performance of SimCode: time 1.202e-06/0.4991, allocations: 0 / 447.2 MB, free: 9.391 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07973/0.5788, allocations: 38.56 MB / 485.7 MB, free: 2.766 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003488/0.5792, allocations: 236.9 kB / 486 MB, free: 2.523 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.593/3.172, allocations: 0 / 486 MB, free: 2.523 MB / 366.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/linux/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) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat