Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.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.SMEE_VCurve1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1",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.001/0.001, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.313/1.313, allocations: 223.3 MB / 239.4 MB, free: 5.512 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.0009289/0.0009289, allocations: 183.5 kB / 290.6 MB, free: 2.188 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03305/0.03305, allocations: 8.806 MB / 350.5 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000353/0.000353, allocations: 11.03 kB / 413.9 MB, free: 42.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07762/0.07799, allocations: 52.56 MB / 466.5 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.02363/0.1017, allocations: 23.91 MB / 490.4 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01479/0.1165, allocations: 7.789 MB / 498.2 MB, free: 13.19 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004683/0.1212, allocations: 163.5 kB / 498.4 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005357/0.1266, allocations: 1.82 MB / 0.4884 GB, free: 11.2 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008973/0.1356, allocations: 2.774 MB / 0.4912 GB, free: 8.422 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005251/0.1409, allocations: 1.691 MB / 0.4928 GB, free: 6.738 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01336/0.1542, allocations: 9.372 MB / 0.502 GB, free: 13.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03132/0.1856, allocations: 17.62 MB / 0.5192 GB, free: 11.59 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005413/0.191, allocations: 3.398 MB / 0.5225 GB, free: 8.176 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006553/0.1976, allocations: 4.112 MB / 0.5265 GB, free: 4.047 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002194/0.1998, allocations: 0.5195 MB / 0.527 GB, free: 3.527 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00348/0.2033, allocations: 0.8824 MB / 0.5279 GB, free: 2.645 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002801/0.2062, allocations: 1.701 MB / 0.5295 GB, free: 0.9375 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2021/0.4082, allocations: 4.024 MB / 0.5335 GB, free: 21.07 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01706/0.4253, allocations: 17.05 MB / 0.5501 GB, free: 16.91 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.4254, allocations: 0 / 0.5501 GB, free: 16.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.4254, allocations: 0 / 0.5501 GB, free: 16.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004418/0.4258, allocations: 1.094 kB / 0.5501 GB, free: 16.91 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: 2183 * Number of variables: 2183 Notification: Performance of Generate backend data structure: time 0.02975/0.4556, allocations: 9.056 MB / 0.559 GB, free: 12.31 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.326e-05/0.4557, allocations: 9.906 kB / 0.559 GB, free: 12.31 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007241/0.463, allocations: 1.275 MB / 0.5602 GB, free: 12 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03248/0.4955, allocations: 5.659 MB / 0.5657 GB, free: 9.867 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01223/0.5077, allocations: 5.678 MB / 0.5713 GB, free: 8.227 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005062/0.5083, allocations: 0.5813 MB / 0.5719 GB, free: 8.207 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003984/0.5123, allocations: 0.7729 MB / 0.5726 GB, free: 8.195 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03332/0.5456, allocations: 12.78 MB / 0.5851 GB, free: 4.633 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000286/0.546, allocations: 19.16 kB / 0.5851 GB, free: 4.621 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002759/0.5487, allocations: 325.2 kB / 0.5854 GB, free: 4.379 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004516/0.5492, allocations: 497.3 kB / 0.5859 GB, free: 4.016 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02777/0.577, allocations: 12.26 MB / 0.5979 GB, free: 7.742 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08158/0.6586, allocations: 43.86 MB / 0.6407 GB, free: 11.26 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02735/0.686, allocations: 25.17 MB / 0.6653 GB, free: 15.21 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006291/0.6923, allocations: 2.972 MB / 0.6682 GB, free: 12.23 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005978/0.693, allocations: 242.9 kB / 0.6684 GB, free: 11.97 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006175/0.6992, allocations: 2.586 MB / 0.6709 GB, free: 9.316 MB / 462.1 MB Notification: Performance of pre-optimization done (n=391): time 1.358e-05/0.6992, allocations: 0 / 0.6709 GB, free: 9.316 MB / 462.1 MB Notification: Performance of matching and sorting (n=397): time 0.04806/0.7473, allocations: 18.18 MB / 0.6887 GB, free: 7.039 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001777/0.7475, allocations: 350.9 kB / 0.689 GB, free: 6.625 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007501/0.755, allocations: 3.53 MB / 0.6925 GB, free: 3.09 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008402/0.7559, allocations: 85.7 kB / 0.6925 GB, free: 3 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002809/0.7587, allocations: 3.381 MB / 0.6958 GB, free: 15.6 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001814/0.7606, allocations: 1.348 MB / 0.6972 GB, free: 14.26 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001434/0.762, allocations: 442.2 kB / 0.6976 GB, free: 13.82 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.7622, allocations: 309 kB / 0.6979 GB, free: 13.52 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005064/0.7672, allocations: 2.556 MB / 0.7004 GB, free: 10.96 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006082/0.7734, allocations: 4.512 MB / 0.7048 GB, free: 5.594 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2218/0.9952, allocations: 7.454 MB / 0.7121 GB, free: 169.4 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.304e-05/0.9953, allocations: 16.88 kB / 0.7121 GB, free: 169.4 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01647/1.012, allocations: 8.293 MB / 0.7202 GB, free: 168.4 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.535e-05/1.012, allocations: 55.08 kB / 0.7202 GB, free: 168.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.114e-05/1.012, allocations: 61.36 kB / 0.7203 GB, free: 168.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002519/1.014, allocations: 0.9989 MB / 0.7213 GB, free: 168.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004604/1.019, allocations: 1.258 MB / 0.7225 GB, free: 168 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01059/1.03, allocations: 8.24 MB / 0.7305 GB, free: 163.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004734/1.034, allocations: 364 kB / 0.7309 GB, free: 163.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001095/1.036, allocations: 263.3 kB / 0.7311 GB, free: 163.4 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 275 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (664): * Single equations (assignments): 662 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,48,52.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005908/1.042, allocations: 2.906 MB / 0.734 GB, free: 161.9 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009415/1.042, allocations: 389.7 kB / 0.7343 GB, free: 161.9 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009323/1.052, allocations: 6.188 MB / 0.7404 GB, free: 159.4 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.288e-05/1.052, allocations: 42 kB / 0.7404 GB, free: 159.4 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.344e-05/1.052, allocations: 14.5 kB / 0.7404 GB, free: 159.4 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.314e-05/1.052, allocations: 18.98 kB / 0.7405 GB, free: 159.4 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02241/1.074, allocations: 14.94 MB / 0.7551 GB, free: 149.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.478e-05/1.074, allocations: 4 kB / 0.7551 GB, free: 149.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002608/1.077, allocations: 0.6895 MB / 0.7557 GB, free: 149.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002234/1.079, allocations: 0.8725 MB / 0.7566 GB, free: 148.7 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002856/1.08, allocations: 91.36 kB / 0.7567 GB, free: 148.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008683/1.088, allocations: 7.201 MB / 0.7637 GB, free: 141.6 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/1.088, allocations: 4 kB / 0.7637 GB, free: 141.6 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01155/1.1, allocations: 8.792 MB / 0.7723 GB, free: 132.7 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001928/1.102, allocations: 0.9334 MB / 0.7732 GB, free: 131.8 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005909/1.102, allocations: 79.98 kB / 0.7733 GB, free: 131.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002034/1.104, allocations: 207.7 kB / 0.7735 GB, free: 131.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005214/1.105, allocations: 271.1 kB / 0.7737 GB, free: 131.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000203/1.105, allocations: 115.9 kB / 0.7738 GB, free: 131.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003381/1.109, allocations: 2.366 MB / 0.7762 GB, free: 128.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.5e-07/1.109, allocations: 0 / 0.7762 GB, free: 128.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005721/1.114, allocations: 1.452 MB / 0.7776 GB, free: 127.3 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 3 (smee.inertiaRotor.w,smee.rotorCage.port_p.reference.gamma,constantTorque.phi) * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 1 ($whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (371): * Single equations (assignments): 369 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,46,50.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01231/1.127, allocations: 9.502 MB / 0.7869 GB, free: 117.7 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009479/1.136, allocations: 6.476 MB / 0.7932 GB, free: 111.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.425e-06/1.136, allocations: 0 / 0.7932 GB, free: 111.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004513/1.141, allocations: 3.087 MB / 0.7962 GB, free: 108.1 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006398/1.147, allocations: 0.779 MB / 0.797 GB, free: 107.3 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1048/1.252, allocations: 59.53 MB / 0.8551 GB, free: 43.11 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005023/1.257, allocations: 5.012 MB / 0.86 GB, free: 38.06 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004823/1.262, allocations: 1.59 MB / 0.8615 GB, free: 36.46 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004183/1.266, allocations: 2.753 MB / 0.8642 GB, free: 33.71 MB / 494.1 MB Notification: Performance of SimCode: time 9.91e-07/1.266, allocations: 3.938 kB / 0.8642 GB, free: 33.71 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3487/1.615, allocations: 109.5 MB / 0.9711 GB, free: 105.4 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001796/1.615, allocations: 220.1 kB / 0.9714 GB, free: 105.2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.865/5.48, allocations: 0 / 0.9714 GB, free: 105.2 MB / 494.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe 2>&1)