Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip3.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_Slip3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Slip3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip3",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.008439/0.008439, allocations: 101.6 kB / 15.73 MB, free: 5.996 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.4/1.4, allocations: 222.9 MB / 239.4 MB, free: 4.562 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.00166/0.00166, allocations: 188.5 kB / 289.7 MB, free: 2.27 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03552/0.03552, allocations: 8.796 MB / 348.7 MB, free: 4.641 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00239/0.00239, allocations: 91.86 kB / 463.5 MB, free: 13.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09927/0.1017, allocations: 51.56 MB / 0.503 GB, free: 10.1 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip3): time 0.03604/0.1378, allocations: 25.43 MB / 0.5278 GB, free: 0.5547 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2214/0.3592, allocations: 8.006 MB / 0.5356 GB, free: 4.262 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005029/0.3643, allocations: 171.4 kB / 0.5358 GB, free: 4.262 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01337/0.3777, allocations: 6.1 MB / 0.5417 GB, free: 3.723 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00863/0.3864, allocations: 2.74 MB / 0.5444 GB, free: 2.965 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004845/0.3912, allocations: 1.625 MB / 0.546 GB, free: 2.797 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01032/0.4016, allocations: 7.265 MB / 0.5531 GB, free: 0.832 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02104/0.4226, allocations: 13.35 MB / 0.5661 GB, free: 10.88 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006921/0.4296, allocations: 3.735 MB / 0.5698 GB, free: 9.094 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008076/0.4377, allocations: 4.22 MB / 0.5739 GB, free: 5.84 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003413/0.4412, allocations: 1.07 MB / 0.5749 GB, free: 4.77 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005554/0.4468, allocations: 1.438 MB / 0.5763 GB, free: 3.336 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00404/0.4508, allocations: 2.141 MB / 0.5784 GB, free: 1.223 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008486/0.4594, allocations: 4.115 MB / 0.5824 GB, free: 13.12 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02016/0.4795, allocations: 14.47 MB / 0.5966 GB, free: 14.91 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.604e-06/0.4796, allocations: 4 kB / 0.5966 GB, free: 14.91 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.4796, allocations: 0 / 0.5966 GB, free: 14.91 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004097/0.48, allocations: 0 / 0.5966 GB, free: 14.91 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1800 * Number of variables: 1800 Notification: Performance of Generate backend data structure: time 0.02687/0.5069, allocations: 8.93 MB / 0.6053 GB, free: 5.957 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.507, allocations: 8.031 kB / 0.6053 GB, free: 5.949 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003498/0.5105, allocations: 1.051 MB / 0.6063 GB, free: 4.898 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02546/0.536, allocations: 4.432 MB / 0.6107 GB, free: 0.5117 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01082/0.5468, allocations: 4.64 MB / 0.6152 GB, free: 11.84 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005141/0.5474, allocations: 488.4 kB / 0.6157 GB, free: 11.38 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002564/0.55, allocations: 0.625 MB / 0.6163 GB, free: 10.76 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02606/0.576, allocations: 10.36 MB / 0.6264 GB, free: 360 kB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002399/0.5763, allocations: 7.953 kB / 0.6264 GB, free: 352 kB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001967/0.5783, allocations: 264 kB / 0.6267 GB, free: 96 kB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005202/0.5788, allocations: 422 kB / 0.6271 GB, free: 15.68 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02129/0.6001, allocations: 9.872 MB / 0.6367 GB, free: 5.789 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06219/0.6623, allocations: 35.41 MB / 0.6713 GB, free: 1.395 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02132/0.6837, allocations: 20.66 MB / 0.6914 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003949/0.6877, allocations: 2.307 MB / 0.6937 GB, free: 7.781 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004205/0.6882, allocations: 223.5 kB / 0.6939 GB, free: 7.535 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.849e-05/0.6882, allocations: 68.83 kB / 0.694 GB, free: 7.457 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=295): time 4.759e-06/0.6882, allocations: 0 / 0.694 GB, free: 7.457 MB / 0.4981 GB Notification: Performance of matching and sorting (n=301): time 0.02372/0.712, allocations: 10.95 MB / 0.7047 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.189e-05/0.7121, allocations: 81.78 kB / 0.7048 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005166/0.7172, allocations: 3.033 MB / 0.7077 GB, free: 9.234 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0005573/0.7178, allocations: 73.7 kB / 0.7078 GB, free: 9.156 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.00251/0.7203, allocations: 2.965 MB / 0.7107 GB, free: 6.184 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001348/0.7217, allocations: 1.085 MB / 0.7117 GB, free: 5.113 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001578/0.7233, allocations: 0.9099 MB / 0.7126 GB, free: 4.191 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001297/0.7234, allocations: 305.1 kB / 0.7129 GB, free: 3.891 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003295/0.7267, allocations: 2.027 MB / 0.7149 GB, free: 1.855 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004932/0.7317, allocations: 3.722 MB / 0.7185 GB, free: 13.34 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008678/0.7404, allocations: 6.051 MB / 0.7244 GB, free: 6.492 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.434e-05/0.7405, allocations: 20 kB / 0.7245 GB, free: 6.473 MB / 0.5294 GB Notification: Performance of matching and sorting (n=595) (initialization): time 0.2293/0.9698, allocations: 6.643 MB / 0.731 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 5.33e-05/0.9699, allocations: 27.75 kB / 0.731 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.647e-05/0.97, allocations: 58.59 kB / 0.731 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001726/0.9717, allocations: 0.6644 MB / 0.7317 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003857/0.9756, allocations: 1.067 MB / 0.7327 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009626/0.9852, allocations: 6.227 MB / 0.7388 GB, free: 162.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004038/0.9893, allocations: 283.2 kB / 0.7391 GB, free: 162.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008908/0.9903, allocations: 227 kB / 0.7393 GB, free: 162.6 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 251 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (560): * Single equations (assignments): 559 * Array equations: 0 * Algorithm blocks: 0 * 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 {(8,28,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004656/0.9949, allocations: 2.313 MB / 0.7416 GB, free: 162.4 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008749/0.9958, allocations: 336.4 kB / 0.7419 GB, free: 162.4 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008746/1.005, allocations: 4.634 MB / 0.7464 GB, free: 162.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.696e-05/1.005, allocations: 31.72 kB / 0.7464 GB, free: 162.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.282e-05/1.005, allocations: 11.22 kB / 0.7464 GB, free: 162.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.43e-05/1.005, allocations: 16.27 kB / 0.7465 GB, free: 162.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02035/1.025, allocations: 11.09 MB / 0.7573 GB, free: 157.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-05/1.025, allocations: 11.94 kB / 0.7573 GB, free: 157.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002141/1.027, allocations: 0.5314 MB / 0.7578 GB, free: 157.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001478/1.029, allocations: 0.5689 MB / 0.7584 GB, free: 157.6 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002948/1.029, allocations: 66.27 kB / 0.7584 GB, free: 157.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00637/1.036, allocations: 5.459 MB / 0.7638 GB, free: 154.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.62e-06/1.036, allocations: 11.78 kB / 0.7638 GB, free: 154.3 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008913/1.044, allocations: 6.6 MB / 0.7702 GB, free: 151.5 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00164/1.046, allocations: 0.7376 MB / 0.7709 GB, free: 151 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005967/1.047, allocations: 59.69 kB / 0.771 GB, free: 151 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001632/1.048, allocations: 151.8 kB / 0.7711 GB, free: 151 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004024/1.049, allocations: 204.2 kB / 0.7713 GB, free: 150.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001597/1.049, allocations: 91.95 kB / 0.7714 GB, free: 150.9 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002617/1.052, allocations: 2.02 MB / 0.7734 GB, free: 150.1 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3e-07/1.052, allocations: 0 / 0.7734 GB, free: 150.1 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004815/1.056, allocations: 1.171 MB / 0.7745 GB, free: 150 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 2 (smee.short.port_p.reference.gamma,mechanicalPowerSensor.relSpeedSensor.phi_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (291): * Single equations (assignments): 290 * Array equations: 0 * Algorithm blocks: 0 * 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 {(8,26,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008989/1.065, allocations: 7.284 MB / 0.7817 GB, free: 146.4 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007305/1.073, allocations: 5.037 MB / 0.7866 GB, free: 144.3 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.247e-06/1.073, allocations: 1.812 kB / 0.7866 GB, free: 144.3 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003592/1.076, allocations: 2.275 MB / 0.7888 GB, free: 142.3 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003603/1.08, allocations: 0.6508 MB / 0.7894 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05612/1.136, allocations: 39.05 MB / 0.8276 GB, free: 100.7 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003636/1.14, allocations: 4.154 MB / 0.8316 GB, free: 96.5 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003289/1.143, allocations: 1.322 MB / 0.8329 GB, free: 95.17 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002913/1.146, allocations: 2.245 MB / 0.8351 GB, free: 92.93 MB / 0.5294 GB Notification: Performance of SimCode: time 8.62e-07/1.146, allocations: 0 / 0.8351 GB, free: 92.93 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.121/1.267, allocations: 88.42 MB / 0.9215 GB, free: 4.84 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.31/17.58, allocations: 17.95 kB / 0.9215 GB, free: 4.828 MB / 0.5294 GB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip3_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip3.pipe 2>&1)