Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_YD.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) Ignoring simflag -noemit -jacobian= since it seems broken on HelloWorld Running command: "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_YD,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_YD,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_YD",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.001568/0.001568, allocations: 174.7 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0581/0.0581, allocations: 8.702 MB / 21.96 MB, free: 3.367 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.487/1.487, allocations: 221.4 MB / 246 MB, free: 3.543 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.000891/0.0008908, allocations: 96.41 kB / 299.1 MB, free: 2.988 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.881e-05/4.912e-05, allocations: 4 kB / 362.1 MB, free: 3.934 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2882/0.2883, allocations: 52.53 MB / 414.6 MB, free: 22.17 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.465/0.7533, allocations: 151.5 MB / 0.5528 GB, free: 31.71 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002079/0.7536, allocations: 74.09 kB / 0.5529 GB, free: 31.71 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.164/2.918, allocations: 0.4895 GB / 1.042 GB, free: 16.81 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.984e-06/2.918, allocations: 0 / 1.042 GB, free: 16.81 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.001461/2.919, allocations: 346.5 kB / 1.043 GB, free: 16.78 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4252 * Number of variables: 4252 Notification: Performance of Generate backend data structure: time 0.06264/2.982, allocations: 14.81 MB / 1.057 GB, free: 12.15 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.47e-05/2.982, allocations: 10.91 kB / 1.057 GB, free: 12.15 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01186/2.994, allocations: 2.159 MB / 1.059 GB, free: 12.01 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04411/3.038, allocations: 7.377 MB / 1.066 GB, free: 11.13 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04124/3.08, allocations: 12.53 MB / 1.079 GB, free: 9.695 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002143/3.082, allocations: 1.122 MB / 1.08 GB, free: 9.664 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009937/3.092, allocations: 1.471 MB / 1.081 GB, free: 9.656 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08694/3.179, allocations: 24.84 MB / 1.106 GB, free: 7.848 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001211/3.18, allocations: 26.61 kB / 1.106 GB, free: 7.84 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007927/3.188, allocations: 0.6254 MB / 1.106 GB, free: 7.84 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001774/3.19, allocations: 1.093 MB / 1.107 GB, free: 7.805 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05928/3.249, allocations: 22.4 MB / 1.129 GB, free: 7.664 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1805/3.43, allocations: 80.93 MB / 1.208 GB, free: 13.76 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4872/3.917, allocations: 38.97 MB / 1.246 GB, free: 41.44 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01324/3.93, allocations: 7.26 MB / 1.253 GB, free: 41.33 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03978/3.97, allocations: 17.34 MB / 1.27 GB, free: 40.55 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008134/3.978, allocations: 5.184 MB / 1.275 GB, free: 40.24 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=717): time 1.38e-05/3.978, allocations: 0 / 1.275 GB, free: 40.24 MB / 0.5261 GB Notification: Performance of matching and sorting (n=725): time 0.0517/4.03, allocations: 25.26 MB / 1.3 GB, free: 35.8 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001842/4.03, allocations: 475.3 kB / 1.3 GB, free: 35.33 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0115/4.042, allocations: 5.584 MB / 1.306 GB, free: 34.89 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001652/4.043, allocations: 151.5 kB / 1.306 GB, free: 34.86 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.007001/4.05, allocations: 6.499 MB / 1.312 GB, free: 31.6 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.003336/4.054, allocations: 2.408 MB / 1.315 GB, free: 30.09 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001042/4.055, allocations: 180.5 kB / 1.315 GB, free: 30.09 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0005445/4.055, allocations: 0.6675 MB / 1.316 GB, free: 29.77 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007258/4.063, allocations: 4.643 MB / 1.32 GB, free: 29.74 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01111/4.074, allocations: 7.496 MB / 1.327 GB, free: 26.46 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009658/4.083, allocations: 6.133 MB / 1.333 GB, free: 26.33 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001332/4.084, allocations: 23.5 kB / 1.333 GB, free: 26.33 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1154) (initialization): time 0.02974/4.113, allocations: 15.21 MB / 1.348 GB, free: 24.63 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001003/4.114, allocations: 40.78 kB / 1.348 GB, free: 24.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001809/4.114, allocations: 84.12 kB / 1.348 GB, free: 24.63 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007469/4.121, allocations: 2.894 MB / 1.351 GB, free: 23.86 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008165/4.129, allocations: 1.81 MB / 1.353 GB, free: 23.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03447/4.164, allocations: 30.59 MB / 1.383 GB, free: 5.641 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00887/4.173, allocations: 0.5836 MB / 1.383 GB, free: 5.488 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002139/4.175, allocations: 405.8 kB / 1.384 GB, free: 5.418 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 390 * Number of states: 0 () * Number of discrete variables: 48 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,switchYDQS.idealCloser.control[1],switchYDQS.idealCloser.control[2],switchYDQS.idealCloser.control[3],switchYDQS.idealOpener.control[1],switchYDQS.idealOpener.control[2],switchYDQS.idealOpener.control[3],$PRE.switchYDQS.logicalDelay[1].tSwitch,switchYDQS.logicalDelay[1].tSwitch,$PRE.switchYDQS.logicalDelay[2].tSwitch,switchYDQS.logicalDelay[2].tSwitch,$PRE.switchYDQS.logicalDelay[3].tSwitch,switchYDQS.logicalDelay[3].tSwitch,booleanStepYDQS[1].y,booleanStepYDQS[2].y,booleanStepYDQS[3].y,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[3].tSwitch,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (966): * Single equations (assignments): 959 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 6 * 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: 6 {(1,100.0%) 1,(24,31.8%) 108,(1,100.0%) 8,(9,33.3%) 25,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002857/4.178, allocations: 0.6713 MB / 1.384 GB, free: 4.996 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002155/4.18, allocations: 0.706 MB / 1.385 GB, free: 4.621 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02792/4.208, allocations: 13.21 MB / 1.398 GB, free: 11.12 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.61e-05/4.208, allocations: 72 kB / 1.398 GB, free: 11.05 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001121/4.208, allocations: 35.88 kB / 1.398 GB, free: 11.02 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001863/4.208, allocations: 36.7 kB / 1.398 GB, free: 11.02 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06675/4.275, allocations: 27.65 MB / 1.425 GB, free: 4.844 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.937e-05/4.275, allocations: 7.656 kB / 1.425 GB, free: 4.84 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005765/4.281, allocations: 1.071 MB / 1.426 GB, free: 4.012 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008111/4.289, allocations: 2.934 MB / 1.429 GB, free: 1.723 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001487/4.291, allocations: 168.4 kB / 1.429 GB, free: 1.574 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4603/4.751, allocations: 33.04 MB / 1.462 GB, free: 75.96 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.552e-06/4.751, allocations: 11 kB / 1.462 GB, free: 75.96 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03226/4.783, allocations: 20.05 MB / 1.481 GB, free: 73.56 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006274/4.79, allocations: 1.804 MB / 1.483 GB, free: 73.46 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00264/4.792, allocations: 139.7 kB / 1.483 GB, free: 73.46 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005687/4.798, allocations: 444.6 kB / 1.483 GB, free: 73.46 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002046/4.8, allocations: 0.6474 MB / 1.484 GB, free: 73.45 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007855/4.801, allocations: 207.6 kB / 1.484 GB, free: 73.45 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.008355/4.809, allocations: 4.214 MB / 1.488 GB, free: 73.2 MB / 0.5573 GB Notification: Performance of sort global known variables: time 6.31e-07/4.809, allocations: 0 / 1.488 GB, free: 73.2 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01676/4.826, allocations: 2.922 MB / 1.491 GB, free: 73.2 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 42 (booleanStepYDQS[3].y,booleanStepYDQS[2].y,booleanStepYDQS[1].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,switchYDQS.idealCloser.control[1],switchYDQS.idealCloser.control[2],switchYDQS.idealCloser.control[3],switchYDQS.idealOpener.control[1],switchYDQS.idealOpener.control[2],switchYDQS.idealOpener.control[3],switchYDQS.logicalDelay[1].tSwitch,switchYDQS.logicalDelay[2].tSwitch,switchYDQS.logicalDelay[3].tSwitch,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (576): * Single equations (assignments): 562 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 1,(24,31.9%) 108,(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 25,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03544/4.861, allocations: 22.44 MB / 1.513 GB, free: 69.22 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.02393/4.885, allocations: 13.03 MB / 1.526 GB, free: 68.06 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.441e-05/4.886, allocations: 7 kB / 1.526 GB, free: 68.06 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01445/4.9, allocations: 8.157 MB / 1.534 GB, free: 66.86 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01067/4.911, allocations: 1.755 MB / 1.536 GB, free: 66.83 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07272/4.983, allocations: 29.12 MB / 1.564 GB, free: 57.4 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01682/5, allocations: 10.14 MB / 1.574 GB, free: 51.14 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.01028/5.011, allocations: 2.969 MB / 1.577 GB, free: 49.19 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01139/5.022, allocations: 5.684 MB / 1.582 GB, free: 43.89 MB / 0.5573 GB Notification: Performance of SimCode: time 1.463e-06/5.022, allocations: 0 / 1.582 GB, free: 43.89 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7021/5.724, allocations: 231.5 MB / 1.808 GB, free: 11.66 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001543/5.724, allocations: 164 kB / 1.809 GB, free: 11.43 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.22/15.95, allocations: 0 / 1.809 GB, free: 11.43 MB / 0.5573 GB (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_YD.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_YD.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_YD.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_InductionMachines_IMC_YD.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_YD.pipe 2>&1)