Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.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.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0009105/0.0009101, allocations: 96.98 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.001/0.001, 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.457/1.457, allocations: 227.4 MB / 246 MB, free: 10.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002515/0.0002516, allocations: 8 kB / 306.8 MB, free: 1.234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1126, allocations: 51.5 MB / 358.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer): time 0.01483/0.1275, allocations: 11.43 MB / 369.8 MB, free: 2.262 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2191/0.3466, allocations: 4.005 MB / 373.8 MB, free: 9.211 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002124/0.3488, allocations: 70.72 kB / 373.8 MB, free: 9.211 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002675/0.3515, allocations: 0.7776 MB / 374.6 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004219/0.3557, allocations: 1.031 MB / 375.6 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001493/0.3572, allocations: 323 kB / 375.9 MB, free: 9.008 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007886/0.3651, allocations: 4.81 MB / 380.8 MB, free: 7.914 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004182/0.3693, allocations: 2.598 MB / 383.4 MB, free: 7.422 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004544/0.3739, allocations: 1.573 MB / 384.9 MB, free: 7.082 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004464/0.3784, allocations: 2.097 MB / 387 MB, free: 6.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006884/0.3791, allocations: 241.7 kB / 387.3 MB, free: 6.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001548/0.3806, allocations: 316.5 kB / 387.6 MB, free: 6.676 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00138/0.382, allocations: 1.139 MB / 388.7 MB, free: 6.516 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001467/0.3835, allocations: 0.8396 MB / 389.6 MB, free: 6.352 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005787/0.3893, allocations: 6 MB / 395.6 MB, free: 2.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.264e-06/0.3893, allocations: 0 / 395.6 MB, free: 2.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.206e-06/0.3893, allocations: 0 / 395.6 MB, free: 2.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002511/0.3896, allocations: 4.875 kB / 395.6 MB, free: 2.836 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.01026/0.3999, allocations: 4.023 MB / 399.6 MB, free: 300 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.108e-05/0.3999, allocations: 7.938 kB / 399.6 MB, free: 300 kB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001429/0.4014, allocations: 0.5124 MB / 400.1 MB, free: 0 / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001741/0.4031, allocations: 0.5372 MB / 400.6 MB, free: 15.74 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004321/0.4074, allocations: 2.419 MB / 403.1 MB, free: 13.97 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001933/0.4076, allocations: 265.1 kB / 403.3 MB, free: 13.71 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004879/0.4081, allocations: 351 kB / 403.7 MB, free: 13.38 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008431/0.4166, allocations: 5.017 MB / 408.7 MB, free: 8.305 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.969e-05/0.4167, allocations: 4 kB / 408.7 MB, free: 8.301 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003405/0.417, allocations: 146.3 kB / 408.8 MB, free: 8.16 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001691/0.4172, allocations: 183 kB / 409 MB, free: 7.98 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007339/0.4246, allocations: 4.294 MB / 413.3 MB, free: 3.68 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02491/0.4495, allocations: 14.97 MB / 428.3 MB, free: 4.512 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004339/0.4539, allocations: 4.196 MB / 432.5 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002924/0.4568, allocations: 2.01 MB / 434.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002834/0.4571, allocations: 131.1 kB / 434.6 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.013e-05/0.4572, allocations: 52.56 kB / 434.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=198): time 3.948e-06/0.4572, allocations: 0 / 434.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=218): time 0.01916/0.4764, allocations: 10.04 MB / 444.7 MB, free: 3.668 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.883e-05/0.4765, allocations: 73.41 kB / 444.8 MB, free: 3.586 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003777/0.4803, allocations: 2.49 MB / 447.3 MB, free: 1.074 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001879/0.4805, allocations: 61.7 kB / 447.3 MB, free: 1.008 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001204/0.4817, allocations: 1.619 MB / 448.9 MB, free: 15.37 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006308/0.4823, allocations: 0.7384 MB / 449.7 MB, free: 14.64 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001315/0.4825, allocations: 44 kB / 449.7 MB, free: 14.6 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001864/0.4826, allocations: 397.2 kB / 450.1 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001967/0.4846, allocations: 1.308 MB / 451.4 MB, free: 12.89 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002223/0.4869, allocations: 1.778 MB / 453.2 MB, free: 10.92 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002261/0.4891, allocations: 1.56 MB / 454.7 MB, free: 9.363 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.769e-06/0.4892, allocations: 7.781 kB / 454.8 MB, free: 9.359 MB / 366.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.006667/0.4958, allocations: 4.072 MB / 458.8 MB, free: 5.262 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.675e-05/0.4959, allocations: 16.09 kB / 458.8 MB, free: 5.246 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.242e-05/0.4959, allocations: 12 kB / 458.9 MB, free: 5.234 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002769/0.4987, allocations: 0.8837 MB / 459.7 MB, free: 4.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002315/0.501, allocations: 0.5304 MB / 460.3 MB, free: 3.809 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009934/0.511, allocations: 8.744 MB / 469 MB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002633/0.5136, allocations: 123.8 kB / 469.1 MB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002484/0.5139, allocations: 88 kB / 469.2 MB, free: 10.47 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.002599/0.5165, allocations: 1.212 MB / 470.4 MB, free: 9.246 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00066/0.5172, allocations: 276.7 kB / 470.7 MB, free: 8.973 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006208/0.5234, allocations: 3.727 MB / 474.4 MB, free: 5.219 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.968e-05/0.5234, allocations: 23.98 kB / 474.4 MB, free: 5.195 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.242e-05/0.5235, allocations: 15.94 kB / 474.5 MB, free: 5.18 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.792e-05/0.5235, allocations: 7.969 kB / 474.5 MB, free: 5.172 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01346/0.537, allocations: 8.102 MB / 482.6 MB, free: 13 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.056e-05/0.537, allocations: 4 kB / 482.6 MB, free: 13 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001589/0.5386, allocations: 383.6 kB / 483 MB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002891/0.5415, allocations: 0.9373 MB / 483.9 MB, free: 11.67 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001788/0.5417, allocations: 51.98 kB / 483.9 MB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01038/0.5521, allocations: 10.2 MB / 494.1 MB, free: 0.8828 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.222e-06/0.5521, allocations: 7.938 kB / 494.2 MB, free: 0.875 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009511/0.5616, allocations: 5.527 MB / 499.7 MB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002151/0.5638, allocations: 0.6381 MB / 0.4886 GB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004861/0.5643, allocations: 48 kB / 0.4886 GB, free: 10.58 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001366/0.5657, allocations: 123.9 kB / 0.4888 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004519/0.5662, allocations: 185.7 kB / 0.4889 GB, free: 10.28 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001374/0.5663, allocations: 59.98 kB / 0.489 GB, free: 10.22 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003117/0.5694, allocations: 1.711 MB / 0.4907 GB, free: 8.496 MB / 414.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.5695, allocations: 4 kB / 0.4907 GB, free: 8.492 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003802/0.5733, allocations: 0.797 MB / 0.4914 GB, free: 7.695 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.008746/0.582, allocations: 6.178 MB / 0.4975 GB, free: 1.453 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006407/0.5885, allocations: 3.9 MB / 0.5013 GB, free: 13.47 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.257e-06/0.5885, allocations: 6.406 kB / 0.5013 GB, free: 13.46 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003792/0.5923, allocations: 2.483 MB / 0.5037 GB, free: 10.91 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00415/0.5965, allocations: 0.7644 MB / 0.5045 GB, free: 10.15 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0545/0.651, allocations: 24.51 MB / 0.5284 GB, free: 224 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2483/0.8993, allocations: 2.77 MB / 0.5311 GB, free: 145.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003787/0.9032, allocations: 0.6842 MB / 0.5318 GB, free: 145.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00273/0.9059, allocations: 1.411 MB / 0.5331 GB, free: 145.2 MB / 446.1 MB Notification: Performance of SimCode: time 1.042e-06/0.9059, allocations: 3.828 kB / 0.5332 GB, free: 145.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.127/1.033, allocations: 70.63 MB / 0.6021 GB, free: 92.51 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001609/1.033, allocations: 272.8 kB / 0.6024 GB, free: 92.15 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.76/4.793, allocations: 0 / 0.6024 GB, free: 92.15 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer_res.mat does not exist to compare? outputFormat=mat