Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.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_VCurve1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1",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.0009625/0.0009622, allocations: 99.86 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.315/1.315, allocations: 223.2 MB / 238.9 MB, free: 5.668 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.001132/0.001131, allocations: 177.1 kB / 290.2 MB, free: 2.363 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03217/0.03217, allocations: 8.782 MB / 350 MB, free: 4.754 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003436/0.0003438, allocations: 15.19 kB / 413.2 MB, free: 43.08 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08551/0.08587, allocations: 52.56 MB / 465.7 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.02041/0.1063, allocations: 20.41 MB / 486.1 MB, free: 9.035 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01514/0.1215, allocations: 7.533 MB / 493.7 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004282/0.1258, allocations: 147.6 kB / 493.8 MB, free: 1.34 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0057/0.1315, allocations: 1.52 MB / 495.3 MB, free: 15.81 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009655/0.1412, allocations: 2.616 MB / 497.9 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004711/0.146, allocations: 1.328 MB / 499.3 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01383/0.1598, allocations: 7.895 MB / 0.4953 GB, free: 3.965 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02483/0.1847, allocations: 13.63 MB / 0.5086 GB, free: 6.258 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005827/0.1906, allocations: 3.224 MB / 0.5117 GB, free: 3.023 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006908/0.1975, allocations: 3.58 MB / 0.5152 GB, free: 15.43 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00228/0.1998, allocations: 0.5195 MB / 0.5157 GB, free: 14.91 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003915/0.2038, allocations: 0.8198 MB / 0.5165 GB, free: 14.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002891/0.2067, allocations: 1.6 MB / 0.5181 GB, free: 12.48 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003556/0.2103, allocations: 1.709 MB / 0.5198 GB, free: 10.77 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2198/0.4301, allocations: 15.26 MB / 0.5347 GB, free: 21.7 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.4302, allocations: 0 / 0.5347 GB, free: 21.7 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.4302, allocations: 0 / 0.5347 GB, free: 21.7 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004249/0.4306, allocations: 0 / 0.5347 GB, free: 21.7 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.02417/0.4548, allocations: 9.062 MB / 0.5435 GB, free: 18.96 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.4549, allocations: 9.594 kB / 0.5435 GB, free: 18.96 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004987/0.4599, allocations: 1.269 MB / 0.5448 GB, free: 18.7 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03268/0.4926, allocations: 5.583 MB / 0.5502 GB, free: 16.63 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01362/0.5062, allocations: 5.563 MB / 0.5557 GB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006122/0.5069, allocations: 0.5796 MB / 0.5562 GB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00335/0.5102, allocations: 0.7656 MB / 0.557 GB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03322/0.5435, allocations: 12.66 MB / 0.5693 GB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003032/0.5438, allocations: 6.844 kB / 0.5693 GB, free: 12.38 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002056/0.5459, allocations: 327.9 kB / 0.5697 GB, free: 12.38 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005076/0.5464, allocations: 0.499 MB / 0.5701 GB, free: 12.31 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02612/0.5725, allocations: 12.2 MB / 0.5821 GB, free: 6.625 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0794/0.652, allocations: 43.84 MB / 0.6249 GB, free: 12.26 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02397/0.676, allocations: 25.14 MB / 0.6494 GB, free: 248 kB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006199/0.6767, allocations: 238.7 kB / 0.6496 GB, free: 15.98 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004155/0.6808, allocations: 2.575 MB / 0.6522 GB, free: 13.34 MB / 446.1 MB Notification: Performance of pre-optimization done (n=391): time 5.24e-06/0.6809, allocations: 4 kB / 0.6522 GB, free: 13.34 MB / 446.1 MB Notification: Performance of matching and sorting (n=397): time 0.03828/0.7191, allocations: 18.08 MB / 0.6698 GB, free: 11.15 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002663/0.7195, allocations: 363.2 kB / 0.6702 GB, free: 10.72 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005624/0.7251, allocations: 3.494 MB / 0.6736 GB, free: 7.227 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005644/0.7257, allocations: 85.7 kB / 0.6737 GB, free: 7.137 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002266/0.728, allocations: 3.378 MB / 0.677 GB, free: 3.738 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001507/0.7295, allocations: 1.345 MB / 0.6783 GB, free: 2.406 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002945/0.7298, allocations: 116 kB / 0.6784 GB, free: 2.293 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003584/0.7301, allocations: 0.5258 MB / 0.6789 GB, free: 1.762 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003867/0.734, allocations: 2.545 MB / 0.6814 GB, free: 15.21 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004887/0.7389, allocations: 4.485 MB / 0.6858 GB, free: 9.875 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004855/0.7438, allocations: 3.546 MB / 0.6892 GB, free: 6.371 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.114e-05/0.7438, allocations: 16 kB / 0.6892 GB, free: 6.355 MB / 478.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01313/0.757, allocations: 8.259 MB / 0.6973 GB, free: 14.46 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.995e-05/0.7571, allocations: 57.7 kB / 0.6974 GB, free: 14.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001122/0.7572, allocations: 60 kB / 0.6974 GB, free: 14.34 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002661/0.7599, allocations: 1.012 MB / 0.6984 GB, free: 13.33 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004633/0.7645, allocations: 1.262 MB / 0.6996 GB, free: 12.15 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01228/0.7768, allocations: 8.488 MB / 0.7079 GB, free: 3.57 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005177/0.782, allocations: 367.3 kB / 0.7083 GB, free: 3.211 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001133/0.7832, allocations: 264 kB / 0.7085 GB, free: 2.953 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.005375/0.7886, allocations: 2.894 MB / 0.7114 GB, free: 128 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2365/1.025, allocations: 388.1 kB / 0.7117 GB, free: 170.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01275/1.038, allocations: 6.194 MB / 0.7178 GB, free: 170.1 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.172e-05/1.038, allocations: 47.02 kB / 0.7178 GB, free: 170.1 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.201e-05/1.038, allocations: 10.88 kB / 0.7178 GB, free: 170.1 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.175e-05/1.038, allocations: 22.89 kB / 0.7179 GB, free: 170.1 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02691/1.065, allocations: 14.92 MB / 0.7324 GB, free: 164.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.909e-05/1.065, allocations: 4.719 kB / 0.7324 GB, free: 164.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002587/1.068, allocations: 0.6867 MB / 0.7331 GB, free: 164.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002237/1.07, allocations: 0.8828 MB / 0.734 GB, free: 164.6 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004275/1.07, allocations: 87.33 kB / 0.734 GB, free: 164.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00966/1.08, allocations: 7.438 MB / 0.7413 GB, free: 160.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.244e-06/1.08, allocations: 11.84 kB / 0.7413 GB, free: 160.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01274/1.093, allocations: 9.235 MB / 0.7503 GB, free: 156.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00309/1.096, allocations: 0.9435 MB / 0.7513 GB, free: 155.8 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001002/1.097, allocations: 74.31 kB / 0.7513 GB, free: 155.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002307/1.099, allocations: 204.6 kB / 0.7515 GB, free: 155.7 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005428/1.1, allocations: 270.1 kB / 0.7518 GB, free: 155.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002075/1.1, allocations: 118.7 kB / 0.7519 GB, free: 155.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003576/1.104, allocations: 2.334 MB / 0.7542 GB, free: 153.8 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.104, allocations: 0 / 0.7542 GB, free: 153.8 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006158/1.11, allocations: 1.453 MB / 0.7556 GB, free: 152.3 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.01238/1.122, allocations: 11.03 MB / 0.7664 GB, free: 141.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009366/1.132, allocations: 6.469 MB / 0.7727 GB, free: 134.7 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.087e-06/1.132, allocations: 4 kB / 0.7727 GB, free: 134.7 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004336/1.136, allocations: 3.09 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.003572/1.14, allocations: 0.7222 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.09072/1.23, allocations: 81.74 MB / 0.8562 GB, free: 46.72 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005006/1.236, allocations: 5.133 MB / 0.8613 GB, free: 41.54 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00482/1.24, allocations: 1.59 MB / 0.8628 GB, free: 39.95 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003645/1.244, allocations: 2.76 MB / 0.8655 GB, free: 37.19 MB / 494.1 MB Notification: Performance of SimCode: time 1.262e-06/1.244, allocations: 0 / 0.8655 GB, free: 37.19 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3423/1.586, allocations: 107.8 MB / 0.9708 GB, free: 120.4 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001689/1.587, allocations: 199.2 kB / 0.971 GB, free: 120.1 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.109/5.695, allocations: 4 kB / 0.971 GB, free: 120.1 MB / 494.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe 2>&1) Environment - environmentSimulation: