Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.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.SMEE_VCurve4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4",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.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.39/1.39, allocations: 223.3 MB / 239 MB, free: 5.453 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.00164/0.00164, allocations: 184.5 kB / 290.3 MB, free: 2.148 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03297/0.03297, allocations: 8.789 MB / 350.1 MB, free: 4.664 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003698/0.00037, allocations: 10.62 kB / 413.3 MB, free: 42.98 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09304/0.09343, allocations: 52.56 MB / 465.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve4): time 0.02069/0.1142, allocations: 22.23 MB / 488.1 MB, free: 7.094 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01521/0.1294, allocations: 7.324 MB / 495.4 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005988/0.1354, allocations: 155.6 kB / 495.5 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00584/0.1413, allocations: 1.426 MB / 497 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008405/0.1497, allocations: 2.513 MB / 499.5 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004534/0.1543, allocations: 1.301 MB / 0.489 GB, free: 10.35 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01414/0.1685, allocations: 10.82 MB / 0.4996 GB, free: 15.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02844/0.1969, allocations: 13.8 MB / 0.5131 GB, free: 1.609 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007442/0.2044, allocations: 3.508 MB / 0.5165 GB, free: 14.09 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007818/0.2123, allocations: 3.981 MB / 0.5204 GB, free: 10.09 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002242/0.2145, allocations: 0.5195 MB / 0.5209 GB, free: 9.574 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004155/0.2187, allocations: 0.8668 MB / 0.5218 GB, free: 8.707 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002572/0.2213, allocations: 1.666 MB / 0.5234 GB, free: 7.035 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004128/0.2254, allocations: 1.709 MB / 0.5251 GB, free: 5.316 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2191/0.4446, allocations: 15.31 MB / 0.54 GB, free: 21.79 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.634e-06/0.4446, allocations: 0 / 0.54 GB, free: 21.79 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.4447, allocations: 1 kB / 0.54 GB, free: 21.79 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005451/0.4452, allocations: 0 / 0.54 GB, free: 21.79 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.02573/0.4709, allocations: 9.133 MB / 0.5489 GB, free: 17.31 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/0.471, allocations: 9.906 kB / 0.5489 GB, free: 17.31 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006451/0.4775, allocations: 1.271 MB / 0.5502 GB, free: 16.99 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0309/0.5084, allocations: 5.663 MB / 0.5557 GB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01196/0.5204, allocations: 5.595 MB / 0.5612 GB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005892/0.521, allocations: 0.5869 MB / 0.5617 GB, free: 13.3 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003186/0.5242, allocations: 0.7678 MB / 0.5625 GB, free: 13.3 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02553/0.5497, allocations: 12.72 MB / 0.5749 GB, free: 10.56 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002018/0.55, allocations: 18.19 kB / 0.5749 GB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009318/0.5509, allocations: 325.9 kB / 0.5752 GB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003831/0.5513, allocations: 0.4978 MB / 0.5757 GB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02041/0.5717, allocations: 12.19 MB / 0.5876 GB, free: 4.926 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07074/0.6425, allocations: 43.83 MB / 0.6304 GB, free: 9.773 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02292/0.6655, allocations: 25.14 MB / 0.655 GB, free: 13.76 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005238/0.6707, allocations: 2.967 MB / 0.6579 GB, free: 10.79 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005351/0.6713, allocations: 252.2 kB / 0.6581 GB, free: 10.52 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004145/0.6755, allocations: 2.571 MB / 0.6606 GB, free: 7.879 MB / 446.1 MB Notification: Performance of pre-optimization done (n=391): time 1.609e-05/0.6755, allocations: 0 / 0.6606 GB, free: 7.879 MB / 446.1 MB Notification: Performance of matching and sorting (n=397): time 0.04395/0.7194, allocations: 19.68 MB / 0.6799 GB, free: 4.094 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002009/0.7197, allocations: 355.5 kB / 0.6802 GB, free: 3.672 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006024/0.7257, allocations: 3.499 MB / 0.6836 GB, free: 172 kB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008199/0.7266, allocations: 89.7 kB / 0.6837 GB, free: 76 kB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002642/0.7292, allocations: 3.379 MB / 0.687 GB, free: 12.68 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002042/0.7313, allocations: 1.341 MB / 0.6883 GB, free: 11.34 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003889/0.7317, allocations: 116 kB / 0.6884 GB, free: 11.23 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0003842/0.7321, allocations: 0.5297 MB / 0.6889 GB, free: 10.7 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004533/0.7366, allocations: 2.537 MB / 0.6914 GB, free: 8.152 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00665/0.7433, allocations: 4.503 MB / 0.6958 GB, free: 2.809 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007912/0.7513, allocations: 3.535 MB / 0.6993 GB, free: 15.32 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000145/0.7515, allocations: 16 kB / 0.6993 GB, free: 15.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01922/0.7707, allocations: 8.233 MB / 0.7073 GB, free: 7.426 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00013/0.7709, allocations: 57.69 kB / 0.7074 GB, free: 7.363 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001447/0.7711, allocations: 64 kB / 0.7074 GB, free: 7.301 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002723/0.7738, allocations: 1.002 MB / 0.7084 GB, free: 6.301 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004886/0.7787, allocations: 1.259 MB / 0.7096 GB, free: 5.125 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2386/1.017, allocations: 8.218 MB / 0.7177 GB, free: 167.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005063/1.022, allocations: 359.1 kB / 0.718 GB, free: 167.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001482/1.024, allocations: 266.2 kB / 0.7183 GB, free: 167.5 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,53.0%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006585/1.03, allocations: 2.903 MB / 0.7211 GB, free: 167.4 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009503/1.031, allocations: 388.5 kB / 0.7215 GB, free: 167.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01021/1.042, allocations: 6.184 MB / 0.7275 GB, free: 165.7 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.927e-05/1.042, allocations: 46.31 kB / 0.7276 GB, free: 165.7 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.439e-05/1.042, allocations: 7.562 kB / 0.7276 GB, free: 165.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.499e-05/1.042, allocations: 22.05 kB / 0.7276 GB, free: 165.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0214/1.063, allocations: 14.9 MB / 0.7421 GB, free: 159.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.517e-05/1.063, allocations: 10.69 kB / 0.7421 GB, free: 159.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002341/1.066, allocations: 0.6844 MB / 0.7428 GB, free: 159.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002055/1.068, allocations: 0.8779 MB / 0.7437 GB, free: 159.1 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002724/1.068, allocations: 85.73 kB / 0.7438 GB, free: 159 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008495/1.076, allocations: 7.176 MB / 0.7508 GB, free: 155 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-06/1.076, allocations: 4.969 kB / 0.7508 GB, free: 155 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01151/1.088, allocations: 8.758 MB / 0.7593 GB, free: 150 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002209/1.09, allocations: 0.9317 MB / 0.7602 GB, free: 149.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006931/1.091, allocations: 72 kB / 0.7603 GB, free: 149.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001735/1.093, allocations: 204.4 kB / 0.7605 GB, free: 149 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004312/1.093, allocations: 268.2 kB / 0.7607 GB, free: 148.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001936/1.093, allocations: 118.8 kB / 0.7609 GB, free: 148.7 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002946/1.096, allocations: 2.342 MB / 0.7631 GB, free: 146.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.693e-06/1.096, allocations: 0 / 0.7631 GB, free: 146.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004852/1.101, allocations: 1.451 MB / 0.7646 GB, free: 145.2 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,50.0%) 46} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01107/1.112, allocations: 9.467 MB / 0.7738 GB, free: 135.7 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009053/1.121, allocations: 6.433 MB / 0.7801 GB, free: 129.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.817e-06/1.121, allocations: 4.062 kB / 0.7801 GB, free: 129.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004669/1.126, allocations: 3.077 MB / 0.7831 GB, free: 126.1 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005427/1.132, allocations: 0.798 MB / 0.7839 GB, free: 125.3 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08768/1.219, allocations: 40.6 MB / 0.8235 GB, free: 82.62 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006406/1.226, allocations: 5.005 MB / 0.8284 GB, free: 77.57 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005509/1.231, allocations: 1.586 MB / 0.83 GB, free: 75.98 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004564/1.236, allocations: 2.76 MB / 0.8327 GB, free: 73.22 MB / 494.1 MB Notification: Performance of SimCode: time 9.12e-07/1.236, allocations: 3.938 kB / 0.8327 GB, free: 73.21 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3115/1.547, allocations: 108.1 MB / 0.9382 GB, free: 142.4 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001261/1.548, allocations: 211.3 kB / 0.9384 GB, free: 142.2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.253/5.8, allocations: 3.938 kB / 0.9385 GB, free: 142.1 MB / 494.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe 2>&1) Environment - environmentSimulation: