Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD.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.AsynchronousInductionMachines.AIMC_YD,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_YD",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.001364/0.001364, allocations: 95.06 kB / 16.95 MB, free: 6.113 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.002001/0.002001, allocations: 174.9 kB / 17.84 MB, free: 5.73 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.746/1.746, allocations: 205.4 MB / 224 MB, free: 13.15 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.0007155/0.0007159, allocations: 12 kB / 280.9 MB, free: 3.625 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1419/0.1427, allocations: 47.58 MB / 328.5 MB, free: 3.969 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD): time 0.01255/0.1553, allocations: 8.626 MB / 337.1 MB, free: 11.31 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008113/0.1635, allocations: 2.959 MB / 340.1 MB, free: 8.336 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001953/0.1655, allocations: 39.81 kB / 340.1 MB, free: 8.297 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00217/0.1677, allocations: 0.532 MB / 340.6 MB, free: 7.762 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003355/0.1711, allocations: 0.707 MB / 341.3 MB, free: 7.051 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001231/0.1723, allocations: 239.7 kB / 341.6 MB, free: 6.816 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006022/0.1784, allocations: 3.183 MB / 344.7 MB, free: 3.617 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002618/0.181, allocations: 1.559 MB / 346.3 MB, free: 2.023 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002282/0.1834, allocations: 1.019 MB / 347.3 MB, free: 1 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00342/0.1868, allocations: 1.397 MB / 348.7 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005723/0.1874, allocations: 156 kB / 348.9 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001097/0.1885, allocations: 215.9 kB / 349.1 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000989/0.1895, allocations: 0.7632 MB / 349.8 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001221/0.1907, allocations: 0.551 MB / 350.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004443/0.1952, allocations: 3.763 MB / 354.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.959e-06/0.1952, allocations: 0 / 354.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.809e-06/0.1953, allocations: 4 kB / 354.2 MB, free: 10.13 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000197/0.1955, allocations: 0 / 354.2 MB, free: 10.13 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: 592 * Number of variables: 592 Notification: Performance of Generate backend data structure: time 0.006689/0.2022, allocations: 2.769 MB / 356.9 MB, free: 7.301 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.148e-05/0.2022, allocations: 8.031 kB / 356.9 MB, free: 7.293 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007692/0.203, allocations: 333 kB / 357.3 MB, free: 6.957 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008523/0.2039, allocations: 320.4 kB / 357.6 MB, free: 6.641 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002976/0.2068, allocations: 1.565 MB / 359.1 MB, free: 5.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001909/0.2071, allocations: 176.5 kB / 359.3 MB, free: 4.844 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003789/0.2074, allocations: 227.9 kB / 359.5 MB, free: 4.621 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00579/0.2132, allocations: 3.173 MB / 362.7 MB, free: 1.348 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.383e-05/0.2133, allocations: 19.81 kB / 362.7 MB, free: 1.328 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002237/0.2136, allocations: 92 kB / 362.8 MB, free: 1.238 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001203/0.2137, allocations: 104.4 kB / 362.9 MB, free: 1.133 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004985/0.2187, allocations: 2.754 MB / 365.7 MB, free: 14.36 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01602/0.2347, allocations: 9.938 MB / 375.6 MB, free: 4.156 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00259/0.2374, allocations: 2.099 MB / 377.7 MB, free: 1.949 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001869/0.2393, allocations: 1.214 MB / 378.9 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002807/0.2396, allocations: 118.1 kB / 379 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.204e-05/0.2396, allocations: 51.5 kB / 379.1 MB, free: 0.543 MB / 318.1 MB Notification: Performance of pre-optimization done (n=126): time 3.346e-06/0.2396, allocations: 0 / 379.1 MB, free: 0.543 MB / 318.1 MB Notification: Performance of matching and sorting (n=142): time 0.25/0.4896, allocations: 8.047 MB / 387.1 MB, free: 48.73 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.419e-05/0.4897, allocations: 68.31 kB / 387.2 MB, free: 48.67 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004808/0.4945, allocations: 1.672 MB / 388.9 MB, free: 48.04 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001849/0.4948, allocations: 47.33 kB / 388.9 MB, free: 47.99 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001098/0.4959, allocations: 1.085 MB / 390 MB, free: 47.15 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006602/0.4965, allocations: 490.9 kB / 390.5 MB, free: 46.78 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001507/0.4967, allocations: 30.78 kB / 390.5 MB, free: 46.76 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001967/0.4969, allocations: 373.2 kB / 390.9 MB, free: 46.42 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001842/0.4988, allocations: 0.9135 MB / 391.8 MB, free: 46.11 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001814/0.5006, allocations: 1.271 MB / 393.1 MB, free: 45.37 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002031/0.5026, allocations: 1.064 MB / 394.1 MB, free: 44.93 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-05/0.5027, allocations: 2.344 kB / 394.1 MB, free: 44.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=198) (initialization): time 0.006368/0.5091, allocations: 3.054 MB / 397.2 MB, free: 43.62 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.345e-05/0.5091, allocations: 11.89 kB / 397.2 MB, free: 43.62 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.869e-05/0.5091, allocations: 11.81 kB / 397.2 MB, free: 43.62 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001917/0.5111, allocations: 0.8346 MB / 398 MB, free: 43.2 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0011/0.5122, allocations: 314.5 kB / 398.4 MB, free: 43.12 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009236/0.5214, allocations: 9.085 MB / 407.4 MB, free: 34.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001933/0.5234, allocations: 103.8 kB / 407.5 MB, free: 34.81 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003282/0.5238, allocations: 64.06 kB / 407.6 MB, free: 34.75 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (155): * Single equations (assignments): 150 * 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,(9,33.3%) 19,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001858/0.5256, allocations: 0.8134 MB / 408.4 MB, free: 33.93 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006815/0.5263, allocations: 181.8 kB / 408.6 MB, free: 33.75 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004803/0.5311, allocations: 2.85 MB / 411.4 MB, free: 30.87 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/0.5312, allocations: 12 kB / 411.5 MB, free: 30.86 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.329e-05/0.5312, allocations: 8 kB / 411.5 MB, free: 30.85 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.358e-05/0.5312, allocations: 7.969 kB / 411.5 MB, free: 30.84 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009784/0.541, allocations: 5.697 MB / 417.2 MB, free: 25.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-05/0.5411, allocations: 4 kB / 417.2 MB, free: 25.06 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008258/0.5419, allocations: 195.7 kB / 417.4 MB, free: 24.87 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001994/0.5439, allocations: 0.8932 MB / 418.3 MB, free: 23.97 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001219/0.5441, allocations: 35.98 kB / 418.3 MB, free: 23.93 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009841/0.5539, allocations: 10.57 MB / 428.9 MB, free: 12.85 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.212e-06/0.554, allocations: 3.938 kB / 428.9 MB, free: 12.85 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006353/0.5603, allocations: 4.17 MB / 433 MB, free: 8.617 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001289/0.5617, allocations: 462.7 kB / 433.5 MB, free: 8.145 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006034/0.5623, allocations: 35.98 kB / 433.5 MB, free: 8.109 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001293/0.5636, allocations: 91.91 kB / 433.6 MB, free: 8.02 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004452/0.564, allocations: 141 kB / 433.7 MB, free: 7.883 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000121/0.5642, allocations: 40.86 kB / 433.8 MB, free: 7.844 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002387/0.5666, allocations: 1.142 MB / 434.9 MB, free: 6.707 MB / 318.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.5666, allocations: 0 / 434.9 MB, free: 6.707 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.003042/0.5696, allocations: 0.5625 MB / 435.5 MB, free: 6.145 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (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) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 94 * 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,(9,33.3%) 19,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006536/0.5762, allocations: 4.781 MB / 440.3 MB, free: 1.305 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00547/0.5817, allocations: 3.01 MB / 443.3 MB, free: 14.22 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.005e-05/0.5817, allocations: 0 / 443.3 MB, free: 14.22 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003701/0.5854, allocations: 2.039 MB / 445.3 MB, free: 12.11 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003971/0.5894, allocations: 494.5 kB / 445.8 MB, free: 11.63 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03637/0.6258, allocations: 16.13 MB / 461.9 MB, free: 10.67 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002902/0.6288, allocations: 2.025 MB / 464 MB, free: 8.609 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001677/0.6305, allocations: 403.3 kB / 464.4 MB, free: 8.211 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001486/0.632, allocations: 0.8859 MB / 465.2 MB, free: 7.324 MB / 350.1 MB Notification: Performance of SimCode: time 2.855e-06/0.632, allocations: 0 / 465.2 MB, free: 7.324 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1076/0.7396, allocations: 48.8 MB / 0.502 GB, free: 6.441 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001963/0.7398, allocations: 234.1 kB / 0.5022 GB, free: 6.203 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.824/4.564, allocations: 0.6094 kB / 0.5022 GB, free: 6.203 MB / 398.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_YD.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD_res.mat does not exist to compare? outputFormat=mat