Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.AsynchronousInductionMachines.AIMC_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLosses",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.001292/0.001292, allocations: 99.44 kB / 16.95 MB, free: 5.977 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.001245/0.001245, allocations: 173.9 kB / 17.83 MB, free: 5.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.972/1.972, allocations: 205.4 MB / 224 MB, free: 13.15 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004995/0.0004996, allocations: 8 kB / 280.9 MB, free: 3.629 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1125, allocations: 47.57 MB / 328.5 MB, free: 3.984 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses): time 0.01082/0.1234, allocations: 8.498 MB / 337 MB, free: 11.45 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00755/0.131, allocations: 3.271 MB / 340.2 MB, free: 8.168 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001807/0.1328, allocations: 39.81 kB / 340.3 MB, free: 8.129 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002224/0.1351, allocations: 0.5321 MB / 340.8 MB, free: 7.594 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003477/0.1386, allocations: 0.7071 MB / 341.5 MB, free: 6.883 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001565/0.1402, allocations: 315.4 kB / 341.8 MB, free: 6.574 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005185/0.1454, allocations: 2.744 MB / 344.6 MB, free: 3.816 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002387/0.1478, allocations: 1.288 MB / 345.8 MB, free: 2.496 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002404/0.1502, allocations: 0.9182 MB / 346.8 MB, free: 1.574 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002912/0.1532, allocations: 1.327 MB / 348.1 MB, free: 248 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004801/0.1537, allocations: 140 kB / 348.2 MB, free: 108 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001371/0.155, allocations: 343.6 kB / 348.6 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008873/0.1559, allocations: 0.7905 MB / 349.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009026/0.1569, allocations: 0.5119 MB / 349.9 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003839/0.1607, allocations: 3.374 MB / 353.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.1607, allocations: 4 kB / 353.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1607, allocations: 4 kB / 353.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001326/0.1609, allocations: 0 / 353.2 MB, free: 11.07 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.006594/0.1675, allocations: 2.718 MB / 356 MB, free: 8.281 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.107e-05/0.1676, allocations: 15.97 kB / 356 MB, free: 8.266 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00106/0.1686, allocations: 355 kB / 356.3 MB, free: 7.902 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009856/0.1696, allocations: 328.3 kB / 356.6 MB, free: 7.578 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003186/0.1728, allocations: 1.537 MB / 358.2 MB, free: 5.988 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001345/0.173, allocations: 152.1 kB / 358.3 MB, free: 5.836 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003375/0.1733, allocations: 211.9 kB / 358.5 MB, free: 5.629 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005608/0.1789, allocations: 2.723 MB / 361.3 MB, free: 2.824 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.524e-05/0.179, allocations: 4 kB / 361.3 MB, free: 2.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001989/0.1792, allocations: 91.95 kB / 361.4 MB, free: 2.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001265/0.1794, allocations: 100 kB / 361.5 MB, free: 2.629 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004492/0.1839, allocations: 2.296 MB / 363.8 MB, free: 324 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01972/0.2036, allocations: 8.346 MB / 372.1 MB, free: 7.75 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003822/0.2075, allocations: 1.636 MB / 373.7 MB, free: 6.055 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002269/0.2098, allocations: 1.097 MB / 374.8 MB, free: 4.961 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003407/0.2102, allocations: 130.1 kB / 375 MB, free: 4.812 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.646e-05/0.2103, allocations: 43.56 kB / 375 MB, free: 4.762 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 3.917e-06/0.2103, allocations: 0 / 375 MB, free: 4.762 MB / 318.1 MB Notification: Performance of matching and sorting (n=132): time 0.2679/0.4782, allocations: 6.265 MB / 381.3 MB, free: 50.14 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.178e-05/0.4783, allocations: 65.69 kB / 381.3 MB, free: 50.07 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004119/0.4825, allocations: 2.148 MB / 383.5 MB, free: 49.79 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003093/0.4828, allocations: 54.5 kB / 383.5 MB, free: 49.74 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009024/0.4837, allocations: 1.119 MB / 384.6 MB, free: 48.89 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005081/0.4842, allocations: 452.4 kB / 385.1 MB, free: 48.55 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.358e-05/0.4843, allocations: 29.53 kB / 385.1 MB, free: 48.52 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.4845, allocations: 356.9 kB / 385.5 MB, free: 48.2 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00148/0.4859, allocations: 0.7655 MB / 386.2 MB, free: 47.94 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001605/0.4876, allocations: 1.02 MB / 387.3 MB, free: 47.41 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001596/0.4892, allocations: 0.9014 MB / 388.2 MB, free: 47.05 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.638e-06/0.4892, allocations: 4.984 kB / 388.2 MB, free: 47.05 MB / 318.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005752/0.495, allocations: 2.775 MB / 390.9 MB, free: 46.03 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.41e-05/0.495, allocations: 12.09 kB / 390.9 MB, free: 46.03 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.461e-05/0.4951, allocations: 6.531 kB / 391 MB, free: 46.03 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002072/0.4971, allocations: 0.7907 MB / 391.7 MB, free: 45.83 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001143/0.4983, allocations: 282.6 kB / 392 MB, free: 45.8 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01018/0.5085, allocations: 8.729 MB / 400.7 MB, free: 40.49 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001664/0.5102, allocations: 98.92 kB / 400.8 MB, free: 40.44 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001725/0.5104, allocations: 52.27 kB / 400.9 MB, free: 40.43 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (126): * Single equations (assignments): 122 * Array equations: 2 * 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%) 6,(6,88.9%) 33} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001487/0.5119, allocations: 0.7455 MB / 401.6 MB, free: 39.95 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004587/0.5124, allocations: 199.1 kB / 401.8 MB, free: 39.84 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003871/0.5162, allocations: 2.512 MB / 404.3 MB, free: 38.43 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.86e-05/0.5163, allocations: 12 kB / 404.4 MB, free: 38.41 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.346e-05/0.5163, allocations: 8 kB / 404.4 MB, free: 38.41 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.462e-05/0.5164, allocations: 7.969 kB / 404.4 MB, free: 38.4 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007603/0.524, allocations: 4.982 MB / 409.4 MB, free: 33.36 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.26e-05/0.524, allocations: 4 kB / 409.4 MB, free: 33.36 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009212/0.525, allocations: 221.8 kB / 409.6 MB, free: 33.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001525/0.5265, allocations: 0.6463 MB / 410.2 MB, free: 32.48 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001193/0.5266, allocations: 41.06 kB / 410.3 MB, free: 32.45 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006967/0.5336, allocations: 7.902 MB / 418.2 MB, free: 24.16 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.5337, allocations: 0 / 418.2 MB, free: 24.16 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005357/0.539, allocations: 3.562 MB / 421.7 MB, free: 20.55 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001142/0.5402, allocations: 438.5 kB / 422.2 MB, free: 20.11 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002595/0.5405, allocations: 31.98 kB / 422.2 MB, free: 20.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008506/0.5413, allocations: 100.6 kB / 422.3 MB, free: 19.98 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00025/0.5416, allocations: 107.2 kB / 422.4 MB, free: 19.88 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.737e-05/0.5417, allocations: 42.23 kB / 422.4 MB, free: 19.84 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002017/0.5437, allocations: 1.504 MB / 423.9 MB, free: 18.31 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5437, allocations: 0 / 423.9 MB, free: 18.31 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002071/0.5458, allocations: 0.5257 MB / 424.5 MB, free: 17.79 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (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,PI.x) * 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 (97): * Single equations (assignments): 91 * Array equations: 2 * 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%) 6,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005999/0.5518, allocations: 4.469 MB / 428.9 MB, free: 13.31 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003851/0.5557, allocations: 2.39 MB / 431.3 MB, free: 10.89 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.802e-06/0.5557, allocations: 0 / 431.3 MB, free: 10.89 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002163/0.5579, allocations: 1.613 MB / 432.9 MB, free: 9.234 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002459/0.5604, allocations: 432.1 kB / 433.4 MB, free: 8.809 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03114/0.5916, allocations: 17.06 MB / 450.4 MB, free: 6.781 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001794/0.5934, allocations: 1.951 MB / 452.4 MB, free: 4.797 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001576/0.595, allocations: 391.7 kB / 452.7 MB, free: 4.41 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001329/0.5963, allocations: 0.9796 MB / 453.7 MB, free: 3.43 MB / 334.1 MB Notification: Performance of SimCode: time 1.653e-06/0.5964, allocations: 0 / 453.7 MB, free: 3.43 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09049/0.6869, allocations: 47.74 MB / 0.4897 GB, free: 3.598 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002249/0.6871, allocations: 280.3 kB / 0.49 GB, free: 3.246 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.168/3.855, allocations: 0 / 0.49 GB, free: 3.246 MB / 382.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLosses_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLosses.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe 2>&1) Environment - environmentSimulation: