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.001034/0.001034, allocations: 99.94 kB / 15.05 MB, free: 1.105 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.308/1.308, allocations: 223.2 MB / 238.9 MB, free: 5.656 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.001101/0.001101, allocations: 188.5 kB / 290.2 MB, free: 2.348 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03225/0.03225, allocations: 8.795 MB / 350.1 MB, free: 4.719 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003946/0.0003949, allocations: 10.62 kB / 413.2 MB, free: 43.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09693/0.09735, allocations: 52.57 MB / 465.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve2): time 0.02318/0.1206, allocations: 20.42 MB / 486.2 MB, free: 8.98 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01527/0.1359, allocations: 7.534 MB / 493.7 MB, free: 1.43 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004406/0.1404, allocations: 151.5 kB / 493.8 MB, free: 1.281 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005514/0.1459, allocations: 1.516 MB / 495.4 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009528/0.1555, allocations: 2.608 MB / 498 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00493/0.1604, allocations: 1.344 MB / 499.3 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01442/0.1748, allocations: 7.885 MB / 0.4953 GB, free: 3.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02508/0.2, allocations: 13.63 MB / 0.5086 GB, free: 6.199 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006083/0.2061, allocations: 3.224 MB / 0.5118 GB, free: 2.965 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006654/0.2128, allocations: 3.58 MB / 0.5153 GB, free: 15.37 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002614/0.2155, allocations: 0.5156 MB / 0.5158 GB, free: 14.86 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004793/0.2203, allocations: 0.8276 MB / 0.5166 GB, free: 14.03 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003982/0.2243, allocations: 1.6 MB / 0.5181 GB, free: 12.42 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004045/0.2284, allocations: 1.705 MB / 0.5198 GB, free: 10.71 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2425/0.4709, allocations: 15.26 MB / 0.5347 GB, free: 21.68 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.042e-06/0.471, allocations: 1.219 kB / 0.5347 GB, free: 21.68 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.878e-06/0.471, allocations: 0 / 0.5347 GB, free: 21.68 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006217/0.4716, allocations: 0.5625 kB / 0.5347 GB, free: 21.68 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.02876/0.5004, allocations: 9.068 MB / 0.5436 GB, free: 18.95 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.352e-05/0.5005, allocations: 8.25 kB / 0.5436 GB, free: 18.95 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006366/0.5068, allocations: 1.27 MB / 0.5448 GB, free: 18.66 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03303/0.5399, allocations: 5.583 MB / 0.5503 GB, free: 16.58 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01368/0.5536, allocations: 5.562 MB / 0.5557 GB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005691/0.5542, allocations: 0.5777 MB / 0.5562 GB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004756/0.559, allocations: 0.7659 MB / 0.557 GB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03198/0.591, allocations: 12.66 MB / 0.5694 GB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003789/0.5914, allocations: 10.84 kB / 0.5694 GB, free: 12.33 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002751/0.5942, allocations: 325.3 kB / 0.5697 GB, free: 12.33 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004604/0.5947, allocations: 0.5001 MB / 0.5702 GB, free: 12.26 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02398/0.6186, allocations: 12.2 MB / 0.5821 GB, free: 6.531 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.081/0.6997, allocations: 43.83 MB / 0.6249 GB, free: 12.2 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02459/0.7243, allocations: 25.13 MB / 0.6494 GB, free: 192 kB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006782/0.7251, allocations: 240.6 kB / 0.6497 GB, free: 15.93 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004297/0.7294, allocations: 2.578 MB / 0.6522 GB, free: 13.29 MB / 446.1 MB Notification: Performance of pre-optimization done (n=391): time 5.44e-06/0.7294, allocations: 4 kB / 0.6522 GB, free: 13.28 MB / 446.1 MB Notification: Performance of matching and sorting (n=397): time 0.03828/0.7677, allocations: 18.09 MB / 0.6698 GB, free: 11.09 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001687/0.7679, allocations: 359.5 kB / 0.6702 GB, free: 10.66 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005307/0.7732, allocations: 3.494 MB / 0.6736 GB, free: 7.168 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00055/0.7738, allocations: 85.7 kB / 0.6737 GB, free: 7.078 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002294/0.7761, allocations: 3.377 MB / 0.677 GB, free: 3.68 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001487/0.7776, allocations: 1.352 MB / 0.6783 GB, free: 2.34 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002756/0.7779, allocations: 115.9 kB / 0.6784 GB, free: 2.227 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003608/0.7782, allocations: 0.5258 MB / 0.6789 GB, free: 1.695 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004009/0.7822, allocations: 2.548 MB / 0.6814 GB, free: 15.14 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005372/0.7876, allocations: 4.476 MB / 0.6858 GB, free: 9.812 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005196/0.7928, allocations: 3.55 MB / 0.6893 GB, free: 6.305 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.218e-05/0.7929, allocations: 16 kB / 0.6893 GB, free: 6.289 MB / 478.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01328/0.8062, allocations: 8.254 MB / 0.6973 GB, free: 14.4 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.663e-05/0.8063, allocations: 59.27 kB / 0.6974 GB, free: 14.34 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.365e-05/0.8064, allocations: 60 kB / 0.6974 GB, free: 14.28 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002674/0.8091, allocations: 1.014 MB / 0.6984 GB, free: 13.26 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004248/0.8133, allocations: 1.259 MB / 0.6997 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01227/0.8256, allocations: 8.507 MB / 0.708 GB, free: 3.492 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004515/0.8302, allocations: 363.4 kB / 0.7083 GB, free: 3.137 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007824/0.831, allocations: 264 kB / 0.7086 GB, free: 2.879 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.005243/0.8362, allocations: 2.898 MB / 0.7114 GB, free: 52 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2246/1.061, allocations: 387.6 kB / 0.7118 GB, free: 170.2 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01179/1.073, allocations: 6.189 MB / 0.7178 GB, free: 170 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.266e-05/1.073, allocations: 41.25 kB / 0.7178 GB, free: 170 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.71e-05/1.073, allocations: 9.625 kB / 0.7179 GB, free: 170 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.846e-05/1.073, allocations: 23.84 kB / 0.7179 GB, free: 170 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02908/1.102, allocations: 14.92 MB / 0.7324 GB, free: 164.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.725e-05/1.102, allocations: 9.25 kB / 0.7325 GB, free: 164.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002773/1.105, allocations: 0.686 MB / 0.7331 GB, free: 164.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002241/1.107, allocations: 0.8858 MB / 0.734 GB, free: 164.6 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003303/1.107, allocations: 87.31 kB / 0.7341 GB, free: 164.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009129/1.117, allocations: 7.439 MB / 0.7413 GB, free: 160.4 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/1.117, allocations: 3.906 kB / 0.7413 GB, free: 160.4 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01135/1.128, allocations: 9.229 MB / 0.7504 GB, free: 156.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002435/1.13, allocations: 0.945 MB / 0.7513 GB, free: 155.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008162/1.131, allocations: 76.92 kB / 0.7514 GB, free: 155.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002131/1.133, allocations: 200.3 kB / 0.7515 GB, free: 155.6 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005249/1.134, allocations: 269.6 kB / 0.7518 GB, free: 155.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000199/1.134, allocations: 114.2 kB / 0.7519 GB, free: 155.5 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003423/1.138, allocations: 2.333 MB / 0.7542 GB, free: 153.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.01e-07/1.138, allocations: 3.906 kB / 0.7542 GB, free: 153.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006058/1.144, allocations: 1.457 MB / 0.7556 GB, free: 152.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.01157/1.155, allocations: 11.04 MB / 0.7664 GB, free: 141.1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009165/1.164, allocations: 6.463 MB / 0.7727 GB, free: 134.6 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.797e-06/1.164, allocations: 7.844 kB / 0.7727 GB, free: 134.6 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004198/1.169, allocations: 3.087 MB / 0.7757 GB, free: 131.5 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003366/1.172, allocations: 0.7171 MB / 0.7764 GB, free: 130.8 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08501/1.257, allocations: 81.75 MB / 0.8563 GB, free: 46.62 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004333/1.261, allocations: 5.133 MB / 0.8613 GB, free: 41.44 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004422/1.266, allocations: 1.59 MB / 0.8628 GB, free: 39.85 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003173/1.269, allocations: 2.756 MB / 0.8655 GB, free: 37.09 MB / 494.1 MB Notification: Performance of SimCode: time 1.183e-06/1.269, allocations: 0 / 0.8655 GB, free: 37.09 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3367/1.606, allocations: 107.8 MB / 0.9708 GB, free: 120 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001464/1.606, allocations: 199.2 kB / 0.971 GB, free: 119.7 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.075/5.681, allocations: 7.766 kB / 0.971 GB, free: 119.7 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: