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-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_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.001663/0.001663, allocations: 109.4 kB / 15.69 MB, free: 128 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.458/1.458, allocations: 222.9 MB / 239.3 MB, free: 4.551 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.001289/0.001289, allocations: 180.5 kB / 289.6 MB, free: 2.281 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03442/0.03442, allocations: 8.799 MB / 348.6 MB, free: 4.668 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001548/0.001548, allocations: 76.78 kB / 411.3 MB, free: 41.95 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07926/0.08083, allocations: 51.57 MB / 462.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve4): time 0.02661/0.1075, allocations: 25.44 MB / 488.4 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01547/0.123, allocations: 7.933 MB / 496.3 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004295/0.1273, allocations: 171.5 kB / 496.5 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01697/0.1443, allocations: 7.653 MB / 0.4923 GB, free: 4.785 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009105/0.1535, allocations: 3.045 MB / 0.4953 GB, free: 1.727 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00588/0.1594, allocations: 2.026 MB / 0.4972 GB, free: 15.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01189/0.1713, allocations: 9.229 MB / 0.5063 GB, free: 6.453 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02561/0.1969, allocations: 17.27 MB / 0.5231 GB, free: 5.035 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008458/0.2054, allocations: 4.745 MB / 0.5277 GB, free: 284 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1965/0.402, allocations: 5.23 MB / 0.5329 GB, free: 23.17 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003856/0.4059, allocations: 1.353 MB / 0.5342 GB, free: 23.17 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006252/0.4122, allocations: 1.717 MB / 0.5359 GB, free: 23.17 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005566/0.4178, allocations: 2.678 MB / 0.5385 GB, free: 22.88 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01082/0.4287, allocations: 5.08 MB / 0.5434 GB, free: 21.73 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01973/0.4484, allocations: 18.16 MB / 0.5612 GB, free: 16.55 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.001e-05/0.4485, allocations: 1.625 kB / 0.5612 GB, free: 16.55 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.4485, allocations: 0 / 0.5612 GB, free: 16.55 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005013/0.449, allocations: 0 / 0.5612 GB, free: 16.55 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.03549/0.4845, allocations: 10.75 MB / 0.5717 GB, free: 9.809 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.514e-05/0.4846, allocations: 7.531 kB / 0.5717 GB, free: 9.809 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00532/0.4899, allocations: 1.264 MB / 0.5729 GB, free: 8.992 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0321/0.522, allocations: 5.674 MB / 0.5784 GB, free: 6.449 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01293/0.535, allocations: 5.806 MB / 0.5841 GB, free: 2.602 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000607/0.5357, allocations: 0.582 MB / 0.5847 GB, free: 2.348 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004031/0.5397, allocations: 0.7569 MB / 0.5854 GB, free: 1.648 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03559/0.5754, allocations: 12.78 MB / 0.5979 GB, free: 4.852 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003848/0.5758, allocations: 15.89 kB / 0.5979 GB, free: 4.836 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003036/0.5789, allocations: 320.9 kB / 0.5982 GB, free: 4.535 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006254/0.5795, allocations: 0.4967 MB / 0.5987 GB, free: 4.035 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02764/0.6072, allocations: 12.26 MB / 0.6107 GB, free: 7.762 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08191/0.6891, allocations: 43.25 MB / 0.6529 GB, free: 11.9 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0242/0.7134, allocations: 25.19 MB / 0.6775 GB, free: 15.88 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005212/0.7186, allocations: 2.976 MB / 0.6804 GB, free: 12.9 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004548/0.7191, allocations: 245.2 kB / 0.6807 GB, free: 12.64 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004705/0.7238, allocations: 2.578 MB / 0.6832 GB, free: 9.996 MB / 478.1 MB Notification: Performance of pre-optimization done (n=391): time 7.134e-06/0.7238, allocations: 0 / 0.6832 GB, free: 9.996 MB / 478.1 MB Notification: Performance of matching and sorting (n=397): time 0.04537/0.7692, allocations: 18.11 MB / 0.7009 GB, free: 7.781 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001791/0.7694, allocations: 351.5 kB / 0.7012 GB, free: 7.363 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006868/0.7763, allocations: 3.522 MB / 0.7046 GB, free: 3.836 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006702/0.777, allocations: 93.7 kB / 0.7047 GB, free: 3.738 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002489/0.7795, allocations: 3.38 MB / 0.708 GB, free: 348 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.1829/0.9624, allocations: 1.345 MB / 0.7093 GB, free: 166.2 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003323/0.9658, allocations: 1.079 MB / 0.7104 GB, free: 166.1 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.288e-05/0.9658, allocations: 307.5 kB / 0.7107 GB, free: 165.8 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004467/0.9703, allocations: 2.551 MB / 0.7132 GB, free: 165.8 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006704/0.977, allocations: 4.511 MB / 0.7176 GB, free: 163.5 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01155/0.9886, allocations: 7.447 MB / 0.7249 GB, free: 161 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.637e-05/0.9888, allocations: 21.69 kB / 0.7249 GB, free: 161 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01834/1.007, allocations: 8.275 MB / 0.733 GB, free: 159 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001439/1.007, allocations: 58.48 kB / 0.733 GB, free: 159 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001257/1.007, allocations: 62.5 kB / 0.7331 GB, free: 159 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002912/1.01, allocations: 0.9948 MB / 0.734 GB, free: 158.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005022/1.015, allocations: 1.258 MB / 0.7353 GB, free: 158.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01192/1.027, allocations: 8.823 MB / 0.7439 GB, free: 153.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004968/1.032, allocations: 356.9 kB / 0.7442 GB, free: 153.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001219/1.034, allocations: 260.1 kB / 0.7445 GB, free: 153.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 (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.006028/1.04, allocations: 2.912 MB / 0.7473 GB, free: 152 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001218/1.041, allocations: 389.8 kB / 0.7477 GB, free: 151.8 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01179/1.053, allocations: 6.165 MB / 0.7537 GB, free: 148.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.674e-05/1.053, allocations: 44 kB / 0.7538 GB, free: 148.8 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.113e-05/1.053, allocations: 16.56 kB / 0.7538 GB, free: 148.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.966e-05/1.053, allocations: 22.97 kB / 0.7538 GB, free: 148.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02721/1.08, allocations: 14.64 MB / 0.7681 GB, free: 136.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.232e-05/1.08, allocations: 8.125 kB / 0.7681 GB, free: 136.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00303/1.083, allocations: 0.684 MB / 0.7688 GB, free: 136.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002608/1.086, allocations: 0.877 MB / 0.7696 GB, free: 135.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005903/1.086, allocations: 87.75 kB / 0.7697 GB, free: 135.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009866/1.096, allocations: 7.737 MB / 0.7773 GB, free: 127.7 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.713e-06/1.096, allocations: 11.97 kB / 0.7773 GB, free: 127.7 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0136/1.11, allocations: 8.782 MB / 0.7858 GB, free: 118.8 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002316/1.112, allocations: 0.9062 MB / 0.7867 GB, free: 117.8 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001365/1.114, allocations: 81.48 kB / 0.7868 GB, free: 117.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003372/1.117, allocations: 197.5 kB / 0.787 GB, free: 117.6 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009592/1.118, allocations: 271.1 kB / 0.7873 GB, free: 117.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004202/1.119, allocations: 112 kB / 0.7874 GB, free: 117.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004554/1.123, allocations: 2.363 MB / 0.7897 GB, free: 114.8 MB / 494.1 MB Notification: Performance of sort global known variables: time 7.62e-07/1.123, allocations: 0 / 0.7897 GB, free: 114.8 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006367/1.13, 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.01359/1.143, allocations: 9.495 MB / 0.8004 GB, free: 103.8 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01012/1.153, allocations: 6.482 MB / 0.8067 GB, free: 97.27 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.418e-06/1.153, allocations: 2.812 kB / 0.8067 GB, free: 97.27 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005048/1.158, allocations: 3.084 MB / 0.8097 GB, free: 94.16 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005041/1.163, allocations: 0.8146 MB / 0.8105 GB, free: 93.39 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08882/1.252, allocations: 48.01 MB / 0.8574 GB, free: 43.29 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009901/1.262, allocations: 5.004 MB / 0.8623 GB, free: 38.25 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006098/1.268, allocations: 1.587 MB / 0.8638 GB, free: 36.68 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006006/1.274, allocations: 2.756 MB / 0.8665 GB, free: 33.92 MB / 494.1 MB Notification: Performance of SimCode: time 1.563e-06/1.275, allocations: 0 / 0.8665 GB, free: 33.92 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3455/1.62, allocations: 108.4 MB / 0.9724 GB, free: 99.05 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.18/19.8, allocations: 16.61 kB / 0.9724 GB, free: 99.04 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/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)