Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.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_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DOL",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.001117/0.001117, allocations: 87.11 kB / 16.31 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.001534/0.001534, allocations: 177.1 kB / 17.21 MB, free: 6.32 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.49/1.49, allocations: 223.3 MB / 241.2 MB, free: 280 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002762/0.0002763, allocations: 5.531 kB / 300.9 MB, free: 6.328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1345, allocations: 50.42 MB / 351.3 MB, free: 3.891 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL): time 0.01071/0.1453, allocations: 8.293 MB / 359.6 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006099/0.1514, allocations: 2.802 MB / 362.4 MB, free: 8.754 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001291/0.1527, allocations: 47.81 kB / 362.5 MB, free: 8.707 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00151/0.1542, allocations: 0.5048 MB / 363 MB, free: 8.199 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002308/0.1566, allocations: 0.6526 MB / 363.6 MB, free: 7.543 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006874/0.1573, allocations: 223.6 kB / 363.9 MB, free: 7.324 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003249/0.1605, allocations: 2.759 MB / 366.6 MB, free: 4.551 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001956/0.1625, allocations: 1.37 MB / 368 MB, free: 3.145 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001592/0.1641, allocations: 0.8988 MB / 368.9 MB, free: 2.242 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001884/0.166, allocations: 1.241 MB / 370.1 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002619/0.1663, allocations: 132 kB / 370.3 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006081/0.1669, allocations: 195.9 kB / 370.5 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2322/0.3991, allocations: 0.675 MB / 371.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001679/0.4008, allocations: 0.4917 MB / 371.6 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005608/0.4065, allocations: 3.264 MB / 374.9 MB, free: 11.65 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.915e-06/0.4065, allocations: 1.719 kB / 374.9 MB, free: 11.65 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.4065, allocations: 0 / 374.9 MB, free: 11.65 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001707/0.4067, allocations: 1.094 kB / 374.9 MB, free: 11.65 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.00737/0.4141, allocations: 2.451 MB / 377.3 MB, free: 10.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.4141, allocations: 9.562 kB / 377.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000968/0.4151, allocations: 300 kB / 377.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009235/0.416, allocations: 286.5 kB / 377.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002712/0.4188, allocations: 1.439 MB / 379.4 MB, free: 9.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001349/0.4189, allocations: 154.5 kB / 379.5 MB, free: 9.902 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003384/0.4192, allocations: 206.5 kB / 379.7 MB, free: 9.898 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004989/0.4242, allocations: 2.726 MB / 382.4 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.474e-05/0.4243, allocations: 10.66 kB / 382.5 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001874/0.4245, allocations: 85.27 kB / 382.5 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001187/0.4246, allocations: 93.75 kB / 382.6 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004042/0.4287, allocations: 2.335 MB / 385 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01248/0.4412, allocations: 8.457 MB / 393.4 MB, free: 5.223 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001811/0.443, allocations: 1.786 MB / 395.2 MB, free: 3.945 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00158/0.4446, allocations: 1.065 MB / 396.3 MB, free: 3.465 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002019/0.4449, allocations: 118.7 kB / 396.4 MB, free: 3.363 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.556e-05/0.4449, allocations: 45.56 kB / 396.4 MB, free: 3.312 MB / 302.1 MB Notification: Performance of pre-optimization done (n=104): time 2.815e-06/0.4449, allocations: 0 / 396.4 MB, free: 3.312 MB / 302.1 MB Notification: Performance of matching and sorting (n=120): time 0.01161/0.4565, allocations: 6.28 MB / 402.7 MB, free: 15.54 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.286e-05/0.4566, allocations: 68.41 kB / 402.8 MB, free: 15.46 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002844/0.4595, allocations: 1.503 MB / 404.3 MB, free: 13.95 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001348/0.4596, allocations: 45.7 kB / 404.3 MB, free: 13.9 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000778/0.4604, allocations: 0.982 MB / 405.3 MB, free: 12.91 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003597/0.4608, allocations: 418.6 kB / 405.7 MB, free: 12.51 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.4e-05/0.4609, allocations: 32 kB / 405.7 MB, free: 12.48 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001872/0.4611, allocations: 357.9 kB / 406.1 MB, free: 12.12 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001214/0.4623, allocations: 0.7339 MB / 406.8 MB, free: 11.39 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001393/0.4637, allocations: 1.068 MB / 407.9 MB, free: 10.19 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001316/0.465, allocations: 0.8714 MB / 408.8 MB, free: 9.328 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.184e-06/0.465, allocations: 7.938 kB / 408.8 MB, free: 9.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004066/0.4691, allocations: 2.36 MB / 411.1 MB, free: 7.004 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.85e-05/0.4692, allocations: 14.56 kB / 411.2 MB, free: 6.992 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.907e-05/0.4692, allocations: 8.875 kB / 411.2 MB, free: 6.984 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009121/0.4701, allocations: 409.9 kB / 411.6 MB, free: 6.574 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001153/0.4713, allocations: 335.6 kB / 411.9 MB, free: 6.262 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004916/0.4762, allocations: 4.636 MB / 416.5 MB, free: 1.387 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001503/0.4777, allocations: 95.97 kB / 416.6 MB, free: 1.293 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001181/0.4778, allocations: 48 kB / 416.7 MB, free: 1.246 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 152 * 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: 2 * 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: 2 {(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001568/0.4794, allocations: 0.7104 MB / 417.4 MB, free: 0.543 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003892/0.4798, allocations: 166 kB / 417.5 MB, free: 388 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003598/0.4834, allocations: 2.153 MB / 419.7 MB, free: 14.22 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.256e-05/0.4834, allocations: 12 kB / 419.7 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.4835, allocations: 4 kB / 419.7 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.639e-05/0.4835, allocations: 11.97 kB / 419.7 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00761/0.4911, allocations: 4.595 MB / 424.3 MB, free: 9.559 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.075e-06/0.4911, allocations: 4 kB / 424.3 MB, free: 9.555 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009038/0.492, allocations: 227.5 kB / 424.5 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001094/0.4932, allocations: 467.2 kB / 425 MB, free: 8.875 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.224e-05/0.4932, allocations: 31.98 kB / 425 MB, free: 8.844 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005645/0.4989, allocations: 6.136 MB / 431.2 MB, free: 2.336 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.06e-06/0.4989, allocations: 7.953 kB / 431.2 MB, free: 2.328 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004686/0.5036, allocations: 3.193 MB / 434.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008904/0.5045, allocations: 399 kB / 434.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002181/0.5047, allocations: 39.95 kB / 434.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007518/0.5055, allocations: 75.91 kB / 434.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002862/0.5058, allocations: 111.6 kB / 435 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.056e-05/0.5059, allocations: 35.98 kB / 435 MB, free: 14.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001699/0.5076, allocations: 1.032 MB / 436 MB, free: 13.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5076, allocations: 0 / 436 MB, free: 13.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001711/0.5093, allocations: 464.1 kB / 436.5 MB, free: 12.94 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (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) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 100 * 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: 3 * 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: 3 {(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.005511/0.5148, allocations: 3.8 MB / 440.3 MB, free: 9.102 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003935/0.5188, allocations: 2.275 MB / 442.6 MB, free: 6.797 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.136e-06/0.5188, allocations: 0.5 kB / 442.6 MB, free: 6.797 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002263/0.5211, allocations: 1.497 MB / 444.1 MB, free: 5.262 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00265/0.5238, allocations: 425.1 kB / 444.5 MB, free: 4.852 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02595/0.5497, allocations: 13.76 MB / 458.2 MB, free: 6.559 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00171/0.5515, allocations: 1.815 MB / 460.1 MB, free: 4.707 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001339/0.5528, allocations: 393.5 kB / 460.4 MB, free: 4.316 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001187/0.554, allocations: 0.7961 MB / 461.2 MB, free: 3.523 MB / 366.1 MB Notification: Performance of SimCode: time 9.32e-07/0.554, allocations: 0 / 461.2 MB, free: 3.523 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07469/0.6287, allocations: 40.04 MB / 0.4895 GB, free: 11.98 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002267/0.629, allocations: 225.1 kB / 0.4897 GB, free: 11.74 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.909/3.538, allocations: 0 / 0.4897 GB, free: 11.74 MB / 414.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DOL_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DOL.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL_res.mat does not exist to compare? outputFormat=mat