Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.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_Steinmetz,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00108/0.00108, allocations: 95.41 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001348/0.001348, allocations: 205.8 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.424, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002469/0.000247, allocations: 8 kB / 306.7 MB, free: 1.266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1163, allocations: 51.49 MB / 358.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz): time 0.01028/0.1267, allocations: 7.891 MB / 366.1 MB, free: 5.852 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006352/0.1331, allocations: 2.979 MB / 369.1 MB, free: 2.867 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001374/0.1345, allocations: 39.81 kB / 369.1 MB, free: 2.828 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001476/0.136, allocations: 0.5169 MB / 369.6 MB, free: 2.309 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00224/0.1382, allocations: 0.6581 MB / 370.3 MB, free: 1.648 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008588/0.1391, allocations: 251.6 kB / 370.5 MB, free: 1.402 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2062/0.3453, allocations: 1.58 MB / 372.1 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002507/0.3479, allocations: 1.223 MB / 373.3 MB, free: 9.531 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001753/0.3497, allocations: 0.7677 MB / 374.1 MB, free: 9.531 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001926/0.3516, allocations: 0.9492 MB / 375.1 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004406/0.3521, allocations: 121.1 kB / 375.2 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008142/0.3529, allocations: 196.9 kB / 375.4 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007572/0.3537, allocations: 0.5553 MB / 375.9 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006315/0.3543, allocations: 463.2 kB / 376.4 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003779/0.3581, allocations: 2.879 MB / 379.3 MB, free: 9.312 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.3581, allocations: 0 / 379.3 MB, free: 9.312 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.915e-06/0.3581, allocations: 1.312 kB / 379.3 MB, free: 9.312 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001205/0.3582, allocations: 0 / 379.3 MB, free: 9.312 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: 491 * Number of variables: 491 Notification: Performance of Generate backend data structure: time 0.006167/0.3644, allocations: 2.199 MB / 381.5 MB, free: 8.238 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.3645, allocations: 8.719 kB / 381.5 MB, free: 8.238 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006288/0.3651, allocations: 283.1 kB / 381.7 MB, free: 8.191 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000925/0.366, allocations: 282.2 kB / 382 MB, free: 8.066 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002546/0.3686, allocations: 1.284 MB / 383.3 MB, free: 7.688 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001406/0.3687, allocations: 139.5 kB / 383.4 MB, free: 7.684 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003311/0.3691, allocations: 193.4 kB / 383.6 MB, free: 7.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004337/0.3734, allocations: 2.398 MB / 386 MB, free: 7.324 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.481e-05/0.3735, allocations: 10.61 kB / 386 MB, free: 7.316 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001719/0.3737, allocations: 77.23 kB / 386.1 MB, free: 7.316 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001002/0.3738, allocations: 88 kB / 386.2 MB, free: 7.309 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003419/0.3772, allocations: 1.95 MB / 388.1 MB, free: 7 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01203/0.3893, allocations: 7.858 MB / 396 MB, free: 2.055 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001498/0.3908, allocations: 1.223 MB / 397.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002122/0.391, allocations: 126.2 kB / 397.3 MB, free: 1.191 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.371e-05/0.3911, allocations: 46.56 kB / 397.4 MB, free: 1.141 MB / 302.1 MB Notification: Performance of pre-optimization done (n=95): time 2.755e-06/0.3911, allocations: 0 / 397.4 MB, free: 1.141 MB / 302.1 MB Notification: Performance of matching and sorting (n=111): time 0.01205/0.4031, allocations: 5.901 MB / 403.3 MB, free: 13.04 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.244e-05/0.4032, allocations: 68.39 kB / 403.4 MB, free: 12.96 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001848/0.4051, allocations: 1.255 MB / 404.6 MB, free: 11.7 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001956/0.4053, allocations: 41.7 kB / 404.7 MB, free: 11.65 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006145/0.4059, allocations: 0.922 MB / 405.6 MB, free: 10.72 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003831/0.4063, allocations: 382 kB / 406 MB, free: 10.35 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.631e-05/0.4064, allocations: 28 kB / 406 MB, free: 10.32 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.4065, allocations: 357.9 kB / 406.3 MB, free: 9.969 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001005/0.4075, allocations: 0.6364 MB / 407 MB, free: 9.332 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001149/0.4087, allocations: 0.9925 MB / 408 MB, free: 8.184 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001115/0.4098, allocations: 0.7838 MB / 408.7 MB, free: 7.398 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.035e-06/0.4098, allocations: 4 kB / 408.7 MB, free: 7.395 MB / 318.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.003637/0.4135, allocations: 2.233 MB / 411 MB, free: 5.137 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.777e-05/0.4135, allocations: 8 kB / 411 MB, free: 5.129 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.926e-05/0.4135, allocations: 12 kB / 411 MB, free: 5.117 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001195/0.4147, allocations: 488.2 kB / 411.5 MB, free: 4.625 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001135/0.4159, allocations: 299.6 kB / 411.8 MB, free: 4.332 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006642/0.4226, allocations: 6.607 MB / 418.4 MB, free: 13.33 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001502/0.4241, allocations: 99.83 kB / 418.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001124/0.4242, allocations: 51.98 kB / 418.5 MB, free: 13.18 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 2 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 142 * 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 {(2,100.0%) 12,(2,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001231/0.4254, allocations: 0.5989 MB / 419.1 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000283/0.4257, allocations: 142.4 kB / 419.3 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003295/0.429, allocations: 1.968 MB / 421.2 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/0.4291, allocations: 15.94 kB / 421.2 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.4291, allocations: 4 kB / 421.3 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.316e-05/0.4291, allocations: 3.984 kB / 421.3 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006716/0.4358, allocations: 4.061 MB / 425.3 MB, free: 6.277 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-06/0.4358, allocations: 288 / 425.3 MB, free: 6.277 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007725/0.4366, allocations: 183.8 kB / 425.5 MB, free: 6.098 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001371/0.438, allocations: 0.5309 MB / 426 MB, free: 5.551 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.414e-05/0.4381, allocations: 27.98 kB / 426.1 MB, free: 5.523 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008339/0.4464, allocations: 8.133 MB / 434.2 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/0.4465, allocations: 4 kB / 434.2 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0054/0.4519, allocations: 2.965 MB / 437.2 MB, free: 9.805 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001079/0.453, allocations: 351.1 kB / 437.5 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004438/0.4535, allocations: 31.98 kB / 437.5 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001021/0.4545, allocations: 67.94 kB / 437.6 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002722/0.4548, allocations: 92.91 kB / 437.7 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.099e-05/0.4549, allocations: 31.98 kB / 437.7 MB, free: 9.223 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001682/0.4566, allocations: 0.8552 MB / 438.6 MB, free: 8.367 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4566, allocations: 0 / 438.6 MB, free: 8.367 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002076/0.4587, allocations: 439.9 kB / 439 MB, free: 7.938 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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],quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 81 * 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,(2,100.0%) 8,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005691/0.4644, allocations: 4.161 MB / 443.2 MB, free: 3.672 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004102/0.4685, allocations: 2.214 MB / 445.4 MB, free: 1.379 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 9.408e-06/0.4686, allocations: 4.25 kB / 445.4 MB, free: 1.375 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002691/0.4713, allocations: 1.501 MB / 446.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002384/0.4737, allocations: 393.2 kB / 447.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03623/0.5099, allocations: 19.3 MB / 466.6 MB, free: 11.55 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001876/0.5118, allocations: 1.693 MB / 468.3 MB, free: 9.832 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001273/0.5131, allocations: 328.8 kB / 468.6 MB, free: 9.504 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00126/0.5144, allocations: 0.7141 MB / 469.3 MB, free: 8.789 MB / 382.1 MB Notification: Performance of SimCode: time 1.954e-06/0.5144, allocations: 4 kB / 469.3 MB, free: 8.785 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0759/0.5903, allocations: 36.4 MB / 0.4938 GB, free: 4.836 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000168/0.5905, allocations: 225.5 kB / 0.4941 GB, free: 4.598 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.562/3.153, allocations: 0 / 0.4941 GB, free: 4.598 MB / 414.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Steinmetz_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Steinmetz.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz_res.mat does not exist to compare? outputFormat=mat