Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_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.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_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.0007775/0.0007776, allocations: 98.84 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000828/0.0008282, allocations: 192.2 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.437/1.437, allocations: 227.4 MB / 246 MB, free: 11.99 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002495/0.0002496, allocations: 8 kB / 306.8 MB, free: 1.477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1122, allocations: 51.5 MB / 358.3 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter): time 0.008237/0.1205, allocations: 7.847 MB / 366.2 MB, free: 6.109 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005158/0.1257, allocations: 2.712 MB / 368.9 MB, free: 3.391 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001053/0.1268, allocations: 43.81 kB / 368.9 MB, free: 3.348 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001305/0.1281, allocations: 497.1 kB / 369.4 MB, free: 2.859 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001602/0.1297, allocations: 0.5982 MB / 370 MB, free: 2.258 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005801/0.1303, allocations: 203.7 kB / 370.2 MB, free: 2.059 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2469/0.3773, allocations: 2.305 MB / 372.5 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002506/0.3798, allocations: 1.224 MB / 373.7 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002136/0.382, allocations: 0.7754 MB / 374.5 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002563/0.3846, allocations: 1.064 MB / 375.6 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003542/0.3849, allocations: 116.9 kB / 375.7 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007867/0.3857, allocations: 189.5 kB / 375.9 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009482/0.3867, allocations: 0.5822 MB / 376.5 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006248/0.3873, allocations: 431.5 kB / 376.9 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004208/0.3915, allocations: 2.844 MB / 379.7 MB, free: 9.508 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.3916, allocations: 0 / 379.7 MB, free: 9.508 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.3916, allocations: 0 / 379.7 MB, free: 9.508 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000111/0.3917, allocations: 1.094 kB / 379.7 MB, free: 9.508 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: 468 * Number of variables: 468 Notification: Performance of Generate backend data structure: time 0.005823/0.3975, allocations: 2.145 MB / 381.9 MB, free: 8.477 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.919e-05/0.3976, allocations: 11.38 kB / 381.9 MB, free: 8.477 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006033/0.3982, allocations: 264.2 kB / 382.1 MB, free: 8.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008273/0.399, allocations: 256 kB / 382.4 MB, free: 8.312 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00245/0.4015, allocations: 1.232 MB / 383.6 MB, free: 7.941 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000143/0.4016, allocations: 136.3 kB / 383.7 MB, free: 7.938 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003231/0.402, allocations: 180.9 kB / 383.9 MB, free: 7.934 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005317/0.4073, allocations: 2.368 MB / 386.3 MB, free: 7.656 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.775e-05/0.4074, allocations: 5.844 kB / 386.3 MB, free: 7.656 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001942/0.4076, allocations: 71.84 kB / 386.4 MB, free: 7.656 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001544/0.4077, allocations: 95.31 kB / 386.5 MB, free: 7.641 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00425/0.412, allocations: 1.968 MB / 388.4 MB, free: 7.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01362/0.4256, allocations: 7.181 MB / 395.6 MB, free: 2.699 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001903/0.4276, allocations: 1.284 MB / 396.9 MB, free: 1.875 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001572/0.4292, allocations: 0.8732 MB / 397.8 MB, free: 1.488 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002566/0.4295, allocations: 130.4 kB / 397.9 MB, free: 1.375 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.535e-05/0.4295, allocations: 38.88 kB / 397.9 MB, free: 1.328 MB / 302.1 MB Notification: Performance of pre-optimization done (n=87): time 3.526e-06/0.4295, allocations: 0 / 397.9 MB, free: 1.328 MB / 302.1 MB Notification: Performance of matching and sorting (n=104): time 0.01439/0.4439, allocations: 6.188 MB / 404.1 MB, free: 12.46 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.624e-05/0.444, allocations: 71.41 kB / 404.2 MB, free: 12.39 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002225/0.4463, allocations: 1.207 MB / 405.4 MB, free: 11.17 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001048/0.4464, allocations: 49.64 kB / 405.4 MB, free: 11.11 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007443/0.4471, allocations: 0.8733 MB / 406.3 MB, free: 10.23 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003627/0.4475, allocations: 362.1 kB / 406.7 MB, free: 9.879 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.771e-05/0.4476, allocations: 26.3 kB / 406.7 MB, free: 9.855 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001956/0.4478, allocations: 349.9 kB / 407 MB, free: 9.508 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001023/0.4488, allocations: 0.6272 MB / 407.7 MB, free: 8.879 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001253/0.4501, allocations: 0.9259 MB / 408.6 MB, free: 7.828 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001246/0.4513, allocations: 0.7594 MB / 409.4 MB, free: 7.078 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.674e-06/0.4514, allocations: 4 kB / 409.4 MB, free: 7.074 MB / 318.1 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.003809/0.4552, allocations: 2.229 MB / 411.6 MB, free: 4.824 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.915e-05/0.4552, allocations: 12.23 kB / 411.6 MB, free: 4.812 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.769e-05/0.4552, allocations: 19.95 kB / 411.6 MB, free: 4.793 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00106/0.4563, allocations: 479.4 kB / 412.1 MB, free: 4.312 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009534/0.4573, allocations: 275.6 kB / 412.4 MB, free: 4.043 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006351/0.4636, allocations: 6.427 MB / 418.8 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00135/0.465, allocations: 75.92 kB / 418.9 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001009/0.4651, allocations: 55.98 kB / 418.9 MB, free: 13.09 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (132): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001449/0.4666, allocations: 0.6015 MB / 419.5 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003328/0.4669, allocations: 134.3 kB / 419.6 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003701/0.4706, allocations: 2.038 MB / 421.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.534e-05/0.4707, allocations: 8 kB / 421.7 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.458e-05/0.4707, allocations: 23.22 kB / 421.7 MB, free: 10.24 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.258e-05/0.4707, allocations: 7.922 kB / 421.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007637/0.4783, allocations: 4.24 MB / 426 MB, free: 5.883 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.067e-05/0.4784, allocations: 4 kB / 426 MB, free: 5.879 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007178/0.4791, allocations: 179.8 kB / 426.1 MB, free: 5.703 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001258/0.4804, allocations: 0.5205 MB / 426.7 MB, free: 5.168 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.855e-05/0.4805, allocations: 31.98 kB / 426.7 MB, free: 5.137 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007383/0.4879, allocations: 7.91 MB / 434.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.4879, allocations: 4 kB / 434.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004658/0.4926, allocations: 2.966 MB / 437.6 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008418/0.4935, allocations: 347.2 kB / 437.9 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001833/0.4936, allocations: 33.95 kB / 437.9 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007162/0.4944, allocations: 79.92 kB / 438 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000222/0.4946, allocations: 92.77 kB / 438.1 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.094e-05/0.4947, allocations: 35.98 kB / 438.1 MB, free: 9.043 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001402/0.4961, allocations: 0.8305 MB / 439 MB, free: 8.207 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4961, allocations: 4 kB / 439 MB, free: 8.203 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001646/0.4978, allocations: 408.1 kB / 439.4 MB, free: 7.805 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (aimc.inertiaRotor.w,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[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 (88): * Single equations (assignments): 83 * 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: 4 * 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: 4 {(2,100.0%) 12,(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.004775/0.5025, allocations: 3.552 MB / 442.9 MB, free: 4.148 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003521/0.5061, allocations: 2.17 MB / 445.1 MB, free: 1.898 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.887e-06/0.5061, allocations: 0 / 445.1 MB, free: 1.898 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002155/0.5083, allocations: 1.487 MB / 446.6 MB, free: 352 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002312/0.5106, allocations: 370.5 kB / 447 MB, free: 15.99 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02164/0.5322, allocations: 11.74 MB / 458.7 MB, free: 3.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001814/0.5341, allocations: 1.63 MB / 460.3 MB, free: 2.07 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001094/0.5352, allocations: 295.8 kB / 460.6 MB, free: 1.777 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009049/0.5361, allocations: 0.6929 MB / 461.3 MB, free: 1.086 MB / 366.1 MB Notification: Performance of SimCode: time 1.443e-06/0.5361, allocations: 0 / 461.3 MB, free: 1.086 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06476/0.6009, allocations: 34.71 MB / 496 MB, free: 14.8 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001751/0.6011, allocations: 226.8 kB / 496.2 MB, free: 14.56 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.593/3.194, allocations: 10.47 kB / 496.2 MB, free: 14.55 MB / 414.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter_res.mat does not exist to compare? outputFormat=mat