Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001519/0.001524, allocations: 186.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.261/2.261, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001252/0.001252, allocations: 90.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005838/0.0005839, allocations: 8 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1123, allocations: 47.59 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz): time 0.01357/0.1259, allocations: 7.809 MB / 382.5 MB, free: 7.5 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.007836/0.1338, allocations: 2.98 MB / 385.4 MB, free: 4.504 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001412/0.1353, allocations: 35.81 kB / 385.5 MB, free: 4.469 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002131/0.1375, allocations: 0.517 MB / 386 MB, free: 3.949 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003178/0.1407, allocations: 0.6581 MB / 386.6 MB, free: 3.289 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001236/0.1419, allocations: 243.7 kB / 386.9 MB, free: 3.051 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.004241/0.1462, allocations: 1.607 MB / 388.5 MB, free: 1.434 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002777/0.149, allocations: 1.197 MB / 389.7 MB, free: 212 kB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2589/0.408, allocations: 0.7568 MB / 390.4 MB, free: 10.3 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002725/0.4107, allocations: 0.9485 MB / 391.4 MB, free: 10.3 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009682/0.4117, allocations: 122.5 kB / 391.5 MB, free: 10.3 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00159/0.4134, allocations: 185 kB / 391.7 MB, free: 10.3 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00142/0.4148, allocations: 0.5607 MB / 392.3 MB, free: 10.3 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001267/0.4161, allocations: 457 kB / 392.7 MB, free: 10.27 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005839/0.422, allocations: 2.876 MB / 395.6 MB, free: 10.1 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.422, allocations: 0 / 395.6 MB, free: 10.1 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.777e-06/0.4221, allocations: 0 / 395.6 MB, free: 10.1 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001583/0.4222, allocations: 0 / 395.6 MB, free: 10.1 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 491 * Number of variables: 491 Notification: Performance of Generate backend data structure: time 0.008363/0.4306, allocations: 2.185 MB / 397.8 MB, free: 9.039 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.454e-05/0.4307, allocations: 12.48 kB / 397.8 MB, free: 9.039 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001328/0.432, allocations: 276.3 kB / 398 MB, free: 8.992 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001638/0.4337, allocations: 271.3 kB / 398.3 MB, free: 8.867 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00447/0.4382, allocations: 1.227 MB / 399.5 MB, free: 8.492 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002222/0.4385, allocations: 143.8 kB / 399.7 MB, free: 8.488 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009424/0.4394, allocations: 193 kB / 399.9 MB, free: 8.484 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00874/0.4482, allocations: 2.383 MB / 402.2 MB, free: 8.113 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001251/0.4484, allocations: 10.98 kB / 402.3 MB, free: 8.105 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003546/0.4487, allocations: 80.11 kB / 402.3 MB, free: 8.105 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001667/0.4489, allocations: 90.59 kB / 402.4 MB, free: 8.098 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007348/0.4563, allocations: 1.952 MB / 404.4 MB, free: 7.789 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02265/0.479, allocations: 7.854 MB / 412.2 MB, free: 3.141 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002786/0.4818, allocations: 1.218 MB / 413.4 MB, free: 2.395 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000353/0.4822, allocations: 122.9 kB / 413.6 MB, free: 2.289 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.339e-05/0.4823, allocations: 42.69 kB / 413.6 MB, free: 2.242 MB / 282.7 MB Notification: Performance of pre-optimization done (n=95): time 3.717e-06/0.4823, allocations: 0 / 413.6 MB, free: 2.242 MB / 282.7 MB Notification: Performance of matching and sorting (n=111): time 0.02309/0.5054, allocations: 5.91 MB / 419.5 MB, free: 14.26 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.475e-05/0.5055, allocations: 64.41 kB / 419.6 MB, free: 14.18 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003172/0.5087, allocations: 1.256 MB / 420.8 MB, free: 12.92 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003514/0.5091, allocations: 45.7 kB / 420.9 MB, free: 12.87 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000981/0.5101, allocations: 0.8844 MB / 421.8 MB, free: 11.98 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007265/0.5108, allocations: 390.9 kB / 422.1 MB, free: 11.6 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001991/0.5111, allocations: 28 kB / 422.2 MB, free: 11.57 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002291/0.5113, allocations: 362.8 kB / 422.5 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001942/0.5132, allocations: 0.6325 MB / 423.2 MB, free: 10.58 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002388/0.5157, allocations: 0.9886 MB / 424.2 MB, free: 9.441 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002347/0.5181, allocations: 0.7877 MB / 424.9 MB, free: 8.652 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.141e-05/0.5181, allocations: 7.938 kB / 424.9 MB, free: 8.645 MB / 298.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.006857/0.525, allocations: 2.137 MB / 427.1 MB, free: 6.484 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.006e-05/0.5251, allocations: 12 kB / 427.1 MB, free: 6.473 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.786e-05/0.5251, allocations: 8 kB / 427.1 MB, free: 6.465 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00221/0.5274, allocations: 496.1 kB / 427.6 MB, free: 5.965 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002362/0.5298, allocations: 303.5 kB / 427.9 MB, free: 5.668 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01184/0.5417, allocations: 6.606 MB / 434.5 MB, free: 14.68 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002105/0.5438, allocations: 95.97 kB / 434.6 MB, free: 14.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000307/0.5442, allocations: 48 kB / 434.6 MB, free: 14.54 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 2 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 142 * 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,(2,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002023/0.5462, allocations: 0.6035 MB / 435.2 MB, free: 13.93 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000543/0.5468, allocations: 142.2 kB / 435.4 MB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006412/0.5532, allocations: 1.965 MB / 437.3 MB, free: 11.8 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.253e-05/0.5533, allocations: 12 kB / 437.3 MB, free: 11.79 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.817e-05/0.5533, allocations: 4 kB / 437.4 MB, free: 11.78 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.676e-05/0.5534, allocations: 7.969 kB / 437.4 MB, free: 11.77 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0133/0.5667, allocations: 4.064 MB / 441.4 MB, free: 7.641 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.47e-05/0.5667, allocations: 8.281 kB / 441.4 MB, free: 7.633 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001767/0.5685, allocations: 179.8 kB / 441.6 MB, free: 7.457 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002802/0.5714, allocations: 0.5309 MB / 442.1 MB, free: 6.91 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002748/0.5717, allocations: 31.98 kB / 442.2 MB, free: 6.879 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01366/0.5854, allocations: 8.113 MB / 450.3 MB, free: 14.23 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.376e-05/0.5854, allocations: 7.969 kB / 450.3 MB, free: 14.23 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008619/0.5941, allocations: 2.969 MB / 453.3 MB, free: 11.16 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001437/0.5956, allocations: 351.1 kB / 453.6 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005622/0.5962, allocations: 28 kB / 453.6 MB, free: 10.77 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001691/0.5979, allocations: 71.92 kB / 453.7 MB, free: 10.7 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004242/0.5983, allocations: 88.91 kB / 453.8 MB, free: 10.62 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001274/0.5985, allocations: 31.98 kB / 453.8 MB, free: 10.59 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002318/0.6008, allocations: 0.8448 MB / 454.7 MB, free: 9.738 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.6008, allocations: 0 / 454.7 MB, free: 9.738 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003012/0.6039, allocations: 444.1 kB / 455.1 MB, free: 9.305 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 81 * 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%) 1,(2,100.0%) 8,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01006/0.614, allocations: 4.16 MB / 459.3 MB, free: 5.047 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.006251/0.6203, allocations: 2.225 MB / 461.5 MB, free: 2.742 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.357e-05/0.6203, allocations: 8.125 kB / 461.5 MB, free: 2.734 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004175/0.6245, allocations: 1.494 MB / 463 MB, free: 1.164 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003459/0.628, allocations: 380.8 kB / 463.4 MB, free: 0.793 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04205/0.6701, allocations: 19.3 MB / 482.7 MB, free: 12.9 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002349/0.6726, allocations: 1.673 MB / 484.3 MB, free: 11.2 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001868/0.6745, allocations: 0.7237 MB / 485.1 MB, free: 10.48 MB / 362.7 MB Notification: Performance of SimCode: time 1.773e-06/0.6745, allocations: 0 / 485.1 MB, free: 10.48 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.148/4.822, allocations: 76.86 MB / 0.5487 GB, free: 130.8 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Steinmetz_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Steinmetz.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz_res.mat does not exist to compare? outputFormat=mat