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.001534/0.001534, allocations: 174.2 kB / 7.647 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06132/0.06132, allocations: 8.715 MB / 16.79 MB, free: 3.383 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.585/1.585, allocations: 221.5 MB / 240.9 MB, free: 13.13 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.0009855/0.0009855, allocations: 97.48 kB / 293.9 MB, free: 7.219 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.702e-05/1.702e-05, allocations: 0 / 354.7 MB, free: 15.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1234, allocations: 52.56 MB / 407.2 MB, free: 10.61 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4445/0.568, allocations: 150.8 MB / 0.545 GB, free: 15.65 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002118/0.5683, allocations: 79.14 kB / 0.545 GB, free: 15.58 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.841/2.409, allocations: 495.7 MB / 1.029 GB, free: 36.58 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.683e-06/2.409, allocations: 0 / 1.029 GB, free: 36.58 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001247/2.411, allocations: 352.7 kB / 1.029 GB, free: 36.53 MB / 474.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.05966/2.47, allocations: 14.78 MB / 1.044 GB, free: 31.27 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.594e-05/2.47, allocations: 15 kB / 1.044 GB, free: 31.27 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04344/2.514, allocations: 7.363 MB / 1.051 GB, free: 29.75 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03617/2.55, allocations: 12.53 MB / 1.063 GB, free: 19.23 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009875/2.551, allocations: 0.4953 MB / 1.064 GB, free: 18.74 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006675/2.558, allocations: 0.8663 MB / 1.065 GB, free: 17.88 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0489/2.607, allocations: 20.46 MB / 1.085 GB, free: 14.24 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4592/3.066, allocations: 22.39 MB / 1.107 GB, free: 42.05 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000633/3.067, allocations: 23.41 kB / 1.107 GB, free: 42.05 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004962/3.072, allocations: 13.72 kB / 1.107 GB, free: 42.05 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001364/3.073, allocations: 1.101 MB / 1.108 GB, free: 42.02 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1617/3.235, allocations: 79.22 MB / 1.185 GB, free: 21.87 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03352/3.268, allocations: 38.44 MB / 1.223 GB, free: 21.5 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01107/3.279, allocations: 7.24 MB / 1.23 GB, free: 18.7 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03537/3.315, allocations: 17.77 MB / 1.247 GB, free: 10.75 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008416/3.323, allocations: 5.26 MB / 1.252 GB, free: 8.641 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=717): time 1.387e-05/3.323, allocations: 0 / 1.252 GB, free: 8.641 MB / 0.5105 GB Notification: Performance of matching and sorting (n=725): time 0.06638/3.39, allocations: 29.38 MB / 1.281 GB, free: 11.73 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002609/3.39, allocations: 472.4 kB / 1.281 GB, free: 11.25 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01184/3.402, allocations: 4.855 MB / 1.286 GB, free: 9.363 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.00197/3.404, allocations: 33.39 kB / 1.286 GB, free: 9.328 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.008192/3.412, allocations: 6.503 MB / 1.292 GB, free: 4.527 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.004625/3.417, allocations: 2.307 MB / 1.295 GB, free: 2.73 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001168/3.418, allocations: 0 / 1.295 GB, free: 2.73 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0006995/3.419, allocations: 0.6717 MB / 1.295 GB, free: 2.258 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01214/3.431, allocations: 5.134 MB / 1.3 GB, free: 0 / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4234/3.854, allocations: 7.536 MB / 1.308 GB, free: 94.79 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01381/3.868, allocations: 7.645 MB / 1.315 GB, free: 94.68 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001574/3.868, allocations: 29.48 kB / 1.315 GB, free: 94.68 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1154) (initialization): time 0.03814/3.906, allocations: 16.16 MB / 1.331 GB, free: 94.22 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001289/3.907, allocations: 43.09 kB / 1.331 GB, free: 94.22 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002018/3.907, allocations: 88.83 kB / 1.331 GB, free: 94.21 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006909/3.914, allocations: 2.81 MB / 1.334 GB, free: 94.14 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008366/3.922, allocations: 1.87 MB / 1.336 GB, free: 94.14 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03857/3.961, allocations: 29.65 MB / 1.365 GB, free: 86.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00958/3.97, allocations: 479.1 kB / 1.365 GB, free: 86.52 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002231/3.973, allocations: 404.1 kB / 1.365 GB, free: 86.52 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,32.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.001981/3.975, allocations: 390.9 kB / 1.366 GB, free: 86.4 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0295/4.004, allocations: 13.04 MB / 1.379 GB, free: 85.65 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003287/4.008, allocations: 0.668 MB / 1.379 GB, free: 85.65 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02986/4.037, allocations: 14.27 MB / 1.393 GB, free: 80.36 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.746e-05/4.038, allocations: 76.72 kB / 1.393 GB, free: 80.36 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.467e-05/4.038, allocations: 33.97 kB / 1.393 GB, free: 80.36 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001667/4.038, allocations: 34.88 kB / 1.393 GB, free: 80.36 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06109/4.099, allocations: 27.02 MB / 1.42 GB, free: 69.72 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.761e-05/4.099, allocations: 7.625 kB / 1.42 GB, free: 69.72 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005682/4.105, allocations: 1.133 MB / 1.421 GB, free: 69.68 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007389/4.112, allocations: 2.837 MB / 1.424 GB, free: 68.18 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001861/4.114, allocations: 61.17 kB / 1.424 GB, free: 68.13 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03536/4.149, allocations: 32.1 MB / 1.455 GB, free: 38.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.269e-05/4.149, allocations: 15.25 kB / 1.455 GB, free: 38.69 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03599/4.185, allocations: 21.56 MB / 1.476 GB, free: 19.7 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006407/4.192, allocations: 1.815 MB / 1.478 GB, free: 18.09 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003414/4.195, allocations: 23.28 kB / 1.478 GB, free: 18.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006817/4.202, allocations: 386.5 kB / 1.478 GB, free: 17.84 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002937/4.205, allocations: 0.643 MB / 1.479 GB, free: 17.43 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009371/4.206, allocations: 209.8 kB / 1.479 GB, free: 17.24 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00666/4.213, allocations: 3.583 MB / 1.482 GB, free: 14.13 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.81e-07/4.213, allocations: 0 / 1.482 GB, free: 14.13 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01577/4.229, allocations: 2.585 MB / 1.485 GB, free: 11.55 MB / 0.5261 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.8%) 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.4909/4.72, allocations: 24.65 MB / 1.509 GB, free: 87.36 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02484/4.745, allocations: 12.96 MB / 1.522 GB, free: 86.32 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.634e-05/4.745, allocations: 5.031 kB / 1.522 GB, free: 86.32 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0169/4.762, allocations: 8.16 MB / 1.53 GB, free: 85.27 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01208/4.774, allocations: 1.391 MB / 1.531 GB, free: 85.25 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07492/4.849, allocations: 28.79 MB / 1.559 GB, free: 80.46 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02284/4.872, allocations: 10.14 MB / 1.569 GB, free: 79.25 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01236/4.884, allocations: 2.945 MB / 1.572 GB, free: 78.99 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01228/4.896, allocations: 5.696 MB / 1.578 GB, free: 77.96 MB / 0.5261 GB Notification: Performance of SimCode: time 1.853e-06/4.896, allocations: 0 / 1.578 GB, free: 77.96 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6612/5.558, allocations: 212.8 MB / 1.785 GB, free: 75.42 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001997/5.558, allocations: 123.4 kB / 1.785 GB, free: 75.23 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.139/14.7, allocations: 0 / 1.785 GB, free: 75.23 MB / 0.5261 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)