Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008525/0.0008525, allocations: 100.7 kB / 17.01 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00102/0.00102, allocations: 196.5 kB / 17.91 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 227.4 MB / 246 MB, free: 10.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004049/0.000405, allocations: 4 kB / 306.8 MB, free: 1.27 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1359, allocations: 51.5 MB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01057/0.1465, allocations: 8.545 MB / 366.9 MB, free: 5.195 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007126/0.1537, allocations: 2.969 MB / 369.8 MB, free: 2.219 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00202/0.1558, allocations: 51.75 kB / 369.9 MB, free: 2.168 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002134/0.1579, allocations: 0.5358 MB / 370.4 MB, free: 1.629 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00338/0.1614, allocations: 0.6447 MB / 371.1 MB, free: 0.9805 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001083/0.1624, allocations: 255.7 kB / 371.3 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2712/0.4337, allocations: 2.592 MB / 373.9 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002901/0.4366, allocations: 1.525 MB / 375.4 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002348/0.439, allocations: 0.89 MB / 376.3 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002579/0.4416, allocations: 1.21 MB / 377.5 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003099/0.4419, allocations: 132.7 kB / 377.7 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007029/0.4426, allocations: 215.1 kB / 377.9 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008987/0.4436, allocations: 0.6748 MB / 378.5 MB, free: 9.484 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006647/0.4442, allocations: 499.7 kB / 379 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004232/0.4485, allocations: 3.335 MB / 382.4 MB, free: 9.191 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.4485, allocations: 0 / 382.4 MB, free: 9.191 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.4485, allocations: 0 / 382.4 MB, free: 9.191 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.334e-05/0.4486, allocations: 0 / 382.4 MB, free: 9.191 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.005128/0.4537, allocations: 2.504 MB / 384.9 MB, free: 7.902 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/0.4538, allocations: 12.97 kB / 384.9 MB, free: 7.898 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004564/0.4542, allocations: 310.5 kB / 385.2 MB, free: 7.797 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007989/0.455, allocations: 296.1 kB / 385.5 MB, free: 7.652 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002346/0.4574, allocations: 1.449 MB / 386.9 MB, free: 6.992 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001667/0.4576, allocations: 166 kB / 387.1 MB, free: 6.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003445/0.4579, allocations: 224.2 kB / 387.3 MB, free: 6.965 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004925/0.4629, allocations: 2.786 MB / 390.1 MB, free: 6.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.684e-05/0.4629, allocations: 10.58 kB / 390.1 MB, free: 6.223 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002044/0.4632, allocations: 86.83 kB / 390.2 MB, free: 6.223 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000136/0.4633, allocations: 106.9 kB / 390.3 MB, free: 6.207 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004348/0.4677, allocations: 2.349 MB / 392.6 MB, free: 5.336 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01301/0.4807, allocations: 8.644 MB / 401.3 MB, free: 15.19 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002532/0.4833, allocations: 1.71 MB / 403 MB, free: 13.48 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001721/0.485, allocations: 0.992 MB / 404 MB, free: 12.5 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003157/0.4853, allocations: 206.5 kB / 404.2 MB, free: 12.26 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.076e-05/0.4854, allocations: 47.5 kB / 404.2 MB, free: 12.2 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 4.438e-06/0.4854, allocations: 7.984 kB / 404.2 MB, free: 12.2 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.01355/0.499, allocations: 6.327 MB / 410.6 MB, free: 5.711 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.869e-05/0.499, allocations: 64.41 kB / 410.6 MB, free: 5.633 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002311/0.5014, allocations: 1.437 MB / 412.1 MB, free: 4.184 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.311e-05/0.5015, allocations: 41.7 kB / 412.1 MB, free: 4.137 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007929/0.5023, allocations: 1.038 MB / 413.2 MB, free: 3.09 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003511/0.5026, allocations: 411.8 kB / 413.6 MB, free: 2.691 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.988e-05/0.5027, allocations: 32 kB / 413.6 MB, free: 2.66 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.5029, allocations: 361.9 kB / 413.9 MB, free: 2.301 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001149/0.504, allocations: 0.691 MB / 414.6 MB, free: 1.609 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001454/0.5055, allocations: 1.073 MB / 415.7 MB, free: 388 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001353/0.5069, allocations: 0.8651 MB / 416.6 MB, free: 15.51 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.693e-06/0.5069, allocations: 4 kB / 416.6 MB, free: 15.51 MB / 334.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004071/0.511, allocations: 2.426 MB / 419 MB, free: 13.04 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.966e-05/0.511, allocations: 12 kB / 419 MB, free: 13.03 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.884e-05/0.511, allocations: 14.19 kB / 419 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009522/0.512, allocations: 415.3 kB / 419.4 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001189/0.5132, allocations: 339.5 kB / 419.8 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006481/0.5197, allocations: 6.461 MB / 426.2 MB, free: 5.414 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00157/0.5213, allocations: 111.8 kB / 426.3 MB, free: 5.305 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001277/0.5214, allocations: 59.98 kB / 426.4 MB, free: 5.246 MB / 334.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 (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.001611/0.523, allocations: 0.6847 MB / 427.1 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000347/0.5234, allocations: 166.1 kB / 427.2 MB, free: 4.387 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003807/0.5272, allocations: 2.142 MB / 429.4 MB, free: 2.203 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.258e-05/0.5272, allocations: 12 kB / 429.4 MB, free: 2.191 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.5273, allocations: 4 kB / 429.4 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.73e-05/0.5273, allocations: 11.97 kB / 429.4 MB, free: 2.176 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007978/0.5353, allocations: 4.609 MB / 434 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.775e-06/0.5353, allocations: 0 / 434 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008849/0.5362, allocations: 228.1 kB / 434.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001109/0.5373, allocations: 444.5 kB / 434.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.418e-05/0.5374, allocations: 35.97 kB / 434.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008138/0.5456, allocations: 7.91 MB / 442.6 MB, free: 4.328 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/0.5456, allocations: 8.031 kB / 442.6 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005274/0.5509, allocations: 3.126 MB / 445.7 MB, free: 1.113 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008345/0.5517, allocations: 383 kB / 446.1 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002026/0.5519, allocations: 31.98 kB / 446.2 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008253/0.5528, allocations: 87.91 kB / 446.2 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002128/0.553, allocations: 96.77 kB / 446.3 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.859e-05/0.5531, allocations: 39.92 kB / 446.4 MB, free: 480 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001593/0.5547, allocations: 0.9771 MB / 447.4 MB, free: 15.49 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5547, allocations: 0 / 447.4 MB, free: 15.49 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001781/0.5565, allocations: 460 kB / 447.8 MB, free: 15.04 MB / 366.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 (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.00519/0.5617, allocations: 3.741 MB / 451.5 MB, free: 11.2 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003679/0.5654, allocations: 2.233 MB / 453.8 MB, free: 8.914 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.204e-06/0.5654, allocations: 7.391 kB / 453.8 MB, free: 8.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002251/0.5677, allocations: 1.443 MB / 455.2 MB, free: 7.414 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002031/0.5697, allocations: 406.8 kB / 455.6 MB, free: 7.027 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02497/0.5947, allocations: 13.48 MB / 469.1 MB, free: 8.902 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001726/0.5965, allocations: 1.799 MB / 470.9 MB, free: 7.066 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001453/0.5979, allocations: 377.6 kB / 471.3 MB, free: 6.691 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001172/0.5991, allocations: 0.8117 MB / 472.1 MB, free: 5.879 MB / 382.1 MB Notification: Performance of SimCode: time 1.693e-06/0.5991, allocations: 4 kB / 472.1 MB, free: 5.875 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0646/0.6637, allocations: 39 MB / 0.4991 GB, free: 15.32 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001719/0.6639, allocations: 240 kB / 0.4993 GB, free: 15.07 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.922/3.586, allocations: 0 / 0.4993 GB, free: 15.07 MB / 430.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat