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.0007456/0.0007457, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.353/1.353, allocations: 223.3 MB / 239.4 MB, free: 5.527 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.0009489/0.000949, allocations: 179.4 kB / 290.6 MB, free: 2.191 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03358/0.03358, allocations: 8.795 MB / 350.5 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003437/0.0003437, allocations: 12.7 kB / 413.9 MB, free: 42.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0792/0.07956, allocations: 52.56 MB / 466.5 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve4): time 0.02366/0.1033, allocations: 23.94 MB / 490.4 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01517/0.1185, allocations: 7.794 MB / 498.2 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004756/0.1233, allocations: 163.5 kB / 498.4 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006052/0.1294, allocations: 1.808 MB / 0.4885 GB, free: 11.2 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009206/0.1386, allocations: 2.781 MB / 0.4912 GB, free: 8.418 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004864/0.1435, allocations: 1.693 MB / 0.4928 GB, free: 6.73 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01203/0.1555, allocations: 9.368 MB / 0.502 GB, free: 13.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03148/0.187, allocations: 17.62 MB / 0.5192 GB, free: 11.57 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005477/0.1925, allocations: 3.402 MB / 0.5225 GB, free: 8.16 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006407/0.199, allocations: 4.104 MB / 0.5265 GB, free: 4.039 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001847/0.2008, allocations: 0.5234 MB / 0.527 GB, free: 3.516 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003514/0.2044, allocations: 0.8746 MB / 0.5279 GB, free: 2.641 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002466/0.2069, allocations: 1.701 MB / 0.5295 GB, free: 0.9336 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1845/0.3914, allocations: 4.026 MB / 0.5335 GB, free: 21.5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01392/0.4053, allocations: 17.06 MB / 0.5501 GB, free: 17.34 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.4054, allocations: 0 / 0.5501 GB, free: 17.34 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.4054, allocations: 0.5625 kB / 0.5501 GB, free: 17.34 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003979/0.4058, allocations: 5.062 kB / 0.5501 GB, free: 17.34 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.02575/0.4315, allocations: 9.054 MB / 0.559 GB, free: 12.75 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.753e-05/0.4316, allocations: 8.438 kB / 0.559 GB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003842/0.4354, allocations: 1.274 MB / 0.5602 GB, free: 12.43 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03102/0.4665, allocations: 5.657 MB / 0.5658 GB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01146/0.4779, allocations: 5.683 MB / 0.5713 GB, free: 8.656 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003886/0.4784, allocations: 0.5813 MB / 0.5719 GB, free: 8.637 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00275/0.4811, allocations: 0.7722 MB / 0.5726 GB, free: 8.629 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02503/0.5062, allocations: 12.77 MB / 0.5851 GB, free: 4.832 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000189/0.5064, allocations: 11.52 kB / 0.5851 GB, free: 4.824 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009657/0.5074, allocations: 327.4 kB / 0.5854 GB, free: 4.582 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003548/0.5077, allocations: 0.4911 MB / 0.5859 GB, free: 4.152 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02311/0.5308, allocations: 12.26 MB / 0.5979 GB, free: 7.875 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07381/0.6047, allocations: 43.85 MB / 0.6407 GB, free: 11.4 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02484/0.6296, allocations: 25.16 MB / 0.6653 GB, free: 15.35 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00524/0.6348, allocations: 2.983 MB / 0.6682 GB, free: 12.36 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004276/0.6353, allocations: 237.4 kB / 0.6684 GB, free: 12.11 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004542/0.6398, allocations: 2.59 MB / 0.671 GB, free: 9.449 MB / 462.1 MB Notification: Performance of pre-optimization done (n=391): time 8.917e-06/0.6399, allocations: 0 / 0.671 GB, free: 9.449 MB / 462.1 MB Notification: Performance of matching and sorting (n=397): time 0.04031/0.6802, allocations: 18.17 MB / 0.6887 GB, free: 7.184 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001727/0.6804, allocations: 355.5 kB / 0.689 GB, free: 6.762 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005097/0.6855, allocations: 3.53 MB / 0.6925 GB, free: 3.23 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003805/0.6859, allocations: 89.7 kB / 0.6926 GB, free: 3.137 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002149/0.6881, allocations: 3.373 MB / 0.6959 GB, free: 15.74 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001245/0.6893, allocations: 1.355 MB / 0.6972 GB, free: 14.39 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006109/0.6899, allocations: 446.1 kB / 0.6976 GB, free: 13.95 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.1e-05/0.69, allocations: 305.1 kB / 0.6979 GB, free: 13.65 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003848/0.6939, allocations: 2.556 MB / 0.7004 GB, free: 11.09 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005247/0.6991, allocations: 4.513 MB / 0.7048 GB, free: 5.723 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1811/0.8803, allocations: 7.456 MB / 0.7121 GB, free: 169.6 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.587e-05/0.8804, allocations: 20.06 kB / 0.7121 GB, free: 169.6 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01308/0.8934, allocations: 8.286 MB / 0.7202 GB, free: 168.4 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.394e-05/0.8935, allocations: 56.02 kB / 0.7203 GB, free: 168.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.494e-05/0.8936, allocations: 60 kB / 0.7203 GB, free: 168.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002425/0.896, allocations: 0.9986 MB / 0.7213 GB, free: 168.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003884/0.8999, allocations: 1.263 MB / 0.7225 GB, free: 168 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009933/0.9099, allocations: 8.242 MB / 0.7306 GB, free: 163.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003814/0.9137, allocations: 358.7 kB / 0.7309 GB, free: 163.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004033/0.9141, allocations: 271.1 kB / 0.7312 GB, free: 163.4 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.003991/0.9181, allocations: 2.903 MB / 0.734 GB, free: 161.9 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005681/0.9187, allocations: 386.5 kB / 0.7344 GB, free: 161.9 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008975/0.9277, allocations: 6.194 MB / 0.7404 GB, free: 159.4 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-05/0.9277, allocations: 41.03 kB / 0.7405 GB, free: 159.4 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.449e-05/0.9277, allocations: 11.31 kB / 0.7405 GB, free: 159.4 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.187e-05/0.9278, allocations: 24.39 kB / 0.7405 GB, free: 159.4 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01865/0.9464, allocations: 14.94 MB / 0.7551 GB, free: 150.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.296e-05/0.9465, allocations: 4 kB / 0.7551 GB, free: 150.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002471/0.9489, allocations: 0.6852 MB / 0.7558 GB, free: 149.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002152/0.9511, allocations: 0.8773 MB / 0.7566 GB, free: 148.8 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002041/0.9513, allocations: 83.52 kB / 0.7567 GB, free: 148.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008853/0.9602, allocations: 7.206 MB / 0.7637 GB, free: 141.8 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.9602, allocations: 8.547 kB / 0.7637 GB, free: 141.8 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01047/0.9707, allocations: 8.788 MB / 0.7723 GB, free: 132.9 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001646/0.9723, allocations: 0.9373 MB / 0.7732 GB, free: 132 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004794/0.9728, allocations: 72 kB / 0.7733 GB, free: 131.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001899/0.9747, allocations: 211.7 kB / 0.7735 GB, free: 131.7 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004724/0.9752, allocations: 275.1 kB / 0.7738 GB, free: 131.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002045/0.9754, allocations: 115.9 kB / 0.7739 GB, free: 131.3 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003066/0.9785, allocations: 2.367 MB / 0.7762 GB, free: 128.9 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.223e-06/0.9785, allocations: 0 / 0.7762 GB, free: 128.9 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004209/0.9827, allocations: 1.456 MB / 0.7776 GB, free: 127.5 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.01084/0.9936, allocations: 9.497 MB / 0.7869 GB, free: 117.9 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008805/1.002, allocations: 6.474 MB / 0.7932 GB, free: 111.4 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/1.002, allocations: 4 kB / 0.7932 GB, free: 111.4 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004239/1.007, allocations: 3.081 MB / 0.7962 GB, free: 108.3 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006305/1.013, allocations: 0.7853 MB / 0.797 GB, free: 107.5 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1013/1.114, allocations: 59.56 MB / 0.8552 GB, free: 43.28 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00502/1.119, allocations: 5.012 MB / 0.86 GB, free: 38.23 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004507/1.124, allocations: 1.59 MB / 0.8616 GB, free: 36.63 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003034/1.127, allocations: 2.749 MB / 0.8643 GB, free: 33.88 MB / 494.1 MB Notification: Performance of SimCode: time 8.22e-07/1.127, allocations: 3.938 kB / 0.8643 GB, free: 33.88 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2965/1.423, allocations: 109.5 MB / 0.9712 GB, free: 105.3 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001298/1.424, allocations: 219.6 kB / 0.9714 GB, free: 105.1 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.709/5.133, allocations: 0 / 0.9714 GB, free: 105.1 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)