Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.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.Transformers.AIMC_Transformer,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_Transformers_AIMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_Transformers_AIMC_Transformer",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.00093/0.0009301, allocations: 97.47 kB / 16.94 MB, free: 6.445 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.000927/0.0009267, allocations: 183.5 kB / 17.83 MB, free: 6.012 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.434/1.434, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004212/0.0004212, allocations: 15.44 kB / 280.9 MB, free: 3.637 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09369/0.09412, allocations: 47.56 MB / 328.4 MB, free: 4.004 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer): time 0.01102/0.1052, allocations: 10.38 MB / 338.8 MB, free: 9.586 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00737/0.1126, allocations: 4.141 MB / 342.9 MB, free: 5.434 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001598/0.1142, allocations: 59.69 kB / 343 MB, free: 5.375 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002196/0.1164, allocations: 0.8046 MB / 343.8 MB, free: 4.566 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002998/0.1195, allocations: 0.9814 MB / 344.8 MB, free: 3.582 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008418/0.1203, allocations: 323.6 kB / 345.1 MB, free: 3.266 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003866/0.1242, allocations: 2.978 MB / 348.1 MB, free: 284 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002894/0.1271, allocations: 2.522 MB / 350.6 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002193/0.1293, allocations: 1.44 MB / 352 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00278/0.1321, allocations: 1.813 MB / 353.9 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005526/0.1327, allocations: 244 kB / 354.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008484/0.1335, allocations: 311.9 kB / 354.4 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001003/0.1345, allocations: 1.083 MB / 355.5 MB, free: 8.812 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001005/0.1355, allocations: 0.8355 MB / 356.3 MB, free: 7.969 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0058/0.1413, allocations: 5.945 MB / 362.3 MB, free: 2.008 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.247e-06/0.1414, allocations: 0 / 362.3 MB, free: 2.008 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1414, allocations: 0 / 362.3 MB, free: 2.008 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001455/0.1415, allocations: 0 / 362.3 MB, free: 2.008 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: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.008154/0.1497, allocations: 3.986 MB / 366.2 MB, free: 13.96 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.1497, allocations: 8.031 kB / 366.3 MB, free: 13.95 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008889/0.1506, allocations: 0.4979 MB / 366.7 MB, free: 13.44 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001218/0.1519, allocations: 0.4908 MB / 367.2 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004226/0.1561, allocations: 2.311 MB / 369.5 MB, free: 10.59 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001928/0.1563, allocations: 267 kB / 369.8 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000483/0.1568, allocations: 359.9 kB / 370.2 MB, free: 9.973 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007856/0.1647, allocations: 4.978 MB / 375.1 MB, free: 4.93 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.877e-05/0.1648, allocations: 4 kB / 375.1 MB, free: 4.926 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003166/0.1651, allocations: 148 kB / 375.3 MB, free: 4.781 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001656/0.1653, allocations: 175.1 kB / 375.5 MB, free: 4.609 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007357/0.1726, allocations: 4.294 MB / 379.8 MB, free: 316 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1894/0.3621, allocations: 14.94 MB / 394.7 MB, free: 39.89 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003685/0.3658, allocations: 4.207 MB / 398.9 MB, free: 36.65 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002481/0.3661, allocations: 134.8 kB / 399 MB, free: 36.54 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.482e-05/0.3661, allocations: 56.91 kB / 399.1 MB, free: 36.49 MB / 318.1 MB Notification: Performance of pre-optimization done (n=198): time 4.768e-06/0.3662, allocations: 1.656 kB / 399.1 MB, free: 36.49 MB / 318.1 MB Notification: Performance of matching and sorting (n=218): time 0.01721/0.3834, allocations: 10.32 MB / 409.4 MB, free: 30.54 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.593e-05/0.3834, allocations: 81.39 kB / 409.5 MB, free: 30.45 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002875/0.3863, allocations: 2.44 MB / 411.9 MB, free: 27.99 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002179/0.3866, allocations: 69.7 kB / 412 MB, free: 27.92 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007843/0.3874, allocations: 1.611 MB / 413.6 MB, free: 26.29 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004692/0.3878, allocations: 0.7324 MB / 414.3 MB, free: 25.57 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001092/0.388, allocations: 48 kB / 414.4 MB, free: 25.52 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.3881, allocations: 398.6 kB / 414.8 MB, free: 25.12 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001636/0.3897, allocations: 1.32 MB / 416.1 MB, free: 23.8 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001758/0.3915, allocations: 1.79 MB / 417.9 MB, free: 21.82 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001763/0.3933, allocations: 1.571 MB / 419.5 MB, free: 20.25 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.694e-06/0.3933, allocations: 4 kB / 419.5 MB, free: 20.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.005563/0.3988, allocations: 4.106 MB / 423.6 MB, free: 16.12 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.638e-05/0.3989, allocations: 15.95 kB / 423.6 MB, free: 16.1 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.28e-05/0.3989, allocations: 15.94 kB / 423.6 MB, free: 16.09 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002463/0.4014, allocations: 0.8755 MB / 424.5 MB, free: 15.2 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001864/0.4033, allocations: 0.5266 MB / 425 MB, free: 14.67 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007593/0.4109, allocations: 8.945 MB / 433.9 MB, free: 5.336 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002151/0.4131, allocations: 123.9 kB / 434.1 MB, free: 5.215 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002326/0.4133, allocations: 88 kB / 434.2 MB, free: 5.129 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (252): * Single equations (assignments): 247 * 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 {(3,100.0%) 25,(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002077/0.4154, allocations: 1.213 MB / 435.4 MB, free: 3.906 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006393/0.4161, allocations: 277.5 kB / 435.6 MB, free: 3.633 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00534/0.4214, allocations: 3.768 MB / 439.4 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.047e-05/0.4215, allocations: 20 kB / 439.4 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.375e-05/0.4215, allocations: 8 kB / 439.4 MB, free: 15.81 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.892e-05/0.4215, allocations: 7.969 kB / 439.4 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01473/0.4362, allocations: 8.096 MB / 447.5 MB, free: 7.637 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.265e-05/0.4363, allocations: 4 kB / 447.5 MB, free: 7.633 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001595/0.4379, allocations: 383.6 kB / 447.9 MB, free: 7.258 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003059/0.441, allocations: 0.9285 MB / 448.8 MB, free: 6.316 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001992/0.4412, allocations: 59.92 kB / 448.9 MB, free: 6.258 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01144/0.4527, allocations: 10.43 MB / 459.3 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.4527, allocations: 0 / 459.3 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008992/0.4617, allocations: 5.788 MB / 465.1 MB, free: 5.383 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001998/0.4637, allocations: 0.6343 MB / 465.8 MB, free: 4.727 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004258/0.4642, allocations: 51.98 kB / 465.8 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001267/0.4655, allocations: 131.8 kB / 465.9 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004323/0.4659, allocations: 177.8 kB / 466.1 MB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001359/0.466, allocations: 63.98 kB / 466.2 MB, free: 4.312 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002645/0.4687, allocations: 1.68 MB / 467.8 MB, free: 2.621 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4687, allocations: 0 / 467.8 MB, free: 2.621 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002473/0.4712, allocations: 0.7957 MB / 468.6 MB, free: 1.828 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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],transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (175): * Single equations (assignments): 170 * 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,(3,88.9%) 25,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009412/0.4806, allocations: 7.141 MB / 475.8 MB, free: 10.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006531/0.4872, allocations: 3.928 MB / 479.7 MB, free: 6.574 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.965e-06/0.4872, allocations: 0 / 479.7 MB, free: 6.574 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004307/0.4915, allocations: 2.496 MB / 482.2 MB, free: 4.004 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003649/0.4952, allocations: 0.721 MB / 482.9 MB, free: 3.281 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05407/0.5493, allocations: 32.93 MB / 0.5038 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00283/0.5522, allocations: 2.843 MB / 0.5065 GB, free: 13.99 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002527/0.5547, allocations: 0.6827 MB / 0.5072 GB, free: 13.3 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002059/0.5568, allocations: 1.397 MB / 0.5086 GB, free: 11.9 MB / 414.1 MB Notification: Performance of SimCode: time 1.724e-06/0.5568, allocations: 0 / 0.5086 GB, free: 11.9 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3325/0.8893, allocations: 70.07 MB / 0.577 GB, free: 116.7 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0005739/0.8899, allocations: 261.4 kB / 0.5773 GB, free: 116.3 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.503/4.393, allocations: 0 / 0.5773 GB, free: 116.3 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_Transformers_AIMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_Transformers_AIMC_Transformer.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer_res.mat does not exist to compare? outputFormat=mat