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.0009412/0.0009413, allocations: 100.1 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.34/1.34, allocations: 223.2 MB / 238.9 MB, free: 5.672 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.001142/0.001142, allocations: 189 kB / 290.2 MB, free: 2.359 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03202/0.03202, allocations: 8.79 MB / 350.1 MB, free: 4.762 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003626/0.0003627, allocations: 18.42 kB / 413.2 MB, free: 43.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08773/0.0881, allocations: 52.56 MB / 465.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve4): time 0.02045/0.1086, allocations: 20.42 MB / 486.2 MB, free: 9.035 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0144/0.123, allocations: 7.541 MB / 493.7 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004537/0.1276, allocations: 151.5 kB / 493.8 MB, free: 1.328 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005459/0.1331, allocations: 1.512 MB / 495.4 MB, free: 15.81 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00876/0.1419, allocations: 2.608 MB / 498 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004485/0.1464, allocations: 1.346 MB / 499.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01281/0.1592, allocations: 7.881 MB / 0.4953 GB, free: 3.965 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02552/0.1847, allocations: 13.62 MB / 0.5086 GB, free: 6.266 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007235/0.192, allocations: 3.224 MB / 0.5118 GB, free: 3.031 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007136/0.1992, allocations: 3.58 MB / 0.5152 GB, free: 15.43 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002427/0.2017, allocations: 0.5195 MB / 0.5158 GB, free: 14.91 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004873/0.2066, allocations: 0.8236 MB / 0.5166 GB, free: 14.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003255/0.2099, allocations: 1.6 MB / 0.5181 GB, free: 12.49 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003434/0.2133, allocations: 1.709 MB / 0.5198 GB, free: 10.77 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2446/0.4579, allocations: 15.25 MB / 0.5347 GB, free: 21.71 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.458, allocations: 0 / 0.5347 GB, free: 21.71 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.458, allocations: 0.5625 kB / 0.5347 GB, free: 21.71 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000545/0.4585, allocations: 3.828 kB / 0.5347 GB, free: 21.71 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.02662/0.4852, allocations: 9.065 MB / 0.5435 GB, free: 18.98 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.4852, allocations: 9.625 kB / 0.5436 GB, free: 18.98 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004572/0.4898, allocations: 1.268 MB / 0.5448 GB, free: 18.68 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03208/0.5219, allocations: 5.578 MB / 0.5502 GB, free: 16.61 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0147/0.5366, allocations: 5.568 MB / 0.5557 GB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006064/0.5373, allocations: 0.5844 MB / 0.5562 GB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003786/0.5411, allocations: 0.761 MB / 0.557 GB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03096/0.572, allocations: 12.65 MB / 0.5693 GB, free: 12.36 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003269/0.5724, allocations: 16.48 kB / 0.5694 GB, free: 12.35 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002687/0.5751, allocations: 324.3 kB / 0.5697 GB, free: 12.35 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004723/0.5756, allocations: 0.4978 MB / 0.5702 GB, free: 12.29 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02426/0.5998, allocations: 12.2 MB / 0.5821 GB, free: 6.598 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07527/0.6751, allocations: 43.84 MB / 0.6249 GB, free: 12.27 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02361/0.6988, allocations: 25.15 MB / 0.6494 GB, free: 252 kB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006689/0.6995, allocations: 242.8 kB / 0.6497 GB, free: 15.98 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004315/0.7038, allocations: 2.567 MB / 0.6522 GB, free: 13.35 MB / 446.1 MB Notification: Performance of pre-optimization done (n=391): time 4.949e-06/0.7038, allocations: 0 / 0.6522 GB, free: 13.35 MB / 446.1 MB Notification: Performance of matching and sorting (n=397): time 0.03689/0.7407, allocations: 18.1 MB / 0.6699 GB, free: 11.15 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001761/0.741, allocations: 351.5 kB / 0.6702 GB, free: 10.73 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00519/0.7462, allocations: 3.495 MB / 0.6736 GB, free: 7.23 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006361/0.7468, allocations: 89.7 kB / 0.6737 GB, free: 7.137 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002397/0.7492, allocations: 3.378 MB / 0.677 GB, free: 3.738 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001479/0.7507, allocations: 1.339 MB / 0.6783 GB, free: 2.41 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003133/0.751, allocations: 116 kB / 0.6784 GB, free: 2.297 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003191/0.7514, allocations: 0.5297 MB / 0.6789 GB, free: 1.762 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004131/0.7555, allocations: 2.546 MB / 0.6814 GB, free: 15.21 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006207/0.7617, allocations: 4.476 MB / 0.6858 GB, free: 9.883 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006204/0.768, allocations: 3.55 MB / 0.6892 GB, free: 6.375 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.034e-05/0.7681, allocations: 16 kB / 0.6893 GB, free: 6.359 MB / 478.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01575/0.7838, allocations: 8.255 MB / 0.6973 GB, free: 14.46 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.454e-05/0.784, allocations: 64.33 kB / 0.6974 GB, free: 14.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.97e-05/0.7841, allocations: 60 kB / 0.6974 GB, free: 14.34 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00273/0.7868, allocations: 1.017 MB / 0.6984 GB, free: 13.33 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005084/0.7919, allocations: 1.255 MB / 0.6997 GB, free: 12.16 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01274/0.8047, allocations: 8.501 MB / 0.708 GB, free: 3.562 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004462/0.8092, allocations: 367.3 kB / 0.7083 GB, free: 3.203 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008163/0.81, allocations: 260 kB / 0.7086 GB, free: 2.949 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.004889/0.8149, allocations: 2.902 MB / 0.7114 GB, free: 120 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2113/1.026, allocations: 387.6 kB / 0.7118 GB, free: 170.2 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.011/1.037, allocations: 6.191 MB / 0.7178 GB, free: 170 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.56e-05/1.037, allocations: 41.22 kB / 0.7179 GB, free: 170 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.843e-05/1.037, allocations: 9.938 kB / 0.7179 GB, free: 170 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.482e-05/1.037, allocations: 24.22 kB / 0.7179 GB, free: 170 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02424/1.062, allocations: 14.92 MB / 0.7324 GB, free: 164.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.661e-05/1.062, allocations: 3.781 kB / 0.7325 GB, free: 164.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002472/1.064, allocations: 0.6868 MB / 0.7331 GB, free: 164.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002202/1.066, allocations: 0.8812 MB / 0.734 GB, free: 164.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000366/1.067, allocations: 87 kB / 0.7341 GB, free: 164.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009637/1.076, allocations: 7.443 MB / 0.7413 GB, free: 160.4 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/1.076, allocations: 3.969 kB / 0.7413 GB, free: 160.4 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01224/1.089, allocations: 9.229 MB / 0.7504 GB, free: 156.1 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002625/1.091, allocations: 0.9395 MB / 0.7513 GB, free: 155.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007415/1.092, allocations: 83.06 kB / 0.7513 GB, free: 155.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001982/1.094, allocations: 202.2 kB / 0.7515 GB, free: 155.6 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000513/1.095, allocations: 274.3 kB / 0.7518 GB, free: 155.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002083/1.095, allocations: 112.8 kB / 0.7519 GB, free: 155.5 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0033/1.098, allocations: 2.332 MB / 0.7542 GB, free: 153.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 2e-07/1.098, allocations: 3.844 kB / 0.7542 GB, free: 153.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00537/1.104, 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.01146/1.115, allocations: 11.04 MB / 0.7664 GB, free: 141.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008999/1.124, allocations: 6.462 MB / 0.7727 GB, free: 134.7 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.006e-05/1.124, allocations: 4 kB / 0.7727 GB, free: 134.7 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004215/1.128, allocations: 3.086 MB / 0.7757 GB, free: 131.6 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003068/1.131, allocations: 0.7262 MB / 0.7764 GB, free: 130.9 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08639/1.218, allocations: 81.75 MB / 0.8563 GB, free: 46.71 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004353/1.222, allocations: 5.137 MB / 0.8613 GB, free: 41.53 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004469/1.227, allocations: 1.59 MB / 0.8628 GB, free: 39.94 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002905/1.23, allocations: 2.753 MB / 0.8655 GB, free: 37.18 MB / 494.1 MB Notification: Performance of SimCode: time 7.62e-07/1.23, allocations: 1.203 kB / 0.8655 GB, free: 37.18 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3222/1.552, allocations: 107.8 MB / 0.9708 GB, free: 120.2 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001279/1.552, allocations: 207.2 kB / 0.971 GB, free: 119.9 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.46/6.012, allocations: 0 / 0.971 GB, free: 119.9 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: