Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.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_Slip2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Slip2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2",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.001078/0.001078, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 222.9 MB / 239.3 MB, free: 4.617 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.001315/0.001315, allocations: 188.5 kB / 289.5 MB, free: 2.344 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03499/0.03499, allocations: 8.793 MB / 348.5 MB, free: 4.719 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001804/0.001804, allocations: 81.56 kB / 411.2 MB, free: 41.96 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07918/0.081, allocations: 51.57 MB / 462.8 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip2): time 0.02472/0.1058, allocations: 25.42 MB / 488.2 MB, free: 4.719 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01642/0.1222, allocations: 8.01 MB / 496.2 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004883/0.1271, allocations: 171.5 kB / 496.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01377/0.1409, allocations: 6.11 MB / 0.4907 GB, free: 6.395 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007602/0.1485, allocations: 2.742 MB / 0.4934 GB, free: 3.645 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003995/0.1526, allocations: 1.624 MB / 0.495 GB, free: 2.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007999/0.1606, allocations: 7.221 MB / 0.502 GB, free: 10.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01561/0.1762, allocations: 13.36 MB / 0.515 GB, free: 13.28 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005047/0.1813, allocations: 3.724 MB / 0.5187 GB, free: 9.547 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00641/0.1877, allocations: 4.247 MB / 0.5228 GB, free: 5.285 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002716/0.1905, allocations: 1.074 MB / 0.5239 GB, free: 4.211 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004037/0.1945, allocations: 1.433 MB / 0.5253 GB, free: 2.777 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002278/0.1968, allocations: 2.147 MB / 0.5274 GB, free: 0.625 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2003/0.3972, allocations: 4.111 MB / 0.5314 GB, free: 23.14 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01852/0.4157, allocations: 14.36 MB / 0.5454 GB, free: 21.91 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.684e-06/0.4158, allocations: 0 / 0.5454 GB, free: 21.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4158, allocations: 0 / 0.5454 GB, free: 21.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004368/0.4162, allocations: 0 / 0.5454 GB, free: 21.91 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: 1800 * Number of variables: 1800 Notification: Performance of Generate backend data structure: time 0.03554/0.4518, allocations: 8.816 MB / 0.554 GB, free: 17.98 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.386e-05/0.4519, allocations: 9.25 kB / 0.554 GB, free: 17.98 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006458/0.4583, allocations: 1.045 MB / 0.555 GB, free: 17.72 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02752/0.4859, allocations: 4.384 MB / 0.5593 GB, free: 16.05 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01108/0.497, allocations: 4.504 MB / 0.5637 GB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004011/0.4974, allocations: 488.6 kB / 0.5642 GB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003153/0.5006, allocations: 0.633 MB / 0.5648 GB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02572/0.5263, allocations: 10.36 MB / 0.5749 GB, free: 8.934 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002195/0.5266, allocations: 11.09 kB / 0.5749 GB, free: 8.93 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001523/0.5281, allocations: 271 kB / 0.5752 GB, free: 8.73 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003271/0.5285, allocations: 413.8 kB / 0.5756 GB, free: 8.645 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01856/0.547, allocations: 9.862 MB / 0.5852 GB, free: 0.8828 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06105/0.6081, allocations: 35.69 MB / 0.6201 GB, free: 12.62 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01973/0.6279, allocations: 20.66 MB / 0.6403 GB, free: 5.348 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004086/0.632, allocations: 2.299 MB / 0.6425 GB, free: 3.043 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003964/0.6324, allocations: 228.4 kB / 0.6427 GB, free: 2.793 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.414e-05/0.6325, allocations: 64.89 kB / 0.6428 GB, free: 2.719 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 8.365e-06/0.6325, allocations: 0 / 0.6428 GB, free: 2.719 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.02407/0.6566, allocations: 10.88 MB / 0.6534 GB, free: 7.727 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.703e-05/0.6567, allocations: 85.77 kB / 0.6535 GB, free: 7.629 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006372/0.6631, allocations: 3.017 MB / 0.6564 GB, free: 4.594 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000629/0.6638, allocations: 73.7 kB / 0.6565 GB, free: 4.516 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002197/0.666, allocations: 2.863 MB / 0.6593 GB, free: 1.633 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001381/0.6674, allocations: 1.04 MB / 0.6603 GB, free: 0.6016 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002769/0.6702, allocations: 0.9016 MB / 0.6612 GB, free: 15.69 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9e-05/0.6703, allocations: 305.1 kB / 0.6615 GB, free: 15.39 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003522/0.6738, allocations: 2.027 MB / 0.6635 GB, free: 13.35 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005487/0.6793, allocations: 3.73 MB / 0.6671 GB, free: 8.863 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009437/0.6888, allocations: 6.044 MB / 0.673 GB, free: 2.246 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.989e-05/0.6889, allocations: 16 kB / 0.673 GB, free: 2.23 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01356/0.7025, allocations: 6.625 MB / 0.6795 GB, free: 11.91 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.382e-05/0.7026, allocations: 28 kB / 0.6795 GB, free: 11.89 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001057/0.7027, allocations: 56 kB / 0.6796 GB, free: 11.83 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001949/0.7047, allocations: 0.6798 MB / 0.6802 GB, free: 11.15 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00412/0.7088, allocations: 1.074 MB / 0.6813 GB, free: 10.15 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008925/0.7177, allocations: 6.232 MB / 0.6874 GB, free: 3.82 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003948/0.7217, allocations: 279.5 kB / 0.6876 GB, free: 3.547 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001012/0.7228, allocations: 232 kB / 0.6879 GB, free: 3.32 MB / 478.1 MB 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.004918/0.7277, allocations: 2.309 MB / 0.6901 GB, free: 1.074 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001062/0.7288, allocations: 320 kB / 0.6904 GB, free: 0.7578 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009566/0.7384, allocations: 4.632 MB / 0.6949 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-05/0.7384, allocations: 32 kB / 0.695 GB, free: 12.06 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.131e-05/0.7384, allocations: 4 kB / 0.695 GB, free: 12.06 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.952e-05/0.7385, allocations: 15.94 kB / 0.695 GB, free: 12.04 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02371/0.7622, allocations: 11.27 MB / 0.706 GB, free: 0.6562 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.618e-05/0.7623, allocations: 4 kB / 0.706 GB, free: 0.6523 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002569/0.7648, allocations: 0.528 MB / 0.7065 GB, free: 156 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2521/1.017, allocations: 0.5656 MB / 0.7071 GB, free: 174.1 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006937/1.018, allocations: 69.64 kB / 0.7071 GB, free: 174.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00949/1.027, allocations: 5.458 MB / 0.7125 GB, free: 172.6 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.277e-06/1.027, allocations: 4.625 kB / 0.7125 GB, free: 172.6 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01515/1.042, allocations: 6.591 MB / 0.7189 GB, free: 171.9 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002736/1.045, allocations: 0.7222 MB / 0.7196 GB, free: 171.6 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001216/1.046, allocations: 55.72 kB / 0.7197 GB, free: 171.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003113/1.05, allocations: 147.2 kB / 0.7198 GB, free: 171.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007777/1.05, allocations: 212.3 kB / 0.72 GB, free: 171.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004034/1.051, allocations: 91.47 kB / 0.7201 GB, free: 171.5 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005364/1.056, allocations: 2.014 MB / 0.7221 GB, free: 170.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.81e-07/1.056, allocations: 0 / 0.7221 GB, free: 170.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007698/1.064, allocations: 1.17 MB / 0.7232 GB, free: 170.6 MB / 494.1 MB 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.01389/1.078, allocations: 7.265 MB / 0.7303 GB, free: 167.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0261/1.104, allocations: 8.294 MB / 0.7384 GB, free: 164.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.258e-06/1.104, allocations: 0 / 0.7384 GB, free: 164.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005442/1.109, allocations: 2.269 MB / 0.7406 GB, free: 162.5 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005764/1.115, allocations: 0.6504 MB / 0.7413 GB, free: 162 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06481/1.18, allocations: 44.51 MB / 0.7847 GB, free: 116.8 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006029/1.186, allocations: 4.16 MB / 0.7888 GB, free: 112.6 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004171/1.19, allocations: 1.33 MB / 0.7901 GB, free: 111.3 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003426/1.194, allocations: 2.249 MB / 0.7923 GB, free: 109 MB / 494.1 MB Notification: Performance of SimCode: time 8.61e-07/1.194, allocations: 0 / 0.7923 GB, free: 109 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1545/1.348, allocations: 90.02 MB / 0.8802 GB, free: 19.29 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/12.43, allocations: 10.77 kB / 0.8802 GB, free: 19.28 MB / 494.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe 2>&1)