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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001284/0.001284, allocations: 113.5 kB / 19.73 MB, free: 2.242 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.429/1.429, allocations: 230.6 MB / 253.4 MB, free: 14.47 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001521/0.001521, allocations: 209.5 kB / 310 MB, free: 3.148 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo): time 0.04147/0.04147, allocations: 8.914 MB / 375.4 MB, free: 6.746 MB / 302.1 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: HanserModelica requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: HanserModelica requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002359/0.002359, allocations: 83.88 kB / 0.49 GB, free: 44.86 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08019/0.08255, allocations: 55.61 MB / 0.5443 GB, free: 5.16 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.2155/0.298, allocations: 25.63 MB / 0.5693 GB, free: 9.426 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01376/0.3118, allocations: 8.084 MB / 0.5772 GB, free: 9.094 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004853/0.3166, allocations: 204.8 kB / 0.5774 GB, free: 9.031 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01635/0.333, allocations: 7.756 MB / 0.585 GB, free: 7.012 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01054/0.3435, allocations: 3.18 MB / 0.5881 GB, free: 5.531 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006774/0.3503, allocations: 2.093 MB / 0.5902 GB, free: 4.234 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01331/0.3636, allocations: 9.411 MB / 0.5993 GB, free: 15.42 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02412/0.3877, allocations: 11.35 MB / 0.6104 GB, free: 7.977 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00947/0.3972, allocations: 4.881 MB / 0.6152 GB, free: 5.117 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01101/0.4082, allocations: 5.372 MB / 0.6204 GB, free: 1.039 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004141/0.4123, allocations: 1.356 MB / 0.6218 GB, free: 15.68 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00616/0.4185, allocations: 1.742 MB / 0.6235 GB, free: 13.94 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005052/0.4236, allocations: 2.681 MB / 0.6261 GB, free: 11.25 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01206/0.4356, allocations: 5.09 MB / 0.6311 GB, free: 6.145 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02751/0.4631, allocations: 18.23 MB / 0.6489 GB, free: 3.855 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.4631, allocations: 0 / 0.6489 GB, free: 3.855 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4631, allocations: 0 / 0.6489 GB, free: 3.855 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004163/0.4636, allocations: 3.938 kB / 0.6489 GB, free: 3.852 MB / 430.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.03411/0.4977, allocations: 10.88 MB / 0.6595 GB, free: 8.883 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.128e-05/0.4977, allocations: 19.92 kB / 0.6595 GB, free: 8.863 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002829/0.498, allocations: 244 kB / 0.6597 GB, free: 8.625 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004371/0.5024, allocations: 1.264 MB / 0.661 GB, free: 7.352 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03461/0.537, allocations: 5.672 MB / 0.6665 GB, free: 1.668 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01307/0.55, allocations: 5.852 MB / 0.6722 GB, free: 11.75 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005741/0.5506, allocations: 0.5781 MB / 0.6728 GB, free: 11.18 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00293/0.5535, allocations: 0.7694 MB / 0.6735 GB, free: 10.41 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02904/0.5826, allocations: 12.82 MB / 0.6861 GB, free: 13.53 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002587/0.5828, allocations: 15.89 kB / 0.6861 GB, free: 13.51 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002006/0.5849, allocations: 328 kB / 0.6864 GB, free: 13.19 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005955/0.5854, allocations: 0.4929 MB / 0.6869 GB, free: 12.7 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02745/0.6129, allocations: 12.31 MB / 0.6989 GB, free: 372 kB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08075/0.6936, allocations: 41.45 MB / 0.7394 GB, free: 5.934 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01878/0.7124, allocations: 9.029 MB / 0.7482 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004846/0.7173, allocations: 2.746 MB / 0.7509 GB, free: 11.13 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003436/0.7176, allocations: 122.9 kB / 0.751 GB, free: 11.02 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004137/0.7218, allocations: 2.604 MB / 0.7535 GB, free: 8.344 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=399): time 5.37e-06/0.7218, allocations: 0 / 0.7535 GB, free: 8.344 MB / 0.5294 GB Notification: Performance of matching and sorting (n=482): time 0.4462/1.168, allocations: 29.05 MB / 0.7819 GB, free: 164.1 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0283/1.196, allocations: 18.62 MB / 0.8001 GB, free: 154.4 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005167/1.201, allocations: 3.531 MB / 0.8035 GB, free: 153.1 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0006581/1.202, allocations: 102.6 kB / 0.8036 GB, free: 153 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001722/1.204, allocations: 3.495 MB / 0.807 GB, free: 150.8 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001343/1.205, allocations: 1.714 MB / 0.8087 GB, free: 149.7 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001737/1.207, allocations: 1.209 MB / 0.8099 GB, free: 149.1 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 3.821e-05/1.207, allocations: 308.7 kB / 0.8102 GB, free: 148.8 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004085/1.211, allocations: 2.999 MB / 0.8131 GB, free: 147.7 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004953/1.216, allocations: 5.015 MB / 0.818 GB, free: 144 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00894/1.225, allocations: 8.497 MB / 0.8263 GB, free: 138.5 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.105e-05/1.225, allocations: 20.75 kB / 0.8263 GB, free: 138.5 MB / 0.545 GB Notification: Performance of matching and sorting (n=807) (initialization): time 0.01499/1.24, allocations: 10.12 MB / 0.8362 GB, free: 134.3 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.113e-05/1.24, allocations: 60.83 kB / 0.8363 GB, free: 134.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001083/1.24, allocations: 66.72 kB / 0.8363 GB, free: 134.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005105/1.245, allocations: 2.001 MB / 0.8383 GB, free: 133.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004357/1.25, allocations: 1.325 MB / 0.8396 GB, free: 133 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02083/1.27, allocations: 18.18 MB / 0.8573 GB, free: 118 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004772/1.275, allocations: 389.9 kB / 0.8577 GB, free: 117.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006935/1.276, allocations: 299.9 kB / 0.858 GB, free: 117.4 MB / 0.545 GB 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 (693): * Single equations (assignments): 690 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(10,48,53.0%), (10,48,50.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004547/1.28, allocations: 2.985 MB / 0.8609 GB, free: 114.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008092/1.281, allocations: 437.2 kB / 0.8613 GB, free: 114 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01164/1.293, allocations: 8.173 MB / 0.8693 GB, free: 105.8 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.472e-05/1.293, allocations: 53.8 kB / 0.8694 GB, free: 105.7 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.309e-05/1.293, allocations: 8 kB / 0.8694 GB, free: 105.7 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.986e-05/1.293, allocations: 27.91 kB / 0.8694 GB, free: 105.7 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02951/1.322, allocations: 22.24 MB / 0.8911 GB, free: 83.39 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.419e-05/1.322, allocations: 0 / 0.8911 GB, free: 83.39 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002564/1.325, allocations: 0.7336 MB / 0.8918 GB, free: 82.66 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004661/1.33, allocations: 1.937 MB / 0.8937 GB, free: 80.71 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004037/1.33, allocations: 104 kB / 0.8938 GB, free: 80.61 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01927/1.349, allocations: 16.87 MB / 0.9103 GB, free: 63.53 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02084/1.37, allocations: 16.91 MB / 0.9268 GB, free: 46.27 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01509/1.385, allocations: 11.33 MB / 0.9379 GB, free: 34.75 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002412/1.388, allocations: 1.001 MB / 0.9389 GB, free: 33.75 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000691/1.388, allocations: 84 kB / 0.9389 GB, free: 33.67 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002157/1.391, allocations: 223.8 kB / 0.9392 GB, free: 33.45 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007025/1.391, allocations: 368 kB / 0.9395 GB, free: 33.09 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002451/1.391, allocations: 132 kB / 0.9396 GB, free: 32.96 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002736/1.394, allocations: 2.371 MB / 0.9419 GB, free: 30.59 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/1.394, allocations: 0 / 0.9419 GB, free: 30.59 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005/1.399, allocations: 1.699 MB / 0.9436 GB, free: 28.89 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 3 ($STATESET1.x,smee.rotorCage.port_p.reference.gamma,voltageSource.plug_p.reference.gamma) * 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 (396): * Single equations (assignments): 393 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,40,51.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(11,56)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01611/1.415, allocations: 12.06 MB / 0.9554 GB, free: 16.65 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01213/1.427, allocations: 7.915 MB / 0.9631 GB, free: 8.668 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.663e-06/1.427, allocations: 0 / 0.9631 GB, free: 8.668 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006615/1.434, allocations: 4.082 MB / 0.9671 GB, free: 4.555 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004257/1.438, allocations: 0.841 MB / 0.9679 GB, free: 3.734 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.286/1.724, allocations: 54.74 MB / 1.021 GB, free: 174.9 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005986/1.73, allocations: 5.209 MB / 1.026 GB, free: 174.1 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.004262/1.735, allocations: 1.633 MB / 1.028 GB, free: 174 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003662/1.738, allocations: 2.903 MB / 1.031 GB, free: 171.9 MB / 0.5763 GB Notification: Performance of SimCode: time 1.152e-06/1.738, allocations: 0.8438 kB / 1.031 GB, free: 171.9 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1869/1.925, allocations: 140.7 MB / 1.168 GB, free: 53.73 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.91/26.84, allocations: 19.14 kB / 1.168 GB, free: 53.71 MB / 0.5763 GB " [Timeout remaining time 633] (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/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1_fmu --startTime=0 --stopTime=200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 30.557008670060895] Failed to read output from testmodel.py, exit status != 0: 27.103960974956863 27.121410434 26.654456649 Calling exit ...