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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001248/0.001248, allocations: 97.92 kB / 19.73 MB, free: 2.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.519/1.519, allocations: 230.6 MB / 253.5 MB, free: 14.27 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001505/0.001505, allocations: 210.4 kB / 310 MB, free: 3.07 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo): time 0.04021/0.04021, allocations: 8.921 MB / 375.4 MB, free: 6.574 MB / 302.1 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_withLosses,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_withLosses",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_withLosses,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_withLosses",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: HanserModelica requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: HanserModelica requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002401/0.002401, allocations: 91.86 kB / 0.4899 GB, free: 44.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09218/0.09459, allocations: 55.6 MB / 0.5442 GB, free: 5.035 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.2329/0.3275, allocations: 21.48 MB / 0.5652 GB, free: 9.309 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01249/0.34, allocations: 7.87 MB / 0.5729 GB, free: 9.176 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003872/0.3439, allocations: 217.6 kB / 0.5731 GB, free: 9.176 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01637/0.3602, allocations: 7.834 MB / 0.5807 GB, free: 7.629 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00901/0.3692, allocations: 3.09 MB / 0.5838 GB, free: 6.246 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005147/0.3744, allocations: 1.84 MB / 0.5856 GB, free: 5.316 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01249/0.3869, allocations: 11.33 MB / 0.5966 GB, free: 15.82 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02444/0.4113, allocations: 14.68 MB / 0.611 GB, free: 6.801 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009053/0.4204, allocations: 6.071 MB / 0.6169 GB, free: 3.266 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01126/0.4316, allocations: 6.576 MB / 0.6233 GB, free: 12.71 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004062/0.4357, allocations: 1.715 MB / 0.625 GB, free: 11 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007442/0.4431, allocations: 2.156 MB / 0.6271 GB, free: 8.84 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007253/0.4504, allocations: 3.41 MB / 0.6304 GB, free: 5.422 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01159/0.462, allocations: 4.915 MB / 0.6352 GB, free: 500 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03023/0.4922, allocations: 23.29 MB / 0.658 GB, free: 9.129 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.4922, allocations: 0 / 0.658 GB, free: 9.129 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.4922, allocations: 0 / 0.658 GB, free: 9.129 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005457/0.4928, allocations: 0 / 0.658 GB, free: 9.129 MB / 446.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.04353/0.5363, allocations: 13.58 MB / 0.6712 GB, free: 11.45 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.17e-05/0.5364, allocations: 15.98 kB / 0.6712 GB, free: 11.44 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.000418/0.5368, allocations: 305.4 kB / 0.6715 GB, free: 11.14 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006571/0.5433, allocations: 1.621 MB / 0.6731 GB, free: 9.504 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03604/0.5794, allocations: 6.26 MB / 0.6792 GB, free: 3.23 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01686/0.5962, allocations: 7.386 MB / 0.6864 GB, free: 11.76 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008305/0.5971, allocations: 0.7304 MB / 0.6871 GB, free: 11.03 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003711/0.6008, allocations: 0.9647 MB / 0.6881 GB, free: 10.07 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04386/0.6446, allocations: 16.39 MB / 0.7041 GB, free: 9.582 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004839/0.6451, allocations: 23.89 kB / 0.7041 GB, free: 9.559 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003347/0.6485, allocations: 404 kB / 0.7045 GB, free: 9.164 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007326/0.6492, allocations: 0.571 MB / 0.7051 GB, free: 8.59 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03477/0.684, allocations: 15.2 MB / 0.7199 GB, free: 9.371 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1006/0.7845, allocations: 47.3 MB / 0.7661 GB, free: 9.039 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0177/0.8022, allocations: 8.644 MB / 0.7745 GB, free: 1.145 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.4087/1.211, allocations: 3.389 MB / 0.7778 GB, free: 163.2 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004464/1.211, allocations: 121.6 kB / 0.778 GB, free: 163.2 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.211e-05/1.211, allocations: 84.45 kB / 0.778 GB, free: 163.2 MB / 0.545 GB Notification: Performance of pre-optimization done (n=473): time 8.396e-06/1.211, allocations: 0 / 0.778 GB, free: 163.2 MB / 0.545 GB Warning: Function $DER$Modelica$PElectrical$PQuasiStatic$PPolyphase$PFunctions$PquasiRMS has not the expected inputs. Expected inputs are record Complex Real re; Real im; end Complex;[:]. Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: imc.is[3].im 2: imc.is[3].re 3: imc.is[2].im 4: imc.is[2].re 5: imc.is[1].im 6: imc.is[1].re Please use -d=bltdump for more information. Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: imc.rotorCage.omega Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=661): time 0.1892/1.401, allocations: 66.39 MB / 0.8429 GB, free: 128.8 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02765/1.428, allocations: 22.11 MB / 0.8645 GB, free: 106.2 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004946/1.433, allocations: 4.519 MB / 0.8689 GB, free: 101.7 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.000959/1.434, allocations: 133.7 kB / 0.869 GB, free: 101.6 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.00177/1.436, allocations: 4.331 MB / 0.8732 GB, free: 97.73 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001802/1.438, allocations: 2.325 MB / 0.8755 GB, free: 95.44 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002177/1.44, allocations: 1.498 MB / 0.877 GB, free: 93.94 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 3.359e-05/1.44, allocations: 313.1 kB / 0.8773 GB, free: 93.63 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00533/1.445, allocations: 4.353 MB / 0.8815 GB, free: 89.27 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006684/1.452, allocations: 6.65 MB / 0.888 GB, free: 81.66 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01337/1.465, allocations: 11.82 MB / 0.8996 GB, free: 68.82 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.362e-05/1.465, allocations: 20 kB / 0.8996 GB, free: 68.8 MB / 0.545 GB Notification: Performance of matching and sorting (n=1004) (initialization): time 0.02542/1.491, allocations: 15.17 MB / 0.9144 GB, free: 53.57 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 5.909e-05/1.491, allocations: 32 kB / 0.9144 GB, free: 53.54 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001057/1.491, allocations: 72.33 kB / 0.9145 GB, free: 53.46 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01096/1.502, allocations: 4.47 MB / 0.9189 GB, free: 48.99 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005601/1.508, allocations: 1.533 MB / 0.9204 GB, free: 47.46 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04523/1.553, allocations: 38.52 MB / 0.958 GB, free: 8.418 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00556/1.558, allocations: 427.5 kB / 0.9584 GB, free: 8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001305/1.56, allocations: 375.8 kB / 0.9587 GB, free: 7.633 MB / 0.545 GB 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 (789): * Single equations (assignments): 782 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(14,54,45.9%), (1,6,100.0%), (14,54,42.3%), (1,6,100.0%), (14,54,40.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008528/1.568, allocations: 4.114 MB / 0.9627 GB, free: 3.504 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001665/1.57, allocations: 0.5395 MB / 0.9633 GB, free: 2.961 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02993/1.6, allocations: 14.38 MB / 0.9773 GB, free: 4.461 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02791/1.628, allocations: 11.25 MB / 0.9883 GB, free: 9.129 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001263/1.628, allocations: 39.92 kB / 0.9883 GB, free: 9.09 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001652/1.628, allocations: 35.88 kB / 0.9884 GB, free: 9.055 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3062/1.934, allocations: 32.12 MB / 1.02 GB, free: 169.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.983e-05/1.934, allocations: 12.77 kB / 1.02 GB, free: 169.7 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004804/1.939, allocations: 0.9843 MB / 1.021 GB, free: 169.6 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01063/1.95, allocations: 3.815 MB / 1.024 GB, free: 168.8 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001296/1.951, allocations: 150 kB / 1.025 GB, free: 168.8 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03868/1.99, allocations: 30.67 MB / 1.055 GB, free: 151.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02527/2.015, allocations: 19.25 MB / 1.073 GB, free: 139.4 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03099/2.046, allocations: 18.26 MB / 1.091 GB, free: 122.9 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00409/2.05, allocations: 1.439 MB / 1.093 GB, free: 121.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001919/2.052, allocations: 128 kB / 1.093 GB, free: 121.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004193/2.056, allocations: 305.9 kB / 1.093 GB, free: 121.2 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00181/2.058, allocations: 0.5133 MB / 1.093 GB, free: 120.7 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000913/2.059, allocations: 199.9 kB / 1.094 GB, free: 120.5 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.004991/2.064, allocations: 3.115 MB / 1.097 GB, free: 117.4 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1e-07/2.064, allocations: 0 / 1.097 GB, free: 117.4 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.009105/2.073, allocations: 2.278 MB / 1.099 GB, free: 115.1 MB / 0.5763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 4 ($STATESET1.x,imc.inertiaRotor.w,imc.rotorCage.port_p.reference.gamma,sineVoltage.plug_p.reference.gamma) * 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 (508): * Single equations (assignments): 502 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(14,42,44.9%), (1,6,100.0%), (15,50,41.8%), (14,54,42.3%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.03274/2.106, allocations: 19.42 MB / 1.118 GB, free: 95.64 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.02234/2.128, allocations: 12.49 MB / 1.13 GB, free: 83.07 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.845e-05/2.128, allocations: 0 / 1.13 GB, free: 83.07 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.01385/2.142, allocations: 6.686 MB / 1.137 GB, free: 76.33 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007948/2.15, allocations: 1.117 MB / 1.138 GB, free: 75.25 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1266/2.276, allocations: 78.18 MB / 1.214 GB, free: 10.39 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01292/2.289, allocations: 6.54 MB / 1.22 GB, free: 3.805 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.006554/2.296, allocations: 2.266 MB / 1.223 GB, free: 1.531 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2394/2.535, allocations: 3.787 MB / 1.226 GB, free: 179.4 MB / 0.5919 GB Notification: Performance of SimCode: time 1.684e-06/2.535, allocations: 0 / 1.226 GB, free: 179.4 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2535/2.789, allocations: 194 MB / 1.416 GB, free: 25.89 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 35.23/38.02, allocations: 16 kB / 1.416 GB, free: 25.87 MB / 0.5919 GB " [Timeout remaining time 622] (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 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_InductionMachines_IMC_withLosses.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 88.71102956600953] Failed to read output from testmodel.py, exit status != 0: 38.322358423960395 38.34057212 37.844594343 Calling exit ...