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.005311/0.005311, allocations: 169.5 kB / 15.11 MB, free: 5.984 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03683/0.03683, allocations: 8.793 MB / 24.65 MB, free: 4.121 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.329/1.329, allocations: 223.2 MB / 250.7 MB, free: 6.465 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.0009328/0.0009328, allocations: 94.3 kB / 304 MB, free: 4.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003768/0.0003769, allocations: 8 kB / 367.2 MB, free: 4.852 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2608/0.2612, allocations: 52.54 MB / 419.7 MB, free: 48.09 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1325/0.3937, allocations: 110.2 MB / 0.5175 GB, free: 10.84 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002893/0.3941, allocations: 77.72 kB / 0.5175 GB, free: 10.77 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4048/0.7988, allocations: 78.95 MB / 0.5946 GB, free: 96.29 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.165e-06/0.7989, allocations: 0 / 0.5946 GB, free: 96.29 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003429/0.7993, allocations: 81.47 kB / 0.5947 GB, free: 96.27 MB / 426.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.01131/0.8106, allocations: 3.387 MB / 0.598 GB, free: 94.54 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.381e-05/0.8107, allocations: 11.75 kB / 0.598 GB, free: 94.54 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00199/0.8127, allocations: 498.4 kB / 0.5985 GB, free: 94.27 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004213/0.8169, allocations: 0.6991 MB / 0.5992 GB, free: 94.03 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009517/0.8264, allocations: 3.256 MB / 0.6024 GB, free: 92.46 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002923/0.8268, allocations: 243.6 kB / 0.6026 GB, free: 92.35 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001536/0.8283, allocations: 308.8 kB / 0.6029 GB, free: 92.25 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01078/0.8391, allocations: 4.108 MB / 0.6069 GB, free: 90.29 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001365/0.8393, allocations: 11.45 kB / 0.6069 GB, free: 90.28 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008084/0.8401, allocations: 132.6 kB / 0.607 GB, free: 90.18 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001474/0.8403, allocations: 138 kB / 0.6072 GB, free: 90.17 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007595/0.8479, allocations: 3.283 MB / 0.6104 GB, free: 88.8 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0233/0.8712, allocations: 13.24 MB / 0.6233 GB, free: 80.13 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00447/0.8757, allocations: 5.526 MB / 0.6287 GB, free: 73.89 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004644/0.8804, allocations: 2.742 MB / 0.6314 GB, free: 71.1 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.855e-05/0.8805, allocations: 43.56 kB / 0.6314 GB, free: 71.05 MB / 426.7 MB Notification: Performance of pre-optimization done (n=112): time 2.875e-06/0.8805, allocations: 4 kB / 0.6314 GB, free: 71.04 MB / 426.7 MB Notification: Performance of matching and sorting (n=115): time 0.008798/0.8893, allocations: 4.73 MB / 0.6361 GB, free: 66.14 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.856e-05/0.8894, allocations: 68.34 kB / 0.6361 GB, free: 66.06 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0024/0.8918, allocations: 1.386 MB / 0.6375 GB, free: 64.67 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.816e-05/0.8919, allocations: 45.7 kB / 0.6375 GB, free: 64.62 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007244/0.8926, allocations: 1.414 MB / 0.6389 GB, free: 63.19 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002769/0.8929, allocations: 409.8 kB / 0.6393 GB, free: 62.79 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.384e-05/0.893, allocations: 28 kB / 0.6393 GB, free: 62.77 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.835e-05/0.8931, allocations: 365.9 kB / 0.6397 GB, free: 62.4 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008971/0.894, allocations: 0.5895 MB / 0.6402 GB, free: 61.81 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001083/0.8951, allocations: 1.053 MB / 0.6413 GB, free: 60.55 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001111/0.8962, allocations: 0.7871 MB / 0.642 GB, free: 59.76 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.398e-06/0.8963, allocations: 4 kB / 0.642 GB, free: 59.76 MB / 426.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.003025/0.8993, allocations: 2.076 MB / 0.6441 GB, free: 57.64 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.362e-05/0.8993, allocations: 12.78 kB / 0.6441 GB, free: 57.63 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.556e-05/0.8994, allocations: 16 kB / 0.6441 GB, free: 57.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003828/0.8998, allocations: 142.8 kB / 0.6442 GB, free: 57.47 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001308/0.9011, allocations: 371.4 kB / 0.6446 GB, free: 57.11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001915/0.903, allocations: 3.112 MB / 0.6476 GB, free: 53.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001369/0.9044, allocations: 84.02 kB / 0.6477 GB, free: 53.65 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001198/0.9045, allocations: 64 kB / 0.6478 GB, free: 53.59 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (188): * Single equations (assignments): 185 * 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%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001786/0.9063, allocations: 0.9578 MB / 0.6487 GB, free: 52.62 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003947/0.9067, allocations: 173.8 kB / 0.6489 GB, free: 52.45 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003101/0.9098, allocations: 1.868 MB / 0.6507 GB, free: 50.52 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.746e-06/0.9099, allocations: 8 kB / 0.6507 GB, free: 50.51 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.547e-05/0.9099, allocations: 8 kB / 0.6507 GB, free: 50.5 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.102e-05/0.9099, allocations: 11.48 kB / 0.6507 GB, free: 50.49 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007843/0.9178, allocations: 4.449 MB / 0.6551 GB, free: 45.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.047e-06/0.9178, allocations: 3.938 kB / 0.6551 GB, free: 45.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008834/0.9187, allocations: 199.9 kB / 0.6553 GB, free: 45.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008363/0.9196, allocations: 307.1 kB / 0.6555 GB, free: 45.42 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.8e-05/0.9197, allocations: 35.98 kB / 0.6556 GB, free: 45.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005506/0.9252, allocations: 7.564 MB / 0.663 GB, free: 37.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.9252, allocations: 0 / 0.663 GB, free: 37.3 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003951/0.9292, allocations: 2.746 MB / 0.6657 GB, free: 34.43 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001057/0.9303, allocations: 378.8 kB / 0.666 GB, free: 34.04 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005164/0.9308, allocations: 27.98 kB / 0.666 GB, free: 34.02 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001116/0.9319, allocations: 59.95 kB / 0.6661 GB, free: 33.96 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000229/0.9322, allocations: 92.83 kB / 0.6662 GB, free: 33.87 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.198e-05/0.9323, allocations: 32 kB / 0.6662 GB, free: 33.84 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001938/0.9342, allocations: 1.059 MB / 0.6672 GB, free: 32.78 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.9342, allocations: 0 / 0.6672 GB, free: 32.78 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002639/0.9369, allocations: 0.5508 MB / 0.6678 GB, free: 32.23 MB / 426.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 87 * 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.004446/0.9413, allocations: 3.96 MB / 0.6717 GB, free: 28.19 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0027/0.944, allocations: 1.773 MB / 0.6734 GB, free: 26.37 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.522e-06/0.9441, allocations: 0 / 0.6734 GB, free: 26.37 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001657/0.9457, allocations: 1.252 MB / 0.6746 GB, free: 25.07 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002471/0.9482, allocations: 474.8 kB / 0.6751 GB, free: 24.61 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03314/0.9814, allocations: 24.87 MB / 0.6993 GB, free: 14.79 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003687/0.9851, allocations: 2.295 MB / 0.7016 GB, free: 12.46 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001975/0.9871, allocations: 379.5 kB / 0.702 GB, free: 12.09 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001988/0.9891, allocations: 1.112 MB / 0.703 GB, free: 10.98 MB / 442.7 MB Notification: Performance of SimCode: time 9.12e-07/0.9892, allocations: 0 / 0.703 GB, free: 10.98 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3591/1.348, allocations: 47.43 MB / 0.7494 GB, free: 115.8 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002112/1.349, allocations: 193.6 kB / 0.7495 GB, free: 115.6 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.451/4.799, allocations: 0 / 0.7495 GB, free: 115.6 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)