Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.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.SynchronousMachines.SMR_Inverter,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMR_Inverter,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter",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.00124/0.00124, allocations: 174.6 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.04118/0.04118, allocations: 8.7 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.446/1.446, allocations: 221.4 MB / 246 MB, free: 3.555 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.0009685/0.0009687, allocations: 96.94 kB / 299.1 MB, free: 2.996 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.447e-05/3.455e-05, allocations: 4 kB / 359.6 MB, free: 6.438 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2596/0.2597, allocations: 52.54 MB / 412.2 MB, free: 22.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4134/0.6732, allocations: 110.1 MB / 0.51 GB, free: 42.46 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003056/0.6736, allocations: 72.94 kB / 0.5101 GB, free: 42.46 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1693/0.8428, allocations: 78.98 MB / 0.5872 GB, free: 8.309 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.8429, allocations: 0 / 0.5872 GB, free: 8.309 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000233/0.8431, allocations: 79.88 kB / 0.5873 GB, free: 8.23 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.0087/0.8519, allocations: 3.097 MB / 0.5903 GB, free: 5.07 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.422e-05/0.8519, allocations: 12.02 kB / 0.5903 GB, free: 5.059 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001506/0.8534, allocations: 0.4896 MB / 0.5908 GB, free: 4.555 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004067/0.8575, allocations: 0.6867 MB / 0.5915 GB, free: 3.863 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008125/0.8657, allocations: 3.229 MB / 0.5946 GB, free: 0.5742 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000171/0.8659, allocations: 234.3 kB / 0.5949 GB, free: 352 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009157/0.8668, allocations: 323.9 kB / 0.5952 GB, free: 28 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008303/0.8751, allocations: 4.014 MB / 0.5991 GB, free: 11.88 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.171e-05/0.8752, allocations: 4 kB / 0.5991 GB, free: 11.88 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003356/0.8756, allocations: 139.9 kB / 0.5992 GB, free: 11.74 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001411/0.8757, allocations: 134.3 kB / 0.5994 GB, free: 11.61 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006543/0.8823, allocations: 3.168 MB / 0.6024 GB, free: 8.43 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02431/0.9066, allocations: 13.22 MB / 0.6154 GB, free: 10.8 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005583/0.9123, allocations: 5.433 MB / 0.6207 GB, free: 4.621 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001826/0.9141, allocations: 1.033 MB / 0.6217 GB, free: 3.582 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00566/0.9198, allocations: 3.036 MB / 0.6246 GB, free: 472 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.375e-05/0.9199, allocations: 47.56 kB / 0.6247 GB, free: 416 kB / 410.7 MB Notification: Performance of pre-optimization done (n=105): time 3.626e-06/0.9199, allocations: 0 / 0.6247 GB, free: 416 kB / 410.7 MB Notification: Performance of matching and sorting (n=108): time 0.006369/0.9263, allocations: 3.372 MB / 0.628 GB, free: 12.93 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.629e-05/0.9264, allocations: 64.41 kB / 0.628 GB, free: 12.85 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002555/0.929, allocations: 1.37 MB / 0.6294 GB, free: 11.48 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001903/0.9292, allocations: 45.7 kB / 0.6294 GB, free: 11.43 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001119/0.9303, allocations: 1.425 MB / 0.6308 GB, free: 9.98 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004169/0.9307, allocations: 386.5 kB / 0.6312 GB, free: 9.598 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.005e-05/0.9308, allocations: 28 kB / 0.6312 GB, free: 9.57 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001758/0.931, allocations: 361.9 kB / 0.6315 GB, free: 9.211 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008777/0.9319, allocations: 0.5232 MB / 0.6321 GB, free: 8.688 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001213/0.9331, allocations: 1.009 MB / 0.633 GB, free: 7.465 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001165/0.9343, allocations: 0.7192 MB / 0.6337 GB, free: 6.746 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.438e-06/0.9343, allocations: 4 kB / 0.6338 GB, free: 6.742 MB / 426.7 MB Notification: Performance of matching and sorting (n=190) (initialization): time 0.003384/0.9377, allocations: 1.944 MB / 0.6357 GB, free: 4.762 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.378e-05/0.9377, allocations: 15.95 kB / 0.6357 GB, free: 4.746 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.334e-05/0.9378, allocations: 16 kB / 0.6357 GB, free: 4.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003897/0.9382, allocations: 134.5 kB / 0.6358 GB, free: 4.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001396/0.9396, allocations: 371.5 kB / 0.6362 GB, free: 4.227 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002733/0.9423, allocations: 3.083 MB / 0.6392 GB, free: 0.8711 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001434/0.9438, allocations: 67.97 kB / 0.6392 GB, free: 0.8047 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001135/0.9439, allocations: 68 kB / 0.6393 GB, free: 0.7383 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (183): * Single equations (assignments): 180 * 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: 2 * 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: 2 {(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002901/0.9442, allocations: 204.5 kB / 0.6395 GB, free: 0.5312 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002644/0.9445, allocations: 174 kB / 0.6397 GB, free: 368 kB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003283/0.9478, allocations: 1.716 MB / 0.6413 GB, free: 14.58 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.016e-05/0.9478, allocations: 12 kB / 0.6414 GB, free: 14.57 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.316e-06/0.9478, allocations: 8 kB / 0.6414 GB, free: 14.56 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.303e-05/0.9478, allocations: 7.969 kB / 0.6414 GB, free: 14.55 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007507/0.9553, allocations: 4.237 MB / 0.6455 GB, free: 10.19 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.9554, allocations: 0 / 0.6455 GB, free: 10.19 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008581/0.9562, allocations: 184 kB / 0.6457 GB, free: 10.01 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008488/0.9571, allocations: 315.2 kB / 0.646 GB, free: 9.688 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.024e-05/0.9572, allocations: 27.98 kB / 0.646 GB, free: 9.66 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007295/0.9645, allocations: 7.462 MB / 0.6533 GB, free: 1.664 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/0.9646, allocations: 4.031 kB / 0.6533 GB, free: 1.66 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004321/0.9689, allocations: 2.516 MB / 0.6558 GB, free: 15.02 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001068/0.97, allocations: 362.9 kB / 0.6561 GB, free: 14.64 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002633/0.9703, allocations: 24 kB / 0.6561 GB, free: 14.62 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008109/0.9711, allocations: 67.95 kB / 0.6562 GB, free: 14.55 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002429/0.9713, allocations: 80.88 kB / 0.6563 GB, free: 14.47 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.421e-05/0.9714, allocations: 35.98 kB / 0.6563 GB, free: 14.44 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001866/0.9733, allocations: 1.047 MB / 0.6573 GB, free: 13.39 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.9733, allocations: 4 kB / 0.6573 GB, free: 13.39 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002222/0.9755, allocations: 0.5468 MB / 0.6579 GB, free: 12.84 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (smr.inertiaRotor.w,smr.stator.core.Phi.re,smr.stator.core.Phi.im,smr.stator.zeroInductor.i0,smr.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004756/0.9803, allocations: 3.811 MB / 0.6616 GB, free: 8.914 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002764/0.9831, allocations: 1.621 MB / 0.6632 GB, free: 7.25 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.9831, allocations: 4.375 kB / 0.6632 GB, free: 7.246 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001744/0.9849, allocations: 1.16 MB / 0.6643 GB, free: 6.035 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0025/0.9874, allocations: 473 kB / 0.6648 GB, free: 5.578 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01097/0.9984, allocations: 5.14 MB / 0.6698 GB, free: 372 kB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2788/1.277, allocations: 2.281 MB / 0.672 GB, free: 100.3 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001803/1.279, allocations: 371 kB / 0.6724 GB, free: 100.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00147/1.281, allocations: 1.099 MB / 0.6734 GB, free: 100.3 MB / 458.7 MB Notification: Performance of SimCode: time 1.212e-06/1.281, allocations: 3.375 kB / 0.6734 GB, free: 100.3 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08106/1.362, allocations: 47.88 MB / 0.7202 GB, free: 98.01 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001578/1.362, allocations: 168.5 kB / 0.7204 GB, free: 97.79 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.492/4.854, allocations: 0 / 0.7204 GB, free: 97.79 MB / 458.7 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe 2>&1)