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/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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.01314/0.01314, allocations: 166.4 kB / 15.13 MB, free: 6.02 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06372/0.06372, allocations: 8.806 MB / 24.67 MB, free: 4.098 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.482/2.482, allocations: 223.2 MB / 250.8 MB, free: 6.527 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001769/0.00177, allocations: 87.45 kB / 304.1 MB, free: 4 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006941/0.0006941, allocations: 16 kB / 367.2 MB, free: 4.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5745/0.5752, allocations: 52.54 MB / 419.8 MB, free: 48.09 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.0391/0.6144, allocations: 21.65 MB / 441.4 MB, free: 32.33 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02971/0.6442, allocations: 7.352 MB / 448.8 MB, free: 26.98 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01047/0.6548, allocations: 165.6 kB / 449 MB, free: 26.95 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01104/0.6659, allocations: 1.38 MB / 450.3 MB, free: 26.04 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01863/0.6846, allocations: 2.451 MB / 452.8 MB, free: 24.08 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008549/0.6932, allocations: 1.227 MB / 454 MB, free: 22.87 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.02803/0.7212, allocations: 13.51 MB / 467.5 MB, free: 9.32 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06003/0.7813, allocations: 19.3 MB / 486.8 MB, free: 5.918 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01594/0.7974, allocations: 4.354 MB / 491.2 MB, free: 1.551 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01542/0.8129, allocations: 4.795 MB / 496 MB, free: 12.73 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004879/0.8179, allocations: 0.6602 MB / 496.6 MB, free: 12.07 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009874/0.8278, allocations: 1.046 MB / 497.7 MB, free: 11.03 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006232/0.8341, allocations: 2.063 MB / 499.7 MB, free: 8.957 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007913/0.8421, allocations: 2.137 MB / 0.4901 GB, free: 6.812 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03843/0.8806, allocations: 19.59 MB / 0.5092 GB, free: 3.164 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.398e-05/0.8807, allocations: 0 / 0.5092 GB, free: 3.164 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.779e-06/0.8807, allocations: 0 / 0.5092 GB, free: 3.164 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0008607/0.8816, allocations: 0 / 0.5092 GB, free: 3.164 MB / 378.7 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.06439/0.946, allocations: 11.35 MB / 0.5203 GB, free: 7.719 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.56e-05/0.9462, allocations: 16.56 kB / 0.5203 GB, free: 7.703 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01211/0.9583, allocations: 1.604 MB / 0.5219 GB, free: 6.086 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0657/1.024, allocations: 6.246 MB / 0.528 GB, free: 15.82 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02838/1.053, allocations: 7.001 MB / 0.5348 GB, free: 8.742 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001979/1.055, allocations: 0.7304 MB / 0.5356 GB, free: 8.012 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009005/1.064, allocations: 0.9607 MB / 0.5365 GB, free: 7.051 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0836/1.147, allocations: 16.11 MB / 0.5522 GB, free: 6.887 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008909/1.148, allocations: 19.88 kB / 0.5522 GB, free: 6.867 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007829/1.156, allocations: 404 kB / 0.5526 GB, free: 6.473 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001331/1.158, allocations: 0.5632 MB / 0.5532 GB, free: 5.906 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.7589/1.917, allocations: 15.05 MB / 0.5679 GB, free: 105.1 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1657/2.082, allocations: 52.8 MB / 0.6194 GB, free: 66.14 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03522/2.118, allocations: 20.09 MB / 0.6391 GB, free: 44.09 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01302/2.131, allocations: 3.684 MB / 0.6427 GB, free: 40.4 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001063/2.132, allocations: 188.1 kB / 0.6428 GB, free: 40.21 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002183/2.132, allocations: 82.03 kB / 0.6429 GB, free: 40.12 MB / 426.8 MB Notification: Performance of pre-optimization done (n=453): time 2.773e-05/2.132, allocations: 0 / 0.6429 GB, free: 40.12 MB / 426.8 MB Notification: Performance of matching and sorting (n=458): time 0.1122/2.245, allocations: 22.98 MB / 0.6654 GB, free: 17.08 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.676e-05/2.245, allocations: 98.97 kB / 0.6655 GB, free: 16.97 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01125/2.256, allocations: 4.473 MB / 0.6698 GB, free: 12.47 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001269/2.257, allocations: 97.7 kB / 0.6699 GB, free: 12.37 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003374/2.261, allocations: 4.195 MB / 0.674 GB, free: 8.148 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002644/2.264, allocations: 1.558 MB / 0.6755 GB, free: 6.605 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001338/2.265, allocations: 120 kB / 0.6756 GB, free: 6.488 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0006993/2.266, allocations: 0.5585 MB / 0.6762 GB, free: 5.922 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007334/2.273, allocations: 3.077 MB / 0.6792 GB, free: 2.84 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009385/2.282, allocations: 5.24 MB / 0.6843 GB, free: 12.63 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01035/2.293, allocations: 4.265 MB / 0.6885 GB, free: 8.359 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001854/2.293, allocations: 27.94 kB / 0.6885 GB, free: 8.332 MB / 442.8 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.03228/2.325, allocations: 9.874 MB / 0.6982 GB, free: 14.44 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001575/2.326, allocations: 32 kB / 0.6982 GB, free: 14.41 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002028/2.326, allocations: 68 kB / 0.6982 GB, free: 14.34 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005109/2.331, allocations: 1.387 MB / 0.6996 GB, free: 12.95 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009654/2.341, allocations: 1.384 MB / 0.701 GB, free: 11.57 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03568/2.376, allocations: 11.65 MB / 0.7123 GB, free: 15.66 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01072/2.387, allocations: 359.4 kB / 0.7127 GB, free: 15.3 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002435/2.39, allocations: 303.9 kB / 0.713 GB, free: 15.01 MB / 474.8 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 (723): * Single equations (assignments): 717 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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,(14,45.9%) 54} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01757/2.407, allocations: 3.888 MB / 0.7168 GB, free: 11.11 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003026/2.41, allocations: 458.4 kB / 0.7172 GB, free: 10.65 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02205/2.433, allocations: 8.566 MB / 0.7256 GB, free: 2.027 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01439/2.447, allocations: 6.276 MB / 0.7317 GB, free: 11.73 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.333e-05/2.447, allocations: 16 kB / 0.7317 GB, free: 11.72 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001415/2.447, allocations: 31.86 kB / 0.7317 GB, free: 11.69 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3643/2.812, allocations: 17.74 MB / 0.7491 GB, free: 155.3 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.218e-05/2.812, allocations: 11.39 kB / 0.7491 GB, free: 155.3 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003687/2.815, allocations: 0.805 MB / 0.7499 GB, free: 155.2 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004016/2.819, allocations: 1.286 MB / 0.7511 GB, free: 155.2 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005431/2.82, allocations: 102.8 kB / 0.7512 GB, free: 155.2 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01851/2.838, allocations: 10.55 MB / 0.7615 GB, free: 149 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.692e-05/2.839, allocations: 16.75 kB / 0.7615 GB, free: 149 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02866/2.867, allocations: 11.27 MB / 0.7725 GB, free: 144.2 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003912/2.871, allocations: 1.107 MB / 0.7736 GB, free: 143.8 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008626/2.872, allocations: 92.19 kB / 0.7737 GB, free: 143.8 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00247/2.875, allocations: 238.4 kB / 0.7739 GB, free: 143.7 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001043/2.876, allocations: 332.5 kB / 0.7742 GB, free: 143.6 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000493/2.876, allocations: 139.1 kB / 0.7744 GB, free: 143.6 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.006856/2.883, allocations: 3.083 MB / 0.7774 GB, free: 142.5 MB / 490.8 MB Notification: Performance of sort global known variables: time 1.233e-06/2.883, allocations: 3.938 kB / 0.7774 GB, free: 142.5 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.008506/2.892, allocations: 1.731 MB / 0.7791 GB, free: 142.3 MB / 490.8 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 (420): * Single equations (assignments): 414 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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,(14,44.4%) 54} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02688/2.919, allocations: 12.27 MB / 0.7911 GB, free: 133 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.02608/2.945, allocations: 7.998 MB / 0.7989 GB, free: 126 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-05/2.945, allocations: 4 kB / 0.7989 GB, free: 126 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0139/2.959, allocations: 3.982 MB / 0.8028 GB, free: 122.5 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01427/2.973, allocations: 1.015 MB / 0.8038 GB, free: 121.7 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.21/3.183, allocations: 53.3 MB / 0.8558 GB, free: 67.81 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01901/3.202, allocations: 6.517 MB / 0.8622 GB, free: 61.26 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.01347/3.216, allocations: 2.107 MB / 0.8642 GB, free: 59.15 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01228/3.228, allocations: 3.573 MB / 0.8677 GB, free: 55.57 MB / 490.8 MB Notification: Performance of SimCode: time 2.414e-06/3.228, allocations: 0 / 0.8677 GB, free: 55.57 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.746/3.974, allocations: 135.1 MB / 0.9996 GB, free: 95.36 MB / 490.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001832/3.975, allocations: 246.2 kB / 0.9999 GB, free: 95.09 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/15.51, allocations: 0 / 0.9999 GB, free: 95.09 MB / 490.8 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/linux/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)