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.006132/0.006132, allocations: 100.4 kB / 15.73 MB, free: 5.953 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.365/1.365, allocations: 222.9 MB / 239.4 MB, free: 4.348 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.00158/0.00158, allocations: 192.4 kB / 289.7 MB, free: 2.066 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03589/0.03589, allocations: 8.795 MB / 348.7 MB, free: 4.543 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002214/0.002214, allocations: 83.86 kB / 463.5 MB, free: 13.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09857/0.1008, allocations: 51.55 MB / 0.5029 GB, free: 9.879 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.0289/0.1298, allocations: 25.43 MB / 0.5278 GB, free: 340 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2065/0.3363, allocations: 7.94 MB / 0.5355 GB, free: 4.309 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004498/0.3408, allocations: 171.9 kB / 0.5357 GB, free: 4.309 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0165/0.3573, allocations: 7.642 MB / 0.5432 GB, free: 3.441 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0103/0.3676, allocations: 3.046 MB / 0.5461 GB, free: 2.59 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00592/0.3736, allocations: 2.019 MB / 0.5481 GB, free: 2.391 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01324/0.3868, allocations: 9.234 MB / 0.5571 GB, free: 15.04 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02745/0.4143, allocations: 17.26 MB / 0.574 GB, free: 5.824 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008984/0.4233, allocations: 4.744 MB / 0.5786 GB, free: 1.195 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009254/0.4326, allocations: 5.249 MB / 0.5837 GB, free: 12.1 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003625/0.4363, allocations: 1.352 MB / 0.5851 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005402/0.4417, allocations: 1.709 MB / 0.5867 GB, free: 9.043 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004042/0.4458, allocations: 2.671 MB / 0.5893 GB, free: 6.406 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009086/0.4549, allocations: 5.086 MB / 0.5943 GB, free: 1.344 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02365/0.4786, allocations: 18.19 MB / 0.6121 GB, free: 15.47 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.692e-06/0.4786, allocations: 4 kB / 0.6121 GB, free: 15.46 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4786, allocations: 0 / 0.6121 GB, free: 15.46 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004484/0.4791, allocations: 0 / 0.6121 GB, free: 15.46 MB / 430.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.03182/0.5109, allocations: 10.94 MB / 0.6227 GB, free: 4.504 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.511, allocations: 8.031 kB / 0.6228 GB, free: 4.496 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003751/0.5147, allocations: 1.271 MB / 0.624 GB, free: 3.227 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03161/0.5464, allocations: 5.719 MB / 0.6296 GB, free: 13.57 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01263/0.559, allocations: 5.825 MB / 0.6353 GB, free: 7.723 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006323/0.5597, allocations: 0.5871 MB / 0.6358 GB, free: 7.148 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002866/0.5626, allocations: 0.7603 MB / 0.6366 GB, free: 6.398 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03009/0.5927, allocations: 12.77 MB / 0.6491 GB, free: 9.605 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002924/0.593, allocations: 7.953 kB / 0.6491 GB, free: 9.598 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002223/0.5952, allocations: 328.4 kB / 0.6494 GB, free: 9.289 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006113/0.5959, allocations: 0.5006 MB / 0.6499 GB, free: 8.785 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02695/0.6228, allocations: 12.25 MB / 0.6618 GB, free: 12.51 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07509/0.698, allocations: 43.36 MB / 0.7042 GB, free: 68 kB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02662/0.7246, allocations: 25.19 MB / 0.7288 GB, free: 3.973 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005294/0.73, allocations: 2.972 MB / 0.7317 GB, free: 0.9922 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004569/0.7305, allocations: 242.2 kB / 0.7319 GB, free: 0.7305 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.3665/1.097, allocations: 2.575 MB / 0.7344 GB, free: 164.5 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=391): time 6.733e-06/1.097, allocations: 0.5625 kB / 0.7344 GB, free: 164.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=397): time 0.03925/1.136, allocations: 18.42 MB / 0.7524 GB, free: 160.8 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/1.136, allocations: 357.5 kB / 0.7528 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005843/1.142, allocations: 3.521 MB / 0.7562 GB, free: 159.2 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005993/1.143, allocations: 91.23 kB / 0.7563 GB, free: 159.1 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001992/1.145, allocations: 3.496 MB / 0.7597 GB, free: 156.9 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001419/1.146, allocations: 1.423 MB / 0.7611 GB, free: 155.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001833/1.148, allocations: 1.091 MB / 0.7622 GB, free: 155.3 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.212e-05/1.148, allocations: 305.1 kB / 0.7624 GB, free: 155 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003442/1.152, allocations: 2.551 MB / 0.7649 GB, free: 154 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004317/1.156, allocations: 4.509 MB / 0.7693 GB, free: 150.6 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007743/1.164, allocations: 7.456 MB / 0.7766 GB, free: 145.5 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.188e-05/1.164, allocations: 15.91 kB / 0.7766 GB, free: 145.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01295/1.177, allocations: 8.291 MB / 0.7847 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.334e-05/1.177, allocations: 57.27 kB / 0.7848 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.244e-05/1.177, allocations: 66.14 kB / 0.7849 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002425/1.18, allocations: 1.001 MB / 0.7858 GB, free: 141.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004161/1.184, allocations: 1.257 MB / 0.7871 GB, free: 141.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01033/1.194, allocations: 8.814 MB / 0.7957 GB, free: 136 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004758/1.199, allocations: 357.6 kB / 0.796 GB, free: 135.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001008/1.2, allocations: 271.5 kB / 0.7963 GB, free: 135.5 MB / 0.5294 GB 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.005048/1.205, allocations: 2.896 MB / 0.7991 GB, free: 132.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001113/1.206, allocations: 413 kB / 0.7995 GB, free: 132.5 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008613/1.215, allocations: 6.176 MB / 0.8055 GB, free: 126.3 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.796e-05/1.215, allocations: 40 kB / 0.8056 GB, free: 126.2 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.421e-05/1.215, allocations: 9.312 kB / 0.8056 GB, free: 126.2 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.632e-05/1.215, allocations: 27.91 kB / 0.8056 GB, free: 126.2 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02223/1.237, allocations: 14.65 MB / 0.8199 GB, free: 111.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.781e-05/1.237, allocations: 5.5 kB / 0.8199 GB, free: 111.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0026/1.24, allocations: 0.6826 MB / 0.8206 GB, free: 110.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002244/1.242, allocations: 0.8814 MB / 0.8214 GB, free: 109.9 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004865/1.242, allocations: 91.97 kB / 0.8215 GB, free: 109.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008639/1.251, allocations: 7.749 MB / 0.8291 GB, free: 102 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/1.251, allocations: 4.656 kB / 0.8291 GB, free: 102 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01206/1.263, allocations: 8.793 MB / 0.8377 GB, free: 93.03 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002271/1.266, allocations: 0.9316 MB / 0.8386 GB, free: 92.07 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009582/1.267, allocations: 78.52 kB / 0.8387 GB, free: 92 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002426/1.269, allocations: 195.8 kB / 0.8388 GB, free: 91.81 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006184/1.27, allocations: 275.1 kB / 0.8391 GB, free: 91.54 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002155/1.27, allocations: 116 kB / 0.8392 GB, free: 91.43 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003181/1.273, allocations: 2.363 MB / 0.8415 GB, free: 89.07 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.21e-07/1.273, allocations: 0 / 0.8415 GB, free: 89.07 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006947/1.28, allocations: 1.457 MB / 0.8429 GB, free: 87.62 MB / 0.5294 GB 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.01267/1.293, allocations: 9.508 MB / 0.8522 GB, free: 77.99 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009969/1.303, allocations: 6.504 MB / 0.8586 GB, free: 71.47 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.135e-05/1.303, allocations: 0 / 0.8586 GB, free: 71.47 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005407/1.308, allocations: 3.078 MB / 0.8616 GB, free: 68.36 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005211/1.313, allocations: 0.8101 MB / 0.8624 GB, free: 67.58 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07016/1.384, allocations: 48.22 MB / 0.9095 GB, free: 17.25 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006007/1.39, allocations: 5.008 MB / 0.9144 GB, free: 12.2 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004121/1.394, allocations: 1.59 MB / 0.9159 GB, free: 10.61 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004062/1.398, allocations: 2.753 MB / 0.9186 GB, free: 7.852 MB / 0.5294 GB Notification: Performance of SimCode: time 1.633e-06/1.398, allocations: 0 / 0.9186 GB, free: 7.852 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3763/1.774, allocations: 111.7 MB / 1.028 GB, free: 107.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.85/19.63, allocations: 7.359 kB / 1.028 GB, free: 107.6 MB / 0.545 GB (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)