Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_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.001448/0.001449, allocations: 97.84 kB / 16.31 MB, free: 5.582 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.00142/0.00142, allocations: 182.7 kB / 17.2 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.459/1.459, allocations: 223.2 MB / 241.1 MB, free: 14.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003266/0.0003268, allocations: 8 kB / 300.8 MB, free: 6.086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.121, allocations: 50.41 MB / 351.2 MB, free: 3.664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer): time 0.01298/0.134, allocations: 10.39 MB / 361.6 MB, free: 9.234 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009095/0.1431, allocations: 4.085 MB / 365.7 MB, free: 5.141 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002341/0.1455, allocations: 71.62 kB / 365.8 MB, free: 5.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002586/0.1481, allocations: 0.8046 MB / 366.6 MB, free: 4.262 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004076/0.1522, allocations: 0.9892 MB / 367.6 MB, free: 3.27 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001196/0.1535, allocations: 319.5 kB / 367.9 MB, free: 2.957 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006/0.1595, allocations: 2.943 MB / 370.8 MB, free: 4 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2551/0.4146, allocations: 2.589 MB / 373.4 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003062/0.4177, allocations: 1.439 MB / 374.9 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004344/0.422, allocations: 1.8 MB / 376.7 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001118/0.4232, allocations: 238.7 kB / 376.9 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001687/0.4249, allocations: 308.8 kB / 377.2 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001333/0.4262, allocations: 1.071 MB / 378.3 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001594/0.4278, allocations: 0.8417 MB / 379.1 MB, free: 9.312 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008307/0.4361, allocations: 5.952 MB / 385.1 MB, free: 7.633 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.4362, allocations: 0 / 385.1 MB, free: 7.633 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.4362, allocations: 0 / 385.1 MB, free: 7.633 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.00029/0.4365, allocations: 1.188 kB / 385.1 MB, free: 7.633 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.01441/0.4509, allocations: 3.98 MB / 389 MB, free: 5.359 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.494e-05/0.451, allocations: 13.5 kB / 389.1 MB, free: 5.355 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003785/0.4548, allocations: 0.4975 MB / 389.6 MB, free: 5.211 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002864/0.4577, allocations: 0.4905 MB / 390 MB, free: 4.973 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0075/0.4652, allocations: 2.428 MB / 392.5 MB, free: 4.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004311/0.4657, allocations: 265.7 kB / 392.7 MB, free: 4.008 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001901/0.4676, allocations: 352.3 kB / 393.1 MB, free: 4.004 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01349/0.4811, allocations: 4.989 MB / 398.1 MB, free: 2.766 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000109/0.4813, allocations: 11.41 kB / 398.1 MB, free: 2.758 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004034/0.4817, allocations: 146.7 kB / 398.2 MB, free: 2.758 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002155/0.4819, allocations: 183.2 kB / 398.4 MB, free: 2.734 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009084/0.491, allocations: 4.291 MB / 402.7 MB, free: 15.26 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03485/0.5259, allocations: 14.93 MB / 417.6 MB, free: 136 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005439/0.5314, allocations: 4.193 MB / 421.8 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003411/0.5317, allocations: 127.1 kB / 421.9 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.758e-05/0.5318, allocations: 60.52 kB / 422 MB, free: 11.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=198): time 4.078e-06/0.5318, allocations: 0 / 422 MB, free: 11.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=218): time 0.02404/0.5559, allocations: 10.34 MB / 432.3 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.123e-05/0.556, allocations: 77.41 kB / 432.4 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006121/0.5621, allocations: 2.439 MB / 434.9 MB, free: 14.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008491/0.563, allocations: 65.7 kB / 434.9 MB, free: 14.35 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0022/0.5652, allocations: 1.617 MB / 436.5 MB, free: 12.72 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001407/0.5667, allocations: 0.7291 MB / 437.3 MB, free: 12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003879/0.5671, allocations: 44 kB / 437.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002763/0.5674, allocations: 398.6 kB / 437.7 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002664/0.57, allocations: 1.324 MB / 439 MB, free: 10.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003135/0.5732, allocations: 1.788 MB / 440.8 MB, free: 8.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003006/0.5762, allocations: 1.567 MB / 442.4 MB, free: 6.684 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.38e-05/0.5762, allocations: 4 kB / 442.4 MB, free: 6.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.008376/0.5846, allocations: 4.102 MB / 446.5 MB, free: 2.551 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.344e-05/0.5847, allocations: 12 kB / 446.5 MB, free: 2.539 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.531e-05/0.5847, allocations: 12 kB / 446.5 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003124/0.5879, allocations: 0.8835 MB / 447.4 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002656/0.5906, allocations: 0.5265 MB / 447.9 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01129/0.6019, allocations: 8.941 MB / 456.9 MB, free: 7.777 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003165/0.6051, allocations: 131.8 kB / 457 MB, free: 7.648 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006012/0.6057, allocations: 87.98 kB / 457.1 MB, free: 7.562 MB / 366.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.003701/0.6094, allocations: 1.208 MB / 458.3 MB, free: 6.344 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001108/0.6105, allocations: 284.7 kB / 458.6 MB, free: 6.062 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00785/0.6184, allocations: 3.758 MB / 462.3 MB, free: 2.277 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.293e-05/0.6185, allocations: 23.94 kB / 462.3 MB, free: 2.254 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.035e-05/0.6185, allocations: 8 kB / 462.3 MB, free: 2.246 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.819e-05/0.6185, allocations: 11.95 kB / 462.4 MB, free: 2.234 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01941/0.638, allocations: 8.08 MB / 470.4 MB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.215e-05/0.638, allocations: 0 / 470.4 MB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001828/0.6399, allocations: 391.8 kB / 470.8 MB, free: 9.703 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003395/0.6433, allocations: 0.9161 MB / 471.7 MB, free: 8.777 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003583/0.6437, allocations: 55.97 kB / 471.8 MB, free: 8.723 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01229/0.656, allocations: 10.43 MB / 482.2 MB, free: 13.76 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.985e-06/0.656, allocations: 7.938 kB / 482.2 MB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01094/0.667, allocations: 5.793 MB / 488 MB, free: 7.82 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002611/0.6696, allocations: 0.6304 MB / 488.7 MB, free: 7.168 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001529/0.6712, allocations: 59.98 kB / 488.7 MB, free: 7.109 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002764/0.674, allocations: 127.9 kB / 488.8 MB, free: 6.984 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007395/0.6747, allocations: 177.7 kB / 489 MB, free: 6.812 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003573/0.6751, allocations: 63.98 kB / 489.1 MB, free: 6.75 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.005102/0.6802, allocations: 1.68 MB / 490.8 MB, free: 5.059 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.6803, allocations: 0 / 490.8 MB, free: 5.059 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0064/0.6867, allocations: 0.8047 MB / 491.6 MB, free: 4.254 MB / 398.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%) 26,(2,100.0%) 12,(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.01291/0.6996, allocations: 7.103 MB / 498.7 MB, free: 13.04 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007543/0.7072, allocations: 3.926 MB / 0.4908 GB, free: 9.035 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.767e-06/0.7072, allocations: 0 / 0.4908 GB, free: 9.035 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004613/0.7119, allocations: 2.499 MB / 0.4932 GB, free: 6.465 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00545/0.7174, allocations: 0.7257 MB / 0.494 GB, free: 5.746 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08218/0.7996, allocations: 32.9 MB / 0.5261 GB, free: 3.352 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007136/0.8068, allocations: 2.851 MB / 0.5289 GB, free: 484 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.2589/1.066, allocations: 0.683 MB / 0.5295 GB, free: 150.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003792/1.07, allocations: 1.404 MB / 0.5309 GB, free: 150.6 MB / 446.1 MB Notification: Performance of SimCode: time 1.834e-06/1.07, allocations: 0 / 0.5309 GB, free: 150.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1252/1.195, allocations: 70.02 MB / 0.5993 GB, free: 99.5 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002112/1.195, allocations: 273.8 kB / 0.5996 GB, free: 99.14 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.825/5.02, allocations: 0 / 0.5996 GB, free: 99.14 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer_res.mat does not exist to compare? outputFormat=mat