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.001526/0.001526, allocations: 105.4 kB / 15.7 MB, free: 24 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.37/1.37, allocations: 222.9 MB / 239.4 MB, free: 4.617 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.00123/0.00123, allocations: 192.5 kB / 289.7 MB, free: 2.336 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03462/0.03462, allocations: 8.781 MB / 348.6 MB, free: 4.68 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001548/0.001548, allocations: 82.14 kB / 411.3 MB, free: 41.93 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09451/0.09608, allocations: 51.56 MB / 462.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.02554/0.1217, allocations: 25.43 MB / 488.3 MB, free: 4.617 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01797/0.1397, allocations: 7.936 MB / 496.3 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006121/0.1459, allocations: 175.5 kB / 496.4 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01797/0.1639, allocations: 7.653 MB / 0.4923 GB, free: 4.812 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01135/0.1753, allocations: 3.038 MB / 0.4953 GB, free: 1.762 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006822/0.1822, allocations: 2.03 MB / 0.4972 GB, free: 15.74 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01469/0.1969, allocations: 9.22 MB / 0.5062 GB, free: 6.488 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02952/0.2264, allocations: 17.26 MB / 0.5231 GB, free: 5.074 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008294/0.2348, allocations: 4.749 MB / 0.5277 GB, free: 320 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2122/0.447, allocations: 5.225 MB / 0.5328 GB, free: 23.1 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004439/0.4515, allocations: 1.355 MB / 0.5342 GB, free: 23.1 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006528/0.458, allocations: 1.715 MB / 0.5358 GB, free: 23.1 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005325/0.4634, allocations: 2.674 MB / 0.5384 GB, free: 22.81 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01308/0.4765, allocations: 5.083 MB / 0.5434 GB, free: 21.65 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02659/0.5031, allocations: 18.16 MB / 0.5611 GB, free: 16.48 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.809e-06/0.5032, allocations: 0 / 0.5611 GB, free: 16.48 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.5032, allocations: 3.281 kB / 0.5611 GB, free: 16.48 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006941/0.5039, allocations: 0 / 0.5611 GB, free: 16.48 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.04194/0.5459, allocations: 10.75 MB / 0.5716 GB, free: 9.73 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/0.5459, allocations: 9.906 kB / 0.5717 GB, free: 9.73 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005765/0.5517, allocations: 1.267 MB / 0.5729 GB, free: 8.914 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03232/0.5841, allocations: 5.679 MB / 0.5784 GB, free: 6.367 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01315/0.5973, allocations: 5.798 MB / 0.5841 GB, free: 2.527 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005378/0.5979, allocations: 0.5783 MB / 0.5847 GB, free: 2.27 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003954/0.6018, allocations: 0.764 MB / 0.5854 GB, free: 1.66 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03859/0.6404, allocations: 12.78 MB / 0.5979 GB, free: 4.871 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003901/0.6409, allocations: 12.98 kB / 0.5979 GB, free: 4.859 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003371/0.6443, allocations: 323.6 kB / 0.5982 GB, free: 4.559 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006015/0.6449, allocations: 0.5041 MB / 0.5987 GB, free: 4.055 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03037/0.6753, allocations: 12.25 MB / 0.6107 GB, free: 7.785 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08768/0.763, allocations: 43.24 MB / 0.6529 GB, free: 11.93 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02572/0.7888, allocations: 25.19 MB / 0.6775 GB, free: 15.91 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00576/0.7946, allocations: 2.968 MB / 0.6804 GB, free: 12.93 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005069/0.7951, allocations: 246 kB / 0.6806 GB, free: 12.66 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004866/0.8, allocations: 2.578 MB / 0.6832 GB, free: 10.02 MB / 478.1 MB Notification: Performance of pre-optimization done (n=391): time 8.927e-06/0.8001, allocations: 4 kB / 0.6832 GB, free: 10.02 MB / 478.1 MB Notification: Performance of matching and sorting (n=397): time 0.043/0.8431, allocations: 18.11 MB / 0.7008 GB, free: 7.809 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001899/0.8433, allocations: 355.5 kB / 0.7012 GB, free: 7.387 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006799/0.8501, allocations: 3.526 MB / 0.7046 GB, free: 3.859 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007439/0.8509, allocations: 97.64 kB / 0.7047 GB, free: 3.758 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002618/0.8535, allocations: 3.368 MB / 0.708 GB, free: 376 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.1911/1.045, allocations: 1.351 MB / 0.7093 GB, free: 166.4 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002621/1.047, allocations: 1.077 MB / 0.7104 GB, free: 166.3 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 6.602e-05/1.047, allocations: 309.8 kB / 0.7107 GB, free: 166 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004105/1.052, allocations: 2.547 MB / 0.7132 GB, free: 166 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006156/1.058, allocations: 4.511 MB / 0.7176 GB, free: 163.7 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01171/1.069, allocations: 7.453 MB / 0.7248 GB, free: 161.2 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001198/1.07, allocations: 17.5 kB / 0.7249 GB, free: 161.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01885/1.088, allocations: 8.276 MB / 0.7329 GB, free: 159.2 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001485/1.089, allocations: 66.3 kB / 0.733 GB, free: 159.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001701/1.089, allocations: 58.78 kB / 0.7331 GB, free: 159.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003006/1.092, allocations: 0.9992 MB / 0.734 GB, free: 158.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005274/1.097, allocations: 1.257 MB / 0.7353 GB, free: 158.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01235/1.11, allocations: 8.808 MB / 0.7439 GB, free: 153.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006046/1.116, allocations: 358.2 kB / 0.7442 GB, free: 153.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001677/1.117, allocations: 267.3 kB / 0.7445 GB, free: 153.7 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.00819/1.126, allocations: 2.9 MB / 0.7473 GB, free: 152.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001452/1.127, allocations: 388.2 kB / 0.7477 GB, free: 151.9 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01419/1.141, allocations: 6.181 MB / 0.7537 GB, free: 148.9 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.229e-05/1.141, allocations: 40 kB / 0.7537 GB, free: 148.9 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.113e-05/1.141, allocations: 13.58 kB / 0.7538 GB, free: 148.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.939e-05/1.142, allocations: 23.17 kB / 0.7538 GB, free: 148.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03005/1.172, allocations: 14.64 MB / 0.7681 GB, free: 136.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.155e-05/1.172, allocations: 4 kB / 0.7681 GB, free: 136.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002762/1.174, allocations: 0.685 MB / 0.7687 GB, free: 136.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002477/1.177, allocations: 0.8822 MB / 0.7696 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005583/1.177, allocations: 83.47 kB / 0.7697 GB, free: 135.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009801/1.187, allocations: 7.745 MB / 0.7772 GB, free: 127.7 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.775e-06/1.187, allocations: 10.12 kB / 0.7773 GB, free: 127.7 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01475/1.202, allocations: 8.784 MB / 0.7858 GB, free: 118.8 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003761/1.206, allocations: 0.9062 MB / 0.7867 GB, free: 117.9 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001383/1.207, allocations: 76.28 kB / 0.7868 GB, free: 117.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002816/1.21, allocations: 199.8 kB / 0.787 GB, free: 117.6 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000915/1.211, allocations: 275.1 kB / 0.7872 GB, free: 117.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003438/1.212, allocations: 112 kB / 0.7874 GB, free: 117.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004455/1.216, allocations: 2.367 MB / 0.7897 GB, free: 114.9 MB / 494.1 MB Notification: Performance of sort global known variables: time 8.01e-07/1.216, allocations: 0 / 0.7897 GB, free: 114.9 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007617/1.224, allocations: 1.452 MB / 0.7911 GB, free: 113.4 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.01604/1.24, allocations: 9.492 MB / 0.8004 GB, free: 103.8 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0121/1.252, allocations: 6.484 MB / 0.8067 GB, free: 97.32 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.358e-05/1.252, allocations: 0 / 0.8067 GB, free: 97.32 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005837/1.258, allocations: 3.075 MB / 0.8097 GB, free: 94.22 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006544/1.264, allocations: 0.8187 MB / 0.8105 GB, free: 93.45 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09026/1.355, allocations: 47.99 MB / 0.8574 GB, free: 43.37 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008855/1.364, allocations: 5.006 MB / 0.8622 GB, free: 38.32 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005459/1.369, allocations: 1.591 MB / 0.8638 GB, free: 36.75 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005868/1.375, allocations: 2.753 MB / 0.8665 GB, free: 33.99 MB / 494.1 MB Notification: Performance of SimCode: time 1.262e-06/1.375, allocations: 7.875 kB / 0.8665 GB, free: 33.98 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3712/1.746, allocations: 108.4 MB / 0.9724 GB, free: 99.63 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.88/20.62, allocations: 7.922 kB / 0.9724 GB, free: 99.62 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)