Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_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/Modelica 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/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(HanserModelica.InductionMachines.IMC_withLosses,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_withLosses,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_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.001583/0.001583, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.486/1.486, allocations: 222.9 MB / 239.3 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001422/0.001422, allocations: 192.4 kB / 289.6 MB, free: 2.301 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03493/0.03493, allocations: 8.798 MB / 348.5 MB, free: 4.699 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002743/0.002743, allocations: 76.17 kB / 411.2 MB, free: 41.95 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1029, allocations: 51.57 MB / 462.7 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.02674/0.1296, allocations: 24.85 MB / 487.6 MB, free: 5.293 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02049/0.1502, allocations: 8.007 MB / 495.6 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006523/0.1567, allocations: 183.4 kB / 495.8 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01941/0.1762, allocations: 8.373 MB / 0.4923 GB, free: 4.688 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009847/0.186, allocations: 2.975 MB / 0.4952 GB, free: 1.703 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005789/0.1918, allocations: 1.828 MB / 0.497 GB, free: 15.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01542/0.2073, allocations: 11.01 MB / 0.5078 GB, free: 4.836 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2476/0.4549, allocations: 23.45 MB / 0.5307 GB, free: 17.75 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007657/0.4626, allocations: 5.882 MB / 0.5364 GB, free: 17.38 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01088/0.4735, allocations: 6.53 MB / 0.5428 GB, free: 16.38 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006422/0.48, allocations: 1.717 MB / 0.5445 GB, free: 16.38 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008098/0.4881, allocations: 2.132 MB / 0.5466 GB, free: 16.37 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005538/0.4937, allocations: 3.355 MB / 0.5498 GB, free: 16.01 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01165/0.5053, allocations: 6.36 MB / 0.5561 GB, free: 14.55 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0252/0.5306, allocations: 22.99 MB / 0.5785 GB, free: 2.254 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.5306, allocations: 0 / 0.5785 GB, free: 2.254 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.5306, allocations: 0 / 0.5785 GB, free: 2.254 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006217/0.5313, allocations: 0 / 0.5785 GB, free: 2.254 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2685 * Number of variables: 2685 Notification: Performance of Generate backend data structure: time 0.04174/0.573, allocations: 13.44 MB / 0.5916 GB, free: 8.602 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.5731, allocations: 8.031 kB / 0.5916 GB, free: 8.594 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005744/0.5788, allocations: 1.618 MB / 0.5932 GB, free: 6.977 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03684/0.6157, allocations: 6.219 MB / 0.5993 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01587/0.6316, allocations: 7.076 MB / 0.6062 GB, free: 9.965 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007223/0.6323, allocations: 0.7251 MB / 0.6069 GB, free: 9.246 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003882/0.6362, allocations: 0.9587 MB / 0.6078 GB, free: 8.297 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03984/0.6761, allocations: 16.17 MB / 0.6236 GB, free: 8.086 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003496/0.6765, allocations: 19.81 kB / 0.6237 GB, free: 8.066 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002659/0.6792, allocations: 402.9 kB / 0.624 GB, free: 7.684 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005734/0.6797, allocations: 0.5593 MB / 0.6246 GB, free: 7.121 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03148/0.7112, allocations: 15.11 MB / 0.6393 GB, free: 7.996 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09372/0.805, allocations: 52.69 MB / 0.6908 GB, free: 3.07 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2158/1.021, allocations: 20.11 MB / 0.7104 GB, free: 153.3 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005693/1.027, allocations: 3.628 MB / 0.714 GB, free: 153.3 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004247/1.027, allocations: 184.3 kB / 0.7142 GB, free: 153.2 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.406e-05/1.027, allocations: 79.5 kB / 0.7142 GB, free: 153.1 MB / 494.1 MB Notification: Performance of pre-optimization done (n=447): time 6.682e-06/1.027, allocations: 1.562 kB / 0.7142 GB, free: 153.1 MB / 494.1 MB Notification: Performance of matching and sorting (n=452): time 0.05092/1.078, allocations: 20.64 MB / 0.7344 GB, free: 150.3 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.174e-05/1.078, allocations: 104.8 kB / 0.7345 GB, free: 150.2 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005511/1.084, allocations: 4.49 MB / 0.7389 GB, free: 148.6 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005657/1.084, allocations: 95.45 kB / 0.739 GB, free: 148.5 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001859/1.086, allocations: 4.211 MB / 0.7431 GB, free: 145.4 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001289/1.087, allocations: 1.538 MB / 0.7446 GB, free: 144.2 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001655/1.089, allocations: 1.196 MB / 0.7457 GB, free: 143.6 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.994e-05/1.089, allocations: 306.7 kB / 0.746 GB, free: 143.3 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004284/1.093, allocations: 3.061 MB / 0.749 GB, free: 142.1 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004871/1.098, allocations: 5.209 MB / 0.7541 GB, free: 138.2 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009429/1.108, allocations: 8.869 MB / 0.7628 GB, free: 132.4 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-05/1.108, allocations: 23.56 kB / 0.7628 GB, free: 132.4 MB / 494.1 MB Notification: Performance of matching and sorting (n=794) (initialization): time 0.01578/1.124, allocations: 9.858 MB / 0.7724 GB, free: 128.1 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.045e-05/1.124, allocations: 32 kB / 0.7725 GB, free: 128 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001124/1.124, allocations: 70.34 kB / 0.7725 GB, free: 128 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003595/1.127, allocations: 1.406 MB / 0.7739 GB, free: 126.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005064/1.132, allocations: 1.395 MB / 0.7753 GB, free: 125.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01476/1.147, allocations: 12.66 MB / 0.7876 GB, free: 112.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00473/1.152, allocations: 359.3 kB / 0.788 GB, free: 112.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000781/1.153, allocations: 300 kB / 0.7882 GB, free: 112.1 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 313 * 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 (720): * Single equations (assignments): 717 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (14,54,45.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00668/1.16, allocations: 3.888 MB / 0.792 GB, free: 108.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001168/1.161, allocations: 458.4 kB / 0.7925 GB, free: 107.7 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01206/1.173, allocations: 8.512 MB / 0.8008 GB, free: 99.18 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008739/1.182, allocations: 6.252 MB / 0.8069 GB, free: 92.91 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.165e-05/1.182, allocations: 12.56 kB / 0.8069 GB, free: 92.89 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.693e-05/1.182, allocations: 23.92 kB / 0.8069 GB, free: 92.87 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02629/1.208, allocations: 17.68 MB / 0.8242 GB, free: 75.07 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-05/1.208, allocations: 8 kB / 0.8242 GB, free: 75.07 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003193/1.211, allocations: 0.8074 MB / 0.825 GB, free: 74.26 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003361/1.215, allocations: 1.29 MB / 0.8263 GB, free: 72.96 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004469/1.215, allocations: 99.98 kB / 0.8263 GB, free: 72.86 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01321/1.228, allocations: 11.56 MB / 0.8376 GB, free: 61.05 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.354e-06/1.228, allocations: 15.94 kB / 0.8377 GB, free: 61.03 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01529/1.244, allocations: 11.19 MB / 0.8486 GB, free: 49.7 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002234/1.246, allocations: 1.082 MB / 0.8496 GB, free: 48.59 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006721/1.247, allocations: 88 kB / 0.8497 GB, free: 48.51 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002306/1.249, allocations: 239.7 kB / 0.8499 GB, free: 48.27 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007276/1.25, allocations: 331.5 kB / 0.8503 GB, free: 47.95 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002616/1.25, allocations: 136 kB / 0.8504 GB, free: 47.82 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004066/1.254, allocations: 3.107 MB / 0.8534 GB, free: 44.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.643e-06/1.254, allocations: 0 / 0.8534 GB, free: 44.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006004/1.26, allocations: 1.736 MB / 0.8551 GB, free: 42.98 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 4 (imc.inertiaRotor.w,imc.rotorCage.port_p.reference.gamma,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 (417): * Single equations (assignments): 414 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (14,54,43.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01581/1.276, allocations: 12.21 MB / 0.867 GB, free: 30.8 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.03111/1.307, allocations: 14.97 MB / 0.8817 GB, free: 15.88 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.498e-06/1.307, allocations: 1.875 kB / 0.8817 GB, free: 15.88 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006133/1.313, allocations: 3.948 MB / 0.8855 GB, free: 11.9 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004742/1.318, allocations: 1.04 MB / 0.8865 GB, free: 10.88 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3051/1.623, allocations: 72.55 MB / 0.9574 GB, free: 120.1 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006431/1.629, allocations: 6.512 MB / 0.9637 GB, free: 115.1 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005848/1.635, allocations: 2.123 MB / 0.9658 GB, free: 113.4 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005541/1.641, allocations: 3.549 MB / 0.9693 GB, free: 109.9 MB / 494.1 MB Notification: Performance of SimCode: time 1.012e-06/1.641, allocations: 4 kB / 0.9693 GB, free: 109.9 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4071/2.048, allocations: 140.6 MB / 1.107 GB, free: 139.4 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.21/14.25, allocations: 8.641 kB / 1.107 GB, free: 139.4 MB / 494.1 MB (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_InductionMachines_IMC_withLosses.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe 2>&1)