Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.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_Initialize,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008381/0.0008379, allocations: 93.67 kB / 17 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001128/0.001128, allocations: 199 kB / 17.91 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 227.4 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002315/0.0002315, allocations: 12 kB / 306.8 MB, free: 1.465 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1101, allocations: 51.49 MB / 358.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize): time 0.009386/0.1196, allocations: 7.917 MB / 366.2 MB, free: 6.023 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005905/0.1255, allocations: 2.74 MB / 369 MB, free: 3.277 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001293/0.1269, allocations: 43.81 kB / 369 MB, free: 3.234 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001498/0.1284, allocations: 497.1 kB / 369.5 MB, free: 2.746 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001883/0.1303, allocations: 0.6255 MB / 370.1 MB, free: 2.117 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000612/0.1309, allocations: 203.7 kB / 370.3 MB, free: 1.918 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1907/0.3216, allocations: 2.443 MB / 372.8 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002272/0.3239, allocations: 1.233 MB / 374 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001833/0.3258, allocations: 0.8151 MB / 374.8 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002191/0.328, allocations: 1.125 MB / 375.9 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003825/0.3284, allocations: 119.8 kB / 376.1 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007328/0.3291, allocations: 195.4 kB / 376.3 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007331/0.3299, allocations: 0.6164 MB / 376.9 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006457/0.3305, allocations: 449.1 kB / 377.3 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003716/0.3343, allocations: 2.976 MB / 380.3 MB, free: 9.527 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.3343, allocations: 0 / 380.3 MB, free: 9.527 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.3343, allocations: 0 / 380.3 MB, free: 9.527 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001146/0.3344, allocations: 0 / 380.3 MB, free: 9.527 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: 466 * Number of variables: 466 Notification: Performance of Generate backend data structure: time 0.005022/0.3395, allocations: 2.233 MB / 382.5 MB, free: 8.449 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.48e-05/0.3395, allocations: 9.75 kB / 382.5 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004953/0.34, allocations: 264.9 kB / 382.8 MB, free: 8.402 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001023/0.341, allocations: 295.5 kB / 383.1 MB, free: 8.281 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002179/0.3432, allocations: 1.309 MB / 384.4 MB, free: 7.902 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001293/0.3434, allocations: 137 kB / 384.5 MB, free: 7.898 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002957/0.3437, allocations: 188.6 kB / 384.7 MB, free: 7.895 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004216/0.3479, allocations: 2.404 MB / 387.1 MB, free: 7.434 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.09e-05/0.348, allocations: 9.531 kB / 387.1 MB, free: 7.43 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000186/0.3482, allocations: 74.59 kB / 387.2 MB, free: 7.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001413/0.3483, allocations: 89.7 kB / 387.3 MB, free: 7.418 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00389/0.3522, allocations: 2.021 MB / 389.3 MB, free: 7.086 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01086/0.3631, allocations: 7.485 MB / 396.8 MB, free: 2.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001487/0.3646, allocations: 1.286 MB / 398.1 MB, free: 1.184 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001315/0.3659, allocations: 0.9189 MB / 399 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001998/0.3662, allocations: 120.3 kB / 399.1 MB, free: 0.668 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.272e-05/0.3662, allocations: 42.38 kB / 399.1 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of pre-optimization done (n=84): time 2.474e-06/0.3662, allocations: 0 / 399.1 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of matching and sorting (n=100): time 0.009266/0.3755, allocations: 4.918 MB / 404.1 MB, free: 12.58 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.074e-05/0.3755, allocations: 64.36 kB / 404.1 MB, free: 12.5 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002074/0.3776, allocations: 1.373 MB / 405.5 MB, free: 11.11 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.645e-05/0.3777, allocations: 45.7 kB / 405.5 MB, free: 11.06 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006578/0.3784, allocations: 0.8926 MB / 406.4 MB, free: 10.16 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003053/0.3787, allocations: 354.8 kB / 406.8 MB, free: 9.816 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.817e-05/0.3788, allocations: 24 kB / 406.8 MB, free: 9.793 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.3789, allocations: 353.9 kB / 407.2 MB, free: 9.441 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001004/0.3799, allocations: 0.635 MB / 407.8 MB, free: 8.805 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001178/0.3811, allocations: 0.9406 MB / 408.7 MB, free: 7.742 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001153/0.3823, allocations: 0.7565 MB / 409.5 MB, free: 6.988 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.112e-06/0.3823, allocations: 11.94 kB / 409.5 MB, free: 6.977 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.004242/0.3866, allocations: 2.394 MB / 411.9 MB, free: 4.57 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.409e-05/0.3866, allocations: 8 kB / 411.9 MB, free: 4.562 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.019e-05/0.3867, allocations: 8 kB / 411.9 MB, free: 4.555 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001779/0.3884, allocations: 0.7159 MB / 412.6 MB, free: 3.832 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009404/0.3894, allocations: 239.7 kB / 412.9 MB, free: 3.598 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01074/0.4002, allocations: 8.002 MB / 420.9 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001596/0.4018, allocations: 95.95 kB / 421 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002543/0.4021, allocations: 44 kB / 421 MB, free: 11.19 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(6,77.8%) 29} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001703/0.4038, allocations: 0.6262 MB / 421.6 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005731/0.4044, allocations: 142.2 kB / 421.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003932/0.4083, allocations: 1.913 MB / 423.7 MB, free: 8.469 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.206e-05/0.4084, allocations: 8 kB / 423.7 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.259e-05/0.4084, allocations: 4 kB / 423.7 MB, free: 8.457 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.18e-05/0.4084, allocations: 3.984 kB / 423.7 MB, free: 8.453 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008061/0.4165, allocations: 4.023 MB / 427.7 MB, free: 4.359 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.426e-06/0.4165, allocations: 4.125 kB / 427.7 MB, free: 4.355 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008007/0.4173, allocations: 188 kB / 427.9 MB, free: 4.172 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00121/0.4185, allocations: 466.8 kB / 428.4 MB, free: 3.703 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001067/0.4186, allocations: 23.98 kB / 428.4 MB, free: 3.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006556/0.4252, allocations: 6.154 MB / 434.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.89e-06/0.4252, allocations: 4.031 kB / 434.5 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004842/0.4301, allocations: 2.789 MB / 437.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009884/0.4311, allocations: 363.2 kB / 437.7 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004666/0.4316, allocations: 23.98 kB / 437.7 MB, free: 9.895 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001025/0.4326, allocations: 83.92 kB / 437.8 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002114/0.4328, allocations: 72.83 kB / 437.9 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.868e-05/0.4329, allocations: 31.98 kB / 437.9 MB, free: 9.711 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001904/0.4348, allocations: 0.9544 MB / 438.8 MB, free: 8.754 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4349, allocations: 0 / 438.8 MB, free: 8.754 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00194/0.4368, allocations: 436 kB / 439.3 MB, free: 8.328 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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],loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 80 * 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.004895/0.4417, allocations: 3.381 MB / 442.6 MB, free: 4.887 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003569/0.4453, allocations: 2.007 MB / 444.7 MB, free: 2.852 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.281e-06/0.4453, allocations: 1.812 kB / 444.7 MB, free: 2.852 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002192/0.4475, allocations: 1.354 MB / 446 MB, free: 1.441 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002755/0.4503, allocations: 370.8 kB / 446.4 MB, free: 1.086 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0275/0.4778, allocations: 12.58 MB / 459 MB, free: 4.039 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001884/0.4797, allocations: 1.7 MB / 460.7 MB, free: 2.305 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001232/0.481, allocations: 316 kB / 461 MB, free: 1.992 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001135/0.4821, allocations: 0.7023 MB / 461.7 MB, free: 1.289 MB / 366.1 MB Notification: Performance of SimCode: time 8.51e-07/0.4822, allocations: 0 / 461.7 MB, free: 1.289 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06605/0.5482, allocations: 37 MB / 498.7 MB, free: 12.72 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002722/0.5486, allocations: 246.5 kB / 498.9 MB, free: 12.47 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.614/3.162, allocations: 3.375 kB / 498.9 MB, free: 12.47 MB / 414.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize_res.mat does not exist to compare? outputFormat=mat