Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.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.001822/0.001822, allocations: 113 kB / 18.49 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] 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.002222/0.002222, allocations: 217.4 kB / 21.46 MB, free: 1.586 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.45/1.45, allocations: 230.6 MB / 254.8 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] 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 Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001489/0.001489, allocations: 51.92 kB / 373.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1144, allocations: 53.33 MB / 427 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.2201/0.3345, allocations: 10.37 MB / 437.4 MB, free: 5.898 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005496/0.34, allocations: 3.294 MB / 440.7 MB, free: 4.238 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001332/0.3413, allocations: 73 kB / 440.8 MB, free: 4.207 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001823/0.3432, allocations: 0.7341 MB / 441.5 MB, free: 3.816 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002698/0.3459, allocations: 0.9153 MB / 442.4 MB, free: 3.242 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009912/0.3468, allocations: 425.7 kB / 442.8 MB, free: 2.977 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004081/0.3509, allocations: 3.418 MB / 446.3 MB, free: 1.277 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002413/0.3533, allocations: 1.877 MB / 448.1 MB, free: 460 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002958/0.3563, allocations: 1.563 MB / 449.7 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00366/0.36, allocations: 1.904 MB / 451.6 MB, free: 14.83 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008162/0.3608, allocations: 397.2 kB / 452 MB, free: 14.83 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001525/0.3623, allocations: 0.4905 MB / 452.5 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001417/0.3637, allocations: 1.116 MB / 453.6 MB, free: 14.19 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003109/0.3668, allocations: 1.774 MB / 455.4 MB, free: 13.04 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007348/0.3742, allocations: 5.255 MB / 460.6 MB, free: 10.02 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.009e-05/0.3742, allocations: 6.078 kB / 460.6 MB, free: 10.02 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3742, allocations: 0 / 460.6 MB, free: 10.02 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001828/0.3744, allocations: 0 / 460.6 MB, free: 10.02 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: 658 * Number of variables: 658 Notification: Performance of Generate backend data structure: time 0.009762/0.3841, allocations: 3.616 MB / 464.2 MB, free: 7.516 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.397e-05/0.3842, allocations: 13.38 kB / 464.3 MB, free: 7.512 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001213/0.3843, allocations: 66.77 kB / 464.3 MB, free: 7.504 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007064/0.385, allocations: 378.5 kB / 464.7 MB, free: 7.223 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001554/0.3866, allocations: 402.4 kB / 465.1 MB, free: 7.023 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004509/0.3911, allocations: 1.952 MB / 467 MB, free: 5.652 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000219/0.3913, allocations: 194.7 kB / 467.2 MB, free: 5.562 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005699/0.3919, allocations: 259.6 kB / 467.5 MB, free: 5.473 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007135/0.399, allocations: 3.537 MB / 471 MB, free: 3.332 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.136e-05/0.3991, allocations: 16.33 kB / 471 MB, free: 3.32 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002819/0.3994, allocations: 105.5 kB / 471.1 MB, free: 3.238 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001187/0.3995, allocations: 111.5 kB / 471.2 MB, free: 3.223 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006017/0.4055, allocations: 3.091 MB / 474.3 MB, free: 1.336 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01979/0.4253, allocations: 10.77 MB / 485.1 MB, free: 6.324 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003796/0.4291, allocations: 2.952 MB / 488.1 MB, free: 3.176 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002287/0.4314, allocations: 1.302 MB / 489.4 MB, free: 1.875 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002743/0.4316, allocations: 126.4 kB / 489.5 MB, free: 1.734 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00185/0.4335, allocations: 1.156 MB / 490.6 MB, free: 0.5469 MB / 382.1 MB Notification: Performance of pre-optimization done (n=156): time 3.647e-06/0.4335, allocations: 0 / 490.6 MB, free: 0.5469 MB / 382.1 MB Notification: Performance of matching and sorting (n=172): time 0.02146/0.4549, allocations: 8.893 MB / 499.5 MB, free: 7.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001398/0.4551, allocations: 188.2 kB / 499.7 MB, free: 7.281 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003056/0.4581, allocations: 1.848 MB / 0.4898 GB, free: 5.434 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002563/0.4584, allocations: 61.64 kB / 0.4899 GB, free: 5.367 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001307/0.4597, allocations: 1.226 MB / 0.4911 GB, free: 4.129 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006925/0.4604, allocations: 0.5888 MB / 0.4916 GB, free: 3.535 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00063/0.461, allocations: 355.5 kB / 0.492 GB, free: 3.18 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.4612, allocations: 301.1 kB / 0.4923 GB, free: 2.883 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001755/0.4629, allocations: 1.003 MB / 0.4932 GB, free: 1.879 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002102/0.465, allocations: 1.43 MB / 0.4946 GB, free: 296 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003828/0.4688, allocations: 2.457 MB / 0.497 GB, free: 13.68 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.456e-06/0.4689, allocations: 4 kB / 0.497 GB, free: 13.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.006218/0.4751, allocations: 3.316 MB / 0.5003 GB, free: 10.34 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.055e-05/0.4751, allocations: 8 kB / 0.5003 GB, free: 10.33 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.355e-05/0.4751, allocations: 15.94 kB / 0.5003 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002234/0.4774, allocations: 0.8903 MB / 0.5012 GB, free: 9.414 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001358/0.4787, allocations: 335.5 kB / 0.5015 GB, free: 9.086 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01317/0.4919, allocations: 10.43 MB / 0.5117 GB, free: 14.23 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00199/0.4939, allocations: 127.9 kB / 0.5118 GB, free: 14.11 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002162/0.4941, allocations: 75.98 kB / 0.5119 GB, free: 14.04 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 24 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[1].y,switchYD.logicalDelay[3].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.idealOpener.control[3],switchYD.idealOpener.control[2],switchYD.idealOpener.control[1],switchYD.idealCloser.control[3],switchYD.idealCloser.control[2],switchYD.idealCloser.control[1],idealCloser.control[3],idealCloser.control[2],idealCloser.control[1],$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (185): * Single equations (assignments): 180 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,12,100.0%), (9,25,33.3%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001863/0.496, allocations: 0.9292 MB / 0.5128 GB, free: 13.1 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000551/0.4965, allocations: 218.6 kB / 0.513 GB, free: 12.88 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00593/0.5024, allocations: 3.095 MB / 0.516 GB, free: 9.758 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.776e-05/0.5025, allocations: 16 kB / 0.516 GB, free: 9.742 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.711e-05/0.5025, allocations: 8 kB / 0.516 GB, free: 9.734 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.913e-05/0.5025, allocations: 7.969 kB / 0.516 GB, free: 9.727 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01233/0.5148, allocations: 6.19 MB / 0.5221 GB, free: 3.426 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-05/0.5148, allocations: 4.281 kB / 0.5221 GB, free: 3.422 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009687/0.5158, allocations: 211.7 kB / 0.5223 GB, free: 3.215 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002518/0.5183, allocations: 0.9403 MB / 0.5232 GB, free: 2.262 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001774/0.5185, allocations: 43.97 kB / 0.5233 GB, free: 2.219 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01461/0.5331, allocations: 12.02 MB / 0.535 GB, free: 5.637 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.5331, allocations: 3.938 kB / 0.535 GB, free: 5.633 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007723/0.5408, allocations: 4.5 MB / 0.5394 GB, free: 1.074 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001309/0.5421, allocations: 0.4995 MB / 0.5399 GB, free: 0.5547 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003927/0.5425, allocations: 39.98 kB / 0.5399 GB, free: 0.5156 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001096/0.5436, allocations: 103.8 kB / 0.54 GB, free: 424 kB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005009/0.5441, allocations: 193 kB / 0.5402 GB, free: 232 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000113/0.5442, allocations: 48.36 kB / 0.5402 GB, free: 184 kB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002069/0.5463, allocations: 1.271 MB / 0.5415 GB, free: 14.92 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5463, allocations: 0 / 0.5415 GB, free: 14.92 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002398/0.5487, allocations: 0.6367 MB / 0.5421 GB, free: 14.28 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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],quadraticLoadTorque.phi) * Number of discrete variables: 21 (booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[3].tSwitch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (123): * Single equations (assignments): 115 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,12,100.0%), (1,1,100.0%), (9,25,33.3%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008127/0.5568, allocations: 5.165 MB / 0.5471 GB, free: 9.043 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005554/0.5624, allocations: 3.159 MB / 0.5502 GB, free: 5.801 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.5624, allocations: 1.938 kB / 0.5502 GB, free: 5.801 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003689/0.5661, allocations: 2.171 MB / 0.5524 GB, free: 3.551 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003004/0.5691, allocations: 0.5803 MB / 0.5529 GB, free: 2.984 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03962/0.6087, allocations: 22.46 MB / 0.5749 GB, free: 11.95 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002352/0.6111, allocations: 2.184 MB / 0.577 GB, free: 9.734 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001466/0.6125, allocations: 457.6 kB / 0.5774 GB, free: 9.285 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0016/0.6141, allocations: 1.015 MB / 0.5784 GB, free: 8.27 MB / 494.1 MB Notification: Performance of SimCode: time 1.182e-06/0.6141, allocations: 0 / 0.5784 GB, free: 8.27 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3199/0.934, allocations: 60.39 MB / 0.6374 GB, free: 168.4 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.01/14.95, allocations: 10.48 kB / 0.6374 GB, free: 168.4 MB / 0.5137 GB " [Timeout remaining time 645] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD_fmu --startTime=0 --stopTime=2.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.57270116294967] Failed to read output from testmodel.py, exit status != 0: ['time', 'aimc.is[1]', 'aimc.is[2]', 'aimc.idq_rr[1]', 'aimc.idq_rr[2]', 'aimc.idq_sr[1]', 'aimc.idq_sr[2]', 'loadInertia.phi', 'loadInertia.w'] 15.121334656956606 15.13741169 14.760678822000001 Calling exit ...