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.0009063/0.0009066, allocations: 98.81 kB / 16.95 MB, free: 6.449 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.0009895/0.0009896, allocations: 183.6 kB / 17.84 MB, free: 6.004 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.64/1.64, allocations: 205.4 MB / 224 MB, free: 13.16 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.0004605/0.0004605, allocations: 8 kB / 280.9 MB, free: 3.617 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1094, allocations: 47.58 MB / 328.5 MB, free: 3.965 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer): time 0.01362/0.1231, allocations: 11.37 MB / 339.8 MB, free: 8.551 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009378/0.1325, allocations: 4.01 MB / 343.8 MB, free: 4.527 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001873/0.1344, allocations: 63.69 kB / 343.9 MB, free: 4.465 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002015/0.1365, allocations: 0.7728 MB / 344.7 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003013/0.1395, allocations: 1.026 MB / 345.7 MB, free: 2.656 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001051/0.1405, allocations: 327.5 kB / 346 MB, free: 2.336 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005851/0.1464, allocations: 4.848 MB / 350.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003324/0.1497, allocations: 2.518 MB / 353.4 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002997/0.1528, allocations: 1.564 MB / 354.9 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003403/0.1562, allocations: 2.101 MB / 357 MB, free: 7.219 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004624/0.1567, allocations: 244 kB / 357.3 MB, free: 6.98 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009597/0.1576, allocations: 319.9 kB / 357.6 MB, free: 6.668 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001132/0.1588, allocations: 1.141 MB / 358.7 MB, free: 5.523 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001142/0.1599, allocations: 0.8394 MB / 359.6 MB, free: 4.676 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006331/0.1663, allocations: 6.003 MB / 365.6 MB, free: 14.65 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.1663, allocations: 0 / 365.6 MB, free: 14.65 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.935e-06/0.1663, allocations: 0 / 365.6 MB, free: 14.65 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001855/0.1665, allocations: 4 kB / 365.6 MB, free: 14.65 MB / 318.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.009024/0.1755, allocations: 3.986 MB / 369.6 MB, free: 10.6 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.901e-05/0.1756, allocations: 12.03 kB / 369.6 MB, free: 10.59 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001404/0.177, allocations: 0.494 MB / 370.1 MB, free: 10.09 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001476/0.1785, allocations: 0.4947 MB / 370.6 MB, free: 9.586 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004215/0.1827, allocations: 2.31 MB / 372.9 MB, free: 7.227 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002153/0.183, allocations: 263 kB / 373.1 MB, free: 6.969 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004844/0.1835, allocations: 351.9 kB / 373.5 MB, free: 6.625 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008631/0.1921, allocations: 5.009 MB / 378.5 MB, free: 1.551 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.443e-05/0.1922, allocations: 7.938 kB / 378.5 MB, free: 1.543 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000398/0.1926, allocations: 143.9 kB / 378.6 MB, free: 1.402 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001893/0.1928, allocations: 179.1 kB / 378.8 MB, free: 1.227 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2681/0.4609, allocations: 4.284 MB / 383.1 MB, free: 32.52 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03417/0.4952, allocations: 14.99 MB / 398.1 MB, free: 29.37 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004836/0.5001, allocations: 4.204 MB / 402.3 MB, free: 26.72 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002935/0.5031, allocations: 2.006 MB / 404.3 MB, free: 25.76 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003509/0.5034, allocations: 134 kB / 404.4 MB, free: 25.65 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.3e-05/0.5035, allocations: 58.03 kB / 404.5 MB, free: 25.59 MB / 318.1 MB Notification: Performance of pre-optimization done (n=198): time 4.919e-06/0.5035, allocations: 0 / 404.5 MB, free: 25.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=218): time 0.0192/0.5227, allocations: 10.1 MB / 414.6 MB, free: 17.63 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.781e-05/0.5229, allocations: 77.66 kB / 414.7 MB, free: 17.55 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003899/0.5268, allocations: 2.49 MB / 417.2 MB, free: 15.04 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002602/0.527, allocations: 61.7 kB / 417.2 MB, free: 14.97 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009954/0.528, allocations: 1.622 MB / 418.8 MB, free: 13.33 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005382/0.5286, allocations: 0.7278 MB / 419.6 MB, free: 12.61 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001177/0.5287, allocations: 48 kB / 419.6 MB, free: 12.57 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.5289, allocations: 394.6 kB / 420 MB, free: 12.18 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001708/0.5306, allocations: 1.308 MB / 421.3 MB, free: 10.86 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001928/0.5325, allocations: 1.783 MB / 423.1 MB, free: 8.891 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001902/0.5344, allocations: 1.564 MB / 424.7 MB, free: 7.348 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.11e-05/0.5344, allocations: 4 kB / 424.7 MB, free: 7.344 MB / 318.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.006047/0.5405, allocations: 4.076 MB / 428.7 MB, free: 3.34 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.244e-05/0.5406, allocations: 12 kB / 428.7 MB, free: 3.328 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.353e-05/0.5406, allocations: 12 kB / 428.8 MB, free: 3.316 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002482/0.5431, allocations: 0.8788 MB / 429.6 MB, free: 2.426 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001933/0.545, allocations: 0.5271 MB / 430.2 MB, free: 1.926 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01009/0.5551, allocations: 8.731 MB / 438.9 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002527/0.5577, allocations: 130.2 kB / 439 MB, free: 8.707 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002287/0.558, allocations: 83.98 kB / 439.1 MB, free: 8.625 MB / 334.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.002667/0.5606, allocations: 1.225 MB / 440.3 MB, free: 7.418 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008813/0.5615, allocations: 268.7 kB / 440.6 MB, free: 7.152 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006723/0.5683, allocations: 3.744 MB / 444.3 MB, free: 3.402 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.541e-05/0.5683, allocations: 20 kB / 444.4 MB, free: 3.383 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-05/0.5683, allocations: 8 kB / 444.4 MB, free: 3.375 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.392e-05/0.5684, allocations: 11.95 kB / 444.4 MB, free: 3.363 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01718/0.5856, allocations: 8.1 MB / 452.5 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.357e-05/0.5856, allocations: 0 / 452.5 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001662/0.5873, allocations: 393.7 kB / 452.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00326/0.5906, allocations: 0.9236 MB / 453.8 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002492/0.5908, allocations: 59.97 kB / 453.8 MB, free: 9.895 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01173/0.6026, allocations: 10.18 MB / 464 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.131e-06/0.6026, allocations: 3.656 kB / 464 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009568/0.6122, allocations: 5.527 MB / 469.6 MB, free: 9.652 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001784/0.614, allocations: 0.6343 MB / 470.2 MB, free: 8.996 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004067/0.6145, allocations: 51.98 kB / 470.2 MB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001262/0.6157, allocations: 141.5 kB / 470.4 MB, free: 8.812 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004577/0.6162, allocations: 173.7 kB / 470.5 MB, free: 8.645 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001418/0.6164, allocations: 63.98 kB / 470.6 MB, free: 8.582 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002995/0.6194, allocations: 1.711 MB / 472.3 MB, free: 6.859 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6194, allocations: 3.375 kB / 472.3 MB, free: 6.859 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00332/0.6227, allocations: 0.8027 MB / 473.1 MB, free: 6.059 MB / 366.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.009755/0.6325, allocations: 6.175 MB / 479.3 MB, free: 15.86 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006716/0.6392, allocations: 3.898 MB / 483.2 MB, free: 11.93 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.214e-05/0.6393, allocations: 6.297 kB / 483.2 MB, free: 11.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004045/0.6433, allocations: 2.482 MB / 485.7 MB, free: 9.418 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004599/0.648, allocations: 0.758 MB / 486.4 MB, free: 8.66 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05541/0.7034, allocations: 24.49 MB / 0.499 GB, free: 14.85 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004498/0.708, allocations: 2.776 MB / 0.5017 GB, free: 12.05 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002826/0.7108, allocations: 0.6812 MB / 0.5023 GB, free: 11.37 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002208/0.7131, allocations: 1.405 MB / 0.5037 GB, free: 9.961 MB / 414.1 MB Notification: Performance of SimCode: time 1.733e-06/0.7131, allocations: 0 / 0.5037 GB, free: 9.961 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3184/1.031, allocations: 70.5 MB / 0.5726 GB, free: 115.2 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001753/1.032, allocations: 266.3 kB / 0.5728 GB, free: 114.8 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.264/5.296, allocations: 0 / 0.5728 GB, free: 114.8 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