Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.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_VCurve2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2",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.0008334/0.0008332, 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.314/1.314, 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.001386/0.001387, allocations: 180.6 kB / 290.3 MB, free: 2.129 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03286/0.03286, allocations: 8.785 MB / 350.2 MB, free: 4.641 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003611/0.0003611, allocations: 10.28 kB / 413.3 MB, free: 43 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0898/0.09018, allocations: 52.56 MB / 465.8 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve2): time 0.02291/0.1131, allocations: 22.23 MB / 488.1 MB, free: 7.059 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01511/0.1283, allocations: 7.324 MB / 495.4 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004593/0.1329, allocations: 159.6 kB / 495.5 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005622/0.1386, allocations: 1.422 MB / 497 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00872/0.1473, allocations: 2.518 MB / 499.5 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00472/0.1521, allocations: 1.301 MB / 0.4891 GB, free: 10.31 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01561/0.1677, allocations: 10.81 MB / 0.4996 GB, free: 15.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02898/0.1967, allocations: 13.81 MB / 0.5131 GB, free: 1.574 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007042/0.2038, allocations: 3.508 MB / 0.5165 GB, free: 14.05 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006977/0.2108, allocations: 3.977 MB / 0.5204 GB, free: 10.06 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001878/0.2127, allocations: 0.5195 MB / 0.5209 GB, free: 9.539 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003342/0.2161, allocations: 0.8667 MB / 0.5218 GB, free: 8.672 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002236/0.2183, allocations: 1.666 MB / 0.5234 GB, free: 7 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00272/0.2211, allocations: 1.709 MB / 0.5251 GB, free: 5.285 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1923/0.4134, allocations: 15.31 MB / 0.54 GB, free: 21.72 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.231e-06/0.4135, allocations: 0 / 0.54 GB, free: 21.72 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.925e-06/0.4135, allocations: 0 / 0.54 GB, free: 21.72 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003926/0.4139, allocations: 0 / 0.54 GB, free: 21.72 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.02499/0.4389, allocations: 9.133 MB / 0.5489 GB, free: 17.23 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/0.4389, allocations: 9.156 kB / 0.5489 GB, free: 17.23 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005234/0.4442, allocations: 1.272 MB / 0.5502 GB, free: 16.92 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03063/0.4748, allocations: 5.66 MB / 0.5557 GB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01155/0.4864, allocations: 5.606 MB / 0.5612 GB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005332/0.487, allocations: 0.5808 MB / 0.5617 GB, free: 13.23 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002752/0.4897, allocations: 0.7734 MB / 0.5625 GB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02706/0.5168, allocations: 12.72 MB / 0.5749 GB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002255/0.5171, allocations: 17.89 kB / 0.5749 GB, free: 10.47 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001129/0.5182, allocations: 328 kB / 0.5752 GB, free: 10.47 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003958/0.5186, allocations: 0.4923 MB / 0.5757 GB, free: 10.4 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02361/0.5422, allocations: 12.19 MB / 0.5876 GB, free: 4.875 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0785/0.6208, allocations: 43.84 MB / 0.6304 GB, free: 9.75 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02389/0.6447, allocations: 25.13 MB / 0.655 GB, free: 13.74 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005953/0.6507, allocations: 2.971 MB / 0.6579 GB, free: 10.77 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005975/0.6514, allocations: 240.3 kB / 0.6581 GB, free: 10.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00533/0.6567, allocations: 2.578 MB / 0.6606 GB, free: 7.855 MB / 446.1 MB Notification: Performance of pre-optimization done (n=391): time 7.854e-06/0.6567, allocations: 0 / 0.6606 GB, free: 7.855 MB / 446.1 MB Notification: Performance of matching and sorting (n=397): time 0.05422/0.711, allocations: 19.68 MB / 0.6799 GB, free: 4.078 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001676/0.7112, allocations: 359.5 kB / 0.6802 GB, free: 3.652 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006856/0.718, allocations: 3.495 MB / 0.6836 GB, free: 156 kB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007603/0.7188, allocations: 89.7 kB / 0.6837 GB, free: 60 kB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002466/0.7213, allocations: 3.383 MB / 0.687 GB, free: 12.66 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001954/0.7233, allocations: 1.349 MB / 0.6883 GB, free: 11.32 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009288/0.7243, allocations: 112 kB / 0.6884 GB, free: 11.21 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0006285/0.7249, allocations: 0.5297 MB / 0.6889 GB, free: 10.68 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005583/0.7305, allocations: 2.536 MB / 0.6914 GB, free: 8.137 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006568/0.7371, allocations: 4.5 MB / 0.6958 GB, free: 2.789 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006665/0.7438, allocations: 3.534 MB / 0.6993 GB, free: 15.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.645e-05/0.7439, allocations: 20 kB / 0.6993 GB, free: 15.28 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01556/0.7595, allocations: 8.234 MB / 0.7073 GB, free: 7.41 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001019/0.7596, allocations: 57.7 kB / 0.7074 GB, free: 7.348 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001007/0.7597, allocations: 60 kB / 0.7074 GB, free: 7.289 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002618/0.7623, allocations: 1.006 MB / 0.7084 GB, free: 6.281 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004469/0.7668, allocations: 1.257 MB / 0.7096 GB, free: 5.109 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2302/0.997, allocations: 8.217 MB / 0.7177 GB, free: 167.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004542/1.002, allocations: 363.3 kB / 0.718 GB, free: 167.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008766/1.002, allocations: 265.2 kB / 0.7183 GB, free: 167.6 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.005326/1.008, allocations: 2.904 MB / 0.7211 GB, free: 167.4 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008629/1.009, allocations: 389.3 kB / 0.7215 GB, free: 167.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01018/1.019, allocations: 6.177 MB / 0.7275 GB, free: 165.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.88e-05/1.019, allocations: 42.69 kB / 0.7275 GB, free: 165.8 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.647e-05/1.019, allocations: 7.688 kB / 0.7276 GB, free: 165.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.778e-05/1.019, allocations: 23.83 kB / 0.7276 GB, free: 165.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02096/1.04, allocations: 14.91 MB / 0.7421 GB, free: 159.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.746e-05/1.04, allocations: 3.688 kB / 0.7421 GB, free: 159.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002578/1.043, allocations: 0.6842 MB / 0.7428 GB, free: 159.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002083/1.045, allocations: 0.88 MB / 0.7437 GB, free: 159.1 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003822/1.045, allocations: 88.91 kB / 0.7438 GB, free: 159 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009091/1.054, allocations: 7.173 MB / 0.7508 GB, free: 155.1 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/1.054, allocations: 5.438 kB / 0.7508 GB, free: 155.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01229/1.067, allocations: 8.762 MB / 0.7593 GB, free: 150 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002423/1.069, allocations: 0.9365 MB / 0.7602 GB, free: 149.1 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000633/1.07, allocations: 76 kB / 0.7603 GB, free: 149.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001747/1.071, allocations: 201.7 kB / 0.7605 GB, free: 148.9 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005153/1.072, allocations: 270.1 kB / 0.7608 GB, free: 148.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002062/1.072, allocations: 117.7 kB / 0.7609 GB, free: 148.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00323/1.075, allocations: 2.334 MB / 0.7632 GB, free: 146.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 6.31e-07/1.075, allocations: 4 kB / 0.7632 GB, free: 146.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005185/1.081, allocations: 1.453 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.01146/1.092, allocations: 9.465 MB / 0.7738 GB, free: 135.6 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009474/1.102, allocations: 6.437 MB / 0.7801 GB, free: 129.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.456e-06/1.102, allocations: 0 / 0.7801 GB, free: 129.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004471/1.106, allocations: 3.072 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.005317/1.111, allocations: 0.7992 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.09111/1.203, allocations: 40.6 MB / 0.8235 GB, free: 82.58 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006734/1.209, allocations: 5.005 MB / 0.8284 GB, free: 77.53 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005328/1.215, allocations: 1.591 MB / 0.83 GB, free: 75.94 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004257/1.219, allocations: 2.753 MB / 0.8327 GB, free: 73.18 MB / 494.1 MB Notification: Performance of SimCode: time 9.01e-07/1.219, allocations: 0 / 0.8327 GB, free: 73.18 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3405/1.56, allocations: 108.1 MB / 0.9383 GB, free: 142.3 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001946/1.56, allocations: 210.9 kB / 0.9385 GB, free: 142.1 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.045/5.605, allocations: 0 / 0.9385 GB, free: 142.1 MB / 494.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe 2>&1) Environment - environmentSimulation: