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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.0009479/0.000948, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.311/1.311, allocations: 223.3 MB / 239 MB, free: 5.434 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.0009847/0.0009846, allocations: 184.5 kB / 290.3 MB, free: 2.121 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03499/0.03499, allocations: 8.787 MB / 350.2 MB, free: 4.648 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004656/0.0004659, allocations: 14.78 kB / 413.3 MB, free: 43 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09086/0.09135, allocations: 52.56 MB / 465.8 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.02601/0.1174, allocations: 25.02 MB / 490.9 MB, free: 4.266 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01738/0.1348, allocations: 7.76 MB / 498.6 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005696/0.1406, allocations: 199.3 kB / 498.8 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005507/0.1461, allocations: 1.363 MB / 0.4885 GB, free: 10.92 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00834/0.1545, allocations: 2.303 MB / 0.4907 GB, free: 8.609 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004411/0.1589, allocations: 1.215 MB / 0.4919 GB, free: 7.398 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0162/0.1751, allocations: 10.89 MB / 0.5025 GB, free: 12.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03508/0.2102, allocations: 17.35 MB / 0.5195 GB, free: 11.03 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006894/0.2171, allocations: 3.835 MB / 0.5232 GB, free: 7.18 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007838/0.225, allocations: 4.405 MB / 0.5275 GB, free: 2.758 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002447/0.2275, allocations: 0.5977 MB / 0.5281 GB, free: 2.16 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005517/0.233, allocations: 0.9332 MB / 0.529 GB, free: 1.227 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2331/0.4662, allocations: 1.8 MB / 0.5308 GB, free: 20.96 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004032/0.4703, allocations: 1.966 MB / 0.5327 GB, free: 20.93 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02082/0.4911, allocations: 17.4 MB / 0.5497 GB, free: 15.85 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/0.4912, allocations: 1.594 kB / 0.5497 GB, free: 15.85 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.067e-06/0.4912, allocations: 1.375 kB / 0.5497 GB, free: 15.85 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0007821/0.492, allocations: 0 / 0.5497 GB, free: 15.85 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.0318/0.5238, allocations: 9.894 MB / 0.5593 GB, free: 10.93 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.202e-05/0.5239, allocations: 9.344 kB / 0.5593 GB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007455/0.5313, allocations: 1.346 MB / 0.5607 GB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03065/0.562, allocations: 5.633 MB / 0.5662 GB, free: 8.395 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01485/0.5769, allocations: 6.071 MB / 0.5721 GB, free: 6.777 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006776/0.5776, allocations: 0.7018 MB / 0.5728 GB, free: 6.758 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004349/0.582, allocations: 0.9305 MB / 0.5737 GB, free: 6.75 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04372/0.6257, allocations: 15 MB / 0.5883 GB, free: 2.395 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000748/0.6265, allocations: 19.33 kB / 0.5884 GB, free: 2.379 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004726/0.6312, allocations: 394.2 kB / 0.5887 GB, free: 2.301 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000613/0.6319, allocations: 0.5132 MB / 0.5892 GB, free: 1.816 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0326/0.6645, allocations: 13.65 MB / 0.6026 GB, free: 8.199 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09509/0.7596, allocations: 47.95 MB / 0.6494 GB, free: 7.895 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02206/0.7817, allocations: 28.73 MB / 0.6775 GB, free: 7.441 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005407/0.7872, allocations: 2.887 MB / 0.6803 GB, free: 4.547 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005048/0.7877, allocations: 230.5 kB / 0.6805 GB, free: 4.293 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.827e-05/0.7878, allocations: 73.23 kB / 0.6806 GB, free: 4.215 MB / 462.1 MB Notification: Performance of pre-optimization done (n=372): time 7.374e-06/0.7878, allocations: 0 / 0.6806 GB, free: 4.215 MB / 462.1 MB Notification: Performance of matching and sorting (n=380): time 0.03842/0.8262, allocations: 15.62 MB / 0.6958 GB, free: 4.535 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.657e-05/0.8263, allocations: 90.39 kB / 0.6959 GB, free: 4.434 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007387/0.8337, allocations: 3.726 MB / 0.6995 GB, free: 0.7188 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006811/0.8344, allocations: 85.7 kB / 0.6996 GB, free: 0.6289 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2337/1.068, allocations: 4.081 MB / 0.7036 GB, free: 156.5 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001743/1.07, allocations: 1.309 MB / 0.7049 GB, free: 155.7 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004081/1.07, allocations: 120.2 kB / 0.705 GB, free: 155.7 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0003752/1.071, allocations: 0.5448 MB / 0.7055 GB, free: 155.4 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004522/1.075, allocations: 2.545 MB / 0.708 GB, free: 155.3 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005483/1.081, allocations: 5.034 MB / 0.7129 GB, free: 152 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005855/1.087, allocations: 3.734 MB / 0.7166 GB, free: 150.3 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.312e-05/1.087, allocations: 23.59 kB / 0.7166 GB, free: 150.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.014/1.101, allocations: 8.559 MB / 0.725 GB, free: 146.9 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001229/1.101, allocations: 42.78 kB / 0.725 GB, free: 146.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001717/1.101, allocations: 81.25 kB / 0.7251 GB, free: 146.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002212/1.103, allocations: 0.8634 MB / 0.7259 GB, free: 146.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00458/1.108, allocations: 1.362 MB / 0.7273 GB, free: 146.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009704/1.118, allocations: 8.349 MB / 0.7354 GB, free: 141.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005649/1.123, allocations: 327.6 kB / 0.7357 GB, free: 141.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001551/1.125, allocations: 306.4 kB / 0.736 GB, free: 141.1 MB / 478.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 (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.009179/1.134, allocations: 3.516 MB / 0.7394 GB, free: 138.1 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00139/1.136, allocations: 416.2 kB / 0.7398 GB, free: 137.7 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009238/1.145, allocations: 5.829 MB / 0.7455 GB, free: 132.8 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.412e-05/1.145, allocations: 40 kB / 0.7456 GB, free: 132.7 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.44e-05/1.145, allocations: 8.5 kB / 0.7456 GB, free: 132.7 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.354e-05/1.145, allocations: 20.81 kB / 0.7456 GB, free: 132.7 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02137/1.166, allocations: 14.74 MB / 0.76 GB, free: 119.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.341e-05/1.166, allocations: 4 kB / 0.76 GB, free: 119.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002274/1.169, allocations: 0.667 MB / 0.7607 GB, free: 118.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001685/1.17, allocations: 0.7141 MB / 0.7614 GB, free: 117.9 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002135/1.171, allocations: 79.98 kB / 0.7614 GB, free: 117.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007546/1.178, allocations: 7.389 MB / 0.7686 GB, free: 110.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.329e-06/1.178, allocations: 7.969 kB / 0.7687 GB, free: 110.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01124/1.189, allocations: 8.439 MB / 0.7769 GB, free: 101.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002543/1.192, allocations: 0.8862 MB / 0.7778 GB, free: 100.7 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007734/1.193, allocations: 71.98 kB / 0.7778 GB, free: 100.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001699/1.194, allocations: 179.9 kB / 0.778 GB, free: 100.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000454/1.195, allocations: 246.7 kB / 0.7782 GB, free: 100.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001994/1.195, allocations: 111.9 kB / 0.7783 GB, free: 100.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003868/1.199, allocations: 2.497 MB / 0.7808 GB, free: 97.62 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.01e-07/1.199, allocations: 4 kB / 0.7808 GB, free: 97.62 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00816/1.207, allocations: 1.547 MB / 0.7823 GB, free: 96.07 MB / 478.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 (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%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01203/1.219, allocations: 9.164 MB / 0.7912 GB, free: 86.81 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.009094/1.228, allocations: 6.492 MB / 0.7976 GB, free: 80.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.722e-06/1.228, allocations: 4 kB / 0.7976 GB, free: 80.29 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003628/1.232, allocations: 2.95 MB / 0.8005 GB, free: 77.32 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004291/1.236, allocations: 0.9213 MB / 0.8014 GB, free: 76.42 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08207/1.318, allocations: 45.25 MB / 0.8456 GB, free: 28.55 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009742/1.328, allocations: 5.966 MB / 0.8514 GB, free: 22.54 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005851/1.334, allocations: 1.866 MB / 0.8532 GB, free: 20.66 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004869/1.339, allocations: 3.245 MB / 0.8564 GB, free: 17.42 MB / 478.1 MB Notification: Performance of SimCode: time 9.01e-07/1.339, allocations: 0 / 0.8564 GB, free: 17.42 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3624/1.701, allocations: 116.6 MB / 0.9702 GB, free: 75.96 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001539/1.702, allocations: 208.2 kB / 0.9704 GB, free: 75.72 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.518/6.219, allocations: 0 / 0.9704 GB, free: 75.72 MB / 478.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/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) Environment - environmentSimulation: