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/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.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/Complex 4.0.0+maint.om/package.mo): time 0.001422/0.001422, allocations: 175.2 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.06147/0.06147, 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.365/1.365, allocations: 221.4 MB / 246 MB, free: 3.551 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.0008829/0.000883, allocations: 90.31 kB / 299.1 MB, free: 2.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.887e-05/3.895e-05, allocations: 4 kB / 359.6 MB, free: 6.414 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2656/0.2656, allocations: 52.53 MB / 412.2 MB, free: 22.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4652/0.7308, allocations: 135.9 MB / 0.5352 GB, free: 39.4 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002464/0.7311, allocations: 82.14 kB / 0.5353 GB, free: 39.39 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.231/1.962, allocations: 322.5 MB / 0.8503 GB, free: 51.79 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.725e-06/1.962, allocations: 0 / 0.8503 GB, free: 51.79 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0005807/1.962, allocations: 208.6 kB / 0.8505 GB, free: 51.77 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: 2602 * Number of variables: 2602 Notification: Performance of Generate backend data structure: time 0.03221/1.995, allocations: 8.427 MB / 0.8587 GB, free: 49.13 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.4e-05/1.995, allocations: 10.25 kB / 0.8587 GB, free: 49.13 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005839/2, allocations: 1.333 MB / 0.86 GB, free: 49.03 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02342/2.024, allocations: 3.911 MB / 0.8638 GB, free: 48.52 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01873/2.043, allocations: 7.381 MB / 0.871 GB, free: 47.62 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006896/2.043, allocations: 0.6754 MB / 0.8717 GB, free: 47.61 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004192/2.048, allocations: 0.8935 MB / 0.8726 GB, free: 47.6 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04842/2.096, allocations: 14.72 MB / 0.8869 GB, free: 46.46 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005597/2.097, allocations: 15.16 kB / 0.8869 GB, free: 46.46 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005944/2.103, allocations: 387.3 kB / 0.8873 GB, free: 46.46 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001483/2.104, allocations: 0.6945 MB / 0.888 GB, free: 46.43 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03721/2.141, allocations: 12.51 MB / 0.9002 GB, free: 46.34 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08649/2.228, allocations: 48.19 MB / 0.9473 GB, free: 25.41 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02216/2.25, allocations: 28.75 MB / 0.9753 GB, free: 14.04 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005037/2.255, allocations: 2.833 MB / 0.9781 GB, free: 12.95 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005156/2.256, allocations: 236.1 kB / 0.9783 GB, free: 12.76 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.292e-05/2.256, allocations: 79.53 kB / 0.9784 GB, free: 12.68 MB / 490.7 MB Notification: Performance of pre-optimization done (n=374): time 6.281e-06/2.256, allocations: 0 / 0.9784 GB, free: 12.68 MB / 490.7 MB Notification: Performance of matching and sorting (n=382): time 0.02233/2.278, allocations: 11.1 MB / 0.9893 GB, free: 7.578 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.704e-05/2.278, allocations: 88.19 kB / 0.9893 GB, free: 7.512 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005867/2.284, allocations: 3.271 MB / 0.9925 GB, free: 5.188 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00067/2.285, allocations: 89.7 kB / 0.9926 GB, free: 5.094 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00304/2.288, allocations: 4.068 MB / 0.9966 GB, free: 1.488 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001696/2.29, allocations: 1.315 MB / 0.9979 GB, free: 316 kB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00031/2.29, allocations: 124 kB / 0.998 GB, free: 192 kB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003905/2.29, allocations: 0.5415 MB / 0.9985 GB, free: 15.71 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003926/2.294, allocations: 2.5 MB / 1.001 GB, free: 13.48 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005641/2.3, allocations: 4.949 MB / 1.006 GB, free: 7.754 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005699/2.306, allocations: 3.71 MB / 1.009 GB, free: 4.664 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.567e-05/2.306, allocations: 24 kB / 1.009 GB, free: 4.641 MB / 0.4948 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01668/2.322, allocations: 8.468 MB / 1.018 GB, free: 13.81 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 8.05e-05/2.323, allocations: 48.05 kB / 1.018 GB, free: 13.76 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001878/2.323, allocations: 84 kB / 1.018 GB, free: 13.68 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002486/2.325, allocations: 0.8557 MB / 1.019 GB, free: 13 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005678/2.331, allocations: 1.357 MB / 1.02 GB, free: 11.93 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.012/2.343, allocations: 8.323 MB / 1.028 GB, free: 4.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007344/2.35, allocations: 337.4 kB / 1.028 GB, free: 4.039 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001818/2.352, allocations: 301.8 kB / 1.029 GB, free: 3.754 MB / 0.5105 GB 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (720): * Single equations (assignments): 717 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(8,65.6%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001231/2.353, allocations: 0.501 MB / 1.029 GB, free: 3.281 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001263/2.355, allocations: 410.3 kB / 1.03 GB, free: 2.879 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4099/2.765, allocations: 6.243 MB / 1.036 GB, free: 91.09 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.939e-05/2.765, allocations: 41.16 kB / 1.036 GB, free: 91.09 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.084e-05/2.765, allocations: 8.359 kB / 1.036 GB, free: 91.09 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001298/2.765, allocations: 23.88 kB / 1.036 GB, free: 91.09 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03453/2.8, allocations: 14.82 MB / 1.05 GB, free: 89.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.706e-05/2.8, allocations: 7.719 kB / 1.05 GB, free: 89.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00266/2.802, allocations: 0.6595 MB / 1.051 GB, free: 89.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001953/2.804, allocations: 0.7139 MB / 1.052 GB, free: 89.67 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003219/2.805, allocations: 81.52 kB / 1.052 GB, free: 89.67 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008107/2.813, allocations: 7.353 MB / 1.059 GB, free: 87.08 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/2.813, allocations: 5.531 kB / 1.059 GB, free: 87.08 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01294/2.826, allocations: 8.539 MB / 1.067 GB, free: 86.28 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002494/2.828, allocations: 0.8868 MB / 1.068 GB, free: 86.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006581/2.829, allocations: 67.84 kB / 1.068 GB, free: 86.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001957/2.831, allocations: 189.3 kB / 1.068 GB, free: 86.18 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004901/2.831, allocations: 252.7 kB / 1.069 GB, free: 86.18 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000229/2.832, allocations: 106.2 kB / 1.069 GB, free: 86.18 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.004098/2.836, allocations: 2.435 MB / 1.071 GB, free: 86.02 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.9e-07/2.836, allocations: 0 / 1.071 GB, free: 86.02 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007007/2.843, allocations: 1.599 MB / 1.073 GB, free: 86.02 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 2 (inertiaLoad.w,quadraticTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (363): * Single equations (assignments): 360 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(8,62.5%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01301/2.856, allocations: 10.29 MB / 1.083 GB, free: 83.91 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01039/2.866, allocations: 6.404 MB / 1.089 GB, free: 83.55 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.367e-06/2.866, allocations: 3.594 kB / 1.089 GB, free: 83.55 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004608/2.871, allocations: 2.878 MB / 1.092 GB, free: 83.25 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005331/2.876, allocations: 0.8567 MB / 1.093 GB, free: 83.24 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04155/2.918, allocations: 16.13 MB / 1.108 GB, free: 80.52 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009209/2.927, allocations: 6.114 MB / 1.114 GB, free: 79.62 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.005704/2.933, allocations: 1.878 MB / 1.116 GB, free: 79.56 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005433/2.938, allocations: 3.161 MB / 1.119 GB, free: 77.67 MB / 0.5105 GB Notification: Performance of SimCode: time 1.513e-06/2.938, allocations: 0 / 1.119 GB, free: 77.67 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5525/3.491, allocations: 123.2 MB / 1.24 GB, free: 70.26 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001838/3.491, allocations: 170.9 kB / 1.24 GB, free: 70.04 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.466/8.957, allocations: 4.125 kB / 1.24 GB, free: 70.04 MB / 0.5105 GB (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/linux/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)