Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/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) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001136/0.001136, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.261/1.261, allocations: 222.9 MB / 238.9 MB, free: 4.75 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001201/0.001202, allocations: 188.5 kB / 289.1 MB, free: 2.492 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03387/0.03387, allocations: 8.789 MB / 348.1 MB, free: 4.875 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 77.44 kB / 410.5 MB, free: 42.35 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06548/0.06689, allocations: 51.56 MB / 462.1 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.02496/0.09189, allocations: 28.21 MB / 490.3 MB, free: 2.422 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01314/0.1051, allocations: 8.377 MB / 498.7 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003132/0.1082, allocations: 207.3 kB / 498.9 MB, free: 9.816 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01438/0.1226, allocations: 7.691 MB / 0.4947 GB, free: 2.113 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006186/0.1288, allocations: 2.552 MB / 0.4972 GB, free: 15.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003526/0.1323, allocations: 1.744 MB / 0.4989 GB, free: 13.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008611/0.141, allocations: 9.895 MB / 0.5085 GB, free: 3.887 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02187/0.1628, allocations: 17.8 MB / 0.5259 GB, free: 1.945 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1574/0.3203, allocations: 4.685 MB / 0.5305 GB, free: 18.25 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006578/0.3269, allocations: 5.793 MB / 0.5361 GB, free: 18.01 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002257/0.3291, allocations: 1.05 MB / 0.5372 GB, free: 18.01 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003414/0.3326, allocations: 1.4 MB / 0.5385 GB, free: 18.01 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001992/0.3346, allocations: 2.487 MB / 0.541 GB, free: 17.68 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007972/0.3426, allocations: 5.334 MB / 0.5462 GB, free: 16.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01491/0.3575, allocations: 20.17 MB / 0.5659 GB, free: 9.582 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.3575, allocations: 0 / 0.5659 GB, free: 9.582 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3575, allocations: 1.875 kB / 0.5659 GB, free: 9.582 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000381/0.3579, allocations: 0 / 0.5659 GB, free: 9.582 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: 2602 * Number of variables: 2602 Notification: Performance of Generate backend data structure: time 0.0249/0.3828, allocations: 11.88 MB / 0.5775 GB, free: 2.445 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.3829, allocations: 11.69 kB / 0.5775 GB, free: 2.445 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001808/0.3847, allocations: 1.343 MB / 0.5788 GB, free: 1.492 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0273/0.412, allocations: 5.613 MB / 0.5843 GB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01105/0.4231, allocations: 6.141 MB / 0.5903 GB, free: 9.098 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005051/0.4236, allocations: 0.7035 MB / 0.591 GB, free: 8.402 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002325/0.4259, allocations: 0.9309 MB / 0.5919 GB, free: 7.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0271/0.453, allocations: 15.07 MB / 0.6066 GB, free: 8.359 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001763/0.4532, allocations: 15.89 kB / 0.6066 GB, free: 8.344 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001009/0.4543, allocations: 395.4 kB / 0.607 GB, free: 7.969 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004271/0.4547, allocations: 0.5117 MB / 0.6075 GB, free: 7.453 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02188/0.4766, allocations: 13.74 MB / 0.6209 GB, free: 9.703 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06535/0.542, allocations: 47.83 MB / 0.6676 GB, free: 9.523 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01869/0.5607, allocations: 28.77 MB / 0.6957 GB, free: 9.039 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003972/0.5647, allocations: 2.9 MB / 0.6985 GB, free: 6.133 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000303/0.565, allocations: 238.5 kB / 0.6988 GB, free: 5.875 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.106e-05/0.5651, allocations: 69.48 kB / 0.6988 GB, free: 5.797 MB / 494.1 MB Notification: Performance of pre-optimization done (n=372): time 6.703e-06/0.5651, allocations: 3.984 kB / 0.6988 GB, free: 5.793 MB / 494.1 MB Notification: Performance of matching and sorting (n=380): time 0.1738/0.7389, allocations: 14.69 MB / 0.7132 GB, free: 162.5 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.073e-05/0.739, allocations: 95.14 kB / 0.7133 GB, free: 162.5 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005446/0.7444, allocations: 3.756 MB / 0.717 GB, free: 162.1 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003748/0.7448, allocations: 87.14 kB / 0.717 GB, free: 162.1 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002355/0.7472, allocations: 4.081 MB / 0.721 GB, free: 159.8 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00104/0.7482, allocations: 1.307 MB / 0.7223 GB, free: 159 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001563/0.7498, allocations: 1.168 MB / 0.7234 GB, free: 158.9 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.615e-05/0.7499, allocations: 304.3 kB / 0.7237 GB, free: 158.6 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003694/0.7536, allocations: 2.572 MB / 0.7262 GB, free: 158.6 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004019/0.7576, allocations: 5.056 MB / 0.7312 GB, free: 155.5 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00743/0.765, allocations: 8.249 MB / 0.7392 GB, free: 149.6 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.111e-05/0.7651, allocations: 22.84 kB / 0.7393 GB, free: 149.6 MB / 494.1 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01083/0.7759, allocations: 8.606 MB / 0.7477 GB, free: 146.2 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.759e-05/0.776, allocations: 42.97 kB / 0.7477 GB, free: 146.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.765e-05/0.7761, allocations: 82.19 kB / 0.7478 GB, free: 146.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002016/0.7781, allocations: 0.8561 MB / 0.7486 GB, free: 146 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003697/0.7818, allocations: 1.362 MB / 0.7499 GB, free: 145.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008407/0.7902, allocations: 8.354 MB / 0.7581 GB, free: 139.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003251/0.7935, allocations: 329.2 kB / 0.7584 GB, free: 139.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003524/0.7938, allocations: 303.6 kB / 0.7587 GB, free: 138.8 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 376 * 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 (720): * Single equations (assignments): 718 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (8,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00439/0.7982, allocations: 3.507 MB / 0.7621 GB, free: 135.8 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006577/0.7989, allocations: 414.6 kB / 0.7625 GB, free: 135.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007715/0.8066, allocations: 5.852 MB / 0.7682 GB, free: 130.5 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.777e-05/0.8066, allocations: 44 kB / 0.7683 GB, free: 130.4 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.089e-05/0.8067, allocations: 8 kB / 0.7683 GB, free: 130.4 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.65e-05/0.8067, allocations: 18.8 kB / 0.7683 GB, free: 130.4 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0174/0.8241, allocations: 14.76 MB / 0.7827 GB, free: 116.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.015e-05/0.8241, allocations: 0 / 0.7827 GB, free: 116.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002259/0.8264, allocations: 0.667 MB / 0.7834 GB, free: 115.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001661/0.8281, allocations: 0.7063 MB / 0.7841 GB, free: 115.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001825/0.8283, allocations: 79.98 kB / 0.7841 GB, free: 115.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006845/0.8351, allocations: 7.397 MB / 0.7914 GB, free: 107.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.8351, allocations: 11.88 kB / 0.7914 GB, free: 107.4 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009289/0.8444, allocations: 8.479 MB / 0.7997 GB, free: 98.87 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001367/0.8458, allocations: 0.8756 MB / 0.8005 GB, free: 97.97 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004695/0.8463, allocations: 77.98 kB / 0.8006 GB, free: 97.89 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001589/0.8479, allocations: 175.8 kB / 0.8008 GB, free: 97.72 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003879/0.8483, allocations: 254.6 kB / 0.801 GB, free: 97.47 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001915/0.8485, allocations: 112 kB / 0.8011 GB, free: 97.36 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002739/0.8512, allocations: 2.52 MB / 0.8036 GB, free: 94.86 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.8512, allocations: 0 / 0.8036 GB, free: 94.86 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004368/0.8556, allocations: 1.554 MB / 0.8051 GB, free: 93.31 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 2 (smpm.inertiaRotor.w,quadraticTorque.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 (362): * Single equations (assignments): 360 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009476/0.8651, allocations: 9.187 MB / 0.8141 GB, free: 84.01 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007604/0.8727, allocations: 6.533 MB / 0.8204 GB, free: 77.46 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.8727, allocations: 0 / 0.8204 GB, free: 77.46 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003225/0.8759, allocations: 2.956 MB / 0.8233 GB, free: 74.48 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00382/0.8798, allocations: 0.9094 MB / 0.8242 GB, free: 73.61 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2493/1.129, allocations: 65.43 MB / 0.8881 GB, free: 163.7 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006179/1.135, allocations: 5.968 MB / 0.8939 GB, free: 162.8 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004957/1.14, allocations: 1.867 MB / 0.8958 GB, free: 162.7 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003441/1.144, allocations: 3.216 MB / 0.8989 GB, free: 162.7 MB / 494.1 MB Notification: Performance of SimCode: time 1.383e-06/1.144, allocations: 0 / 0.8989 GB, free: 162.7 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1229/1.267, allocations: 119.6 MB / 1.016 GB, free: 59.04 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001557/1.267, allocations: 232.5 kB / 1.016 GB, free: 58.79 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.711/4.978, allocations: 0 / 1.016 GB, free: 58.79 MB / 494.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)