Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009393/0.0009392, allocations: 102 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009765/0.0009764, allocations: 193.1 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 227.4 MB / 246 MB, free: 10.06 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002259/0.0002259, allocations: 8 kB / 306.8 MB, free: 1.191 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1132, allocations: 51.5 MB / 358.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer): time 0.01165/0.1249, allocations: 11.45 MB / 369.8 MB, free: 2.211 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2371/0.362, allocations: 4.01 MB / 373.8 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002621/0.3647, allocations: 75.56 kB / 373.9 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003316/0.368, allocations: 0.7777 MB / 374.6 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005637/0.3737, allocations: 1.027 MB / 375.7 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002009/0.3757, allocations: 327.8 kB / 376 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009987/0.3857, allocations: 4.809 MB / 380.8 MB, free: 8.309 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005329/0.3911, allocations: 2.594 MB / 383.4 MB, free: 7.824 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004996/0.3961, allocations: 1.57 MB / 385 MB, free: 7.488 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00567/0.4018, allocations: 2.094 MB / 387 MB, free: 7.086 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001315/0.4032, allocations: 241.4 kB / 387.3 MB, free: 7.086 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002519/0.4057, allocations: 320.1 kB / 387.6 MB, free: 7.082 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001438/0.4072, allocations: 1.14 MB / 388.7 MB, free: 6.922 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002064/0.4092, allocations: 0.8371 MB / 389.6 MB, free: 6.758 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00682/0.4161, allocations: 6.002 MB / 395.6 MB, free: 2.934 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.4161, allocations: 0 / 395.6 MB, free: 2.934 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.4161, allocations: 0 / 395.6 MB, free: 2.934 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002619/0.4164, allocations: 4 kB / 395.6 MB, free: 2.93 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.01056/0.427, allocations: 4.018 MB / 399.6 MB, free: 380 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.53e-05/0.427, allocations: 8.812 kB / 399.6 MB, free: 380 kB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001808/0.4289, allocations: 0.4987 MB / 400.1 MB, free: 4 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002075/0.4309, allocations: 0.5322 MB / 400.6 MB, free: 15.75 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005499/0.4365, allocations: 2.419 MB / 403.1 MB, free: 13.97 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002928/0.4368, allocations: 265.6 kB / 403.3 MB, free: 13.71 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008739/0.4377, allocations: 354.6 kB / 403.7 MB, free: 13.37 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01046/0.4481, allocations: 5.019 MB / 408.7 MB, free: 8.297 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.914e-05/0.4483, allocations: 8 kB / 408.7 MB, free: 8.289 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003822/0.4487, allocations: 146.7 kB / 408.8 MB, free: 8.148 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001971/0.4489, allocations: 179 kB / 409 MB, free: 7.973 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009275/0.4581, allocations: 4.291 MB / 413.3 MB, free: 3.676 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02981/0.488, allocations: 14.97 MB / 428.3 MB, free: 4.508 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004769/0.4928, allocations: 4.191 MB / 432.5 MB, free: 16 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003194/0.496, allocations: 2.012 MB / 434.5 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000298/0.4964, allocations: 133.3 kB / 434.6 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.796e-05/0.4964, allocations: 52.56 kB / 434.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=198): time 3.908e-06/0.4964, allocations: 0 / 434.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=218): time 0.02164/0.5181, allocations: 10.03 MB / 444.7 MB, free: 3.668 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.003e-05/0.5182, allocations: 79.8 kB / 444.8 MB, free: 3.582 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004245/0.5224, allocations: 2.487 MB / 447.3 MB, free: 1.074 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004436/0.5229, allocations: 61.7 kB / 447.3 MB, free: 1.008 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001559/0.5245, allocations: 1.623 MB / 448.9 MB, free: 15.37 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009717/0.5255, allocations: 0.7314 MB / 449.7 MB, free: 14.64 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001404/0.5256, allocations: 47.94 kB / 449.7 MB, free: 14.6 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002543/0.5259, allocations: 402.5 kB / 450.1 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002376/0.5283, allocations: 1.305 MB / 451.4 MB, free: 12.89 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002617/0.5309, allocations: 1.777 MB / 453.2 MB, free: 10.92 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002414/0.5333, allocations: 1.56 MB / 454.7 MB, free: 9.363 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.315e-05/0.5334, allocations: 7.953 kB / 454.8 MB, free: 9.355 MB / 366.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.007552/0.5409, allocations: 4.072 MB / 458.8 MB, free: 5.258 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.247e-05/0.541, allocations: 16.09 kB / 458.8 MB, free: 5.242 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.97e-05/0.541, allocations: 12 kB / 458.9 MB, free: 5.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002772/0.5438, allocations: 0.8885 MB / 459.7 MB, free: 4.332 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00237/0.5462, allocations: 0.5344 MB / 460.3 MB, free: 3.797 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01073/0.5569, allocations: 8.735 MB / 469 MB, free: 10.67 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002835/0.5598, allocations: 123.8 kB / 469.1 MB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003612/0.5602, allocations: 88 kB / 469.2 MB, free: 10.46 MB / 382.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.003477/0.5637, allocations: 1.218 MB / 470.4 MB, free: 9.234 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001212/0.5649, allocations: 276.7 kB / 470.7 MB, free: 8.961 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007925/0.5729, allocations: 3.726 MB / 474.4 MB, free: 5.207 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.14e-05/0.5729, allocations: 20 kB / 474.5 MB, free: 5.188 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.336e-05/0.5729, allocations: 12 kB / 474.5 MB, free: 5.176 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.003e-05/0.573, allocations: 7.969 kB / 474.5 MB, free: 5.168 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01574/0.5887, allocations: 8.106 MB / 482.6 MB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.578e-06/0.5888, allocations: 4 kB / 482.6 MB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001619/0.5904, allocations: 387.6 kB / 483 MB, free: 12.61 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002944/0.5933, allocations: 0.9358 MB / 483.9 MB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001752/0.5935, allocations: 55.98 kB / 484 MB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01185/0.6054, allocations: 10.2 MB / 494.2 MB, free: 0.8711 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.772e-06/0.6054, allocations: 7.984 kB / 494.2 MB, free: 0.8633 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009259/0.6147, allocations: 5.526 MB / 499.7 MB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001912/0.6166, allocations: 0.642 MB / 0.4886 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004743/0.6171, allocations: 47.98 kB / 0.4886 GB, free: 10.56 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001357/0.6185, allocations: 127.9 kB / 0.4888 GB, free: 10.44 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004347/0.6189, allocations: 181.8 kB / 0.4889 GB, free: 10.26 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001545/0.6191, allocations: 63.94 kB / 0.489 GB, free: 10.2 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00302/0.6221, allocations: 1.711 MB / 0.4907 GB, free: 8.477 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6221, allocations: 2.406 kB / 0.4907 GB, free: 8.477 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002989/0.6251, allocations: 0.8047 MB / 0.4915 GB, free: 7.672 MB / 414.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 {(3,88.9%) 25,(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.009594/0.6347, allocations: 6.172 MB / 0.4975 GB, free: 1.438 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006476/0.6413, allocations: 3.899 MB / 0.5013 GB, free: 13.45 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.294e-06/0.6413, allocations: 4 kB / 0.5013 GB, free: 13.45 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003938/0.6452, allocations: 2.483 MB / 0.5037 GB, free: 10.9 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003947/0.6492, allocations: 0.756 MB / 0.5045 GB, free: 10.14 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05236/0.7016, allocations: 24.51 MB / 0.5284 GB, free: 216 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2318/0.9334, allocations: 2.768 MB / 0.5311 GB, free: 145.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002966/0.9365, allocations: 0.6824 MB / 0.5318 GB, free: 145.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002377/0.9389, allocations: 1.414 MB / 0.5332 GB, free: 145.6 MB / 446.1 MB Notification: Performance of SimCode: time 1.362e-06/0.9389, allocations: 1.375 kB / 0.5332 GB, free: 145.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1072/1.046, allocations: 70.63 MB / 0.6021 GB, free: 92.84 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001757/1.046, allocations: 263.2 kB / 0.6024 GB, free: 92.48 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.926/4.973, allocations: 0 / 0.6024 GB, free: 92.48 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.mat does not exist to compare? outputFormat=mat