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.001309/0.001309, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.321/1.321, allocations: 222.9 MB / 238.9 MB, free: 4.734 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.001256/0.001257, allocations: 188.5 kB / 289.1 MB, free: 2.477 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03434/0.03434, allocations: 8.796 MB / 348.1 MB, free: 4.887 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 80.53 kB / 410.5 MB, free: 42.49 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07612/0.07759, allocations: 51.56 MB / 462.1 MB, free: 14.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip3): time 0.02325/0.1009, allocations: 25 MB / 487.1 MB, free: 5.789 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01374/0.1147, allocations: 7.944 MB / 495 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00404/0.1187, allocations: 167.5 kB / 495.2 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01264/0.1314, allocations: 5.774 MB / 0.4892 GB, free: 7.871 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007416/0.1388, allocations: 2.514 MB / 0.4917 GB, free: 5.352 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00403/0.1429, allocations: 1.524 MB / 0.4932 GB, free: 3.832 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009489/0.1524, allocations: 7.361 MB / 0.5003 GB, free: 12.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01701/0.1694, allocations: 10.95 MB / 0.511 GB, free: 1.367 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005201/0.1746, allocations: 3.232 MB / 0.5142 GB, free: 14.12 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006549/0.1812, allocations: 4.04 MB / 0.5181 GB, free: 10.07 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002544/0.1838, allocations: 0.6953 MB / 0.5188 GB, free: 9.375 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004175/0.188, allocations: 1.074 MB / 0.5199 GB, free: 8.301 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003008/0.191, allocations: 1.768 MB / 0.5216 GB, free: 6.527 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006612/0.1977, allocations: 3.718 MB / 0.5252 GB, free: 2.793 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1879/0.3856, allocations: 14.11 MB / 0.539 GB, free: 27.03 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.746e-06/0.3857, allocations: 0.625 kB / 0.539 GB, free: 27.03 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.577e-06/0.3857, allocations: 0 / 0.539 GB, free: 27.03 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006295/0.3863, allocations: 2.094 kB / 0.539 GB, free: 27.03 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.02432/0.4106, allocations: 8.793 MB / 0.5476 GB, free: 23.17 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.4107, allocations: 9.344 kB / 0.5476 GB, free: 23.17 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002172/0.4129, allocations: 1.044 MB / 0.5486 GB, free: 22.91 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.024/0.4369, allocations: 4.388 MB / 0.5529 GB, free: 21.25 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009389/0.4463, allocations: 4.508 MB / 0.5573 GB, free: 19.92 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003562/0.4467, allocations: 490.7 kB / 0.5578 GB, free: 19.91 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002321/0.449, allocations: 0.6303 MB / 0.5584 GB, free: 19.9 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02071/0.4698, allocations: 10.36 MB / 0.5685 GB, free: 16.47 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001814/0.47, allocations: 13.97 kB / 0.5685 GB, free: 16.46 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001003/0.471, allocations: 264 kB / 0.5688 GB, free: 16.27 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003303/0.4713, allocations: 417.6 kB / 0.5692 GB, free: 16.18 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01839/0.4897, allocations: 9.865 MB / 0.5788 GB, free: 9.094 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06186/0.5516, allocations: 35.68 MB / 0.6137 GB, free: 4.867 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01844/0.5701, allocations: 20.66 MB / 0.6338 GB, free: 13.59 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003812/0.574, allocations: 2.304 MB / 0.6361 GB, free: 11.29 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003737/0.5744, allocations: 228.3 kB / 0.6363 GB, free: 11.04 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.399e-05/0.5744, allocations: 64.89 kB / 0.6364 GB, free: 10.96 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 4.94e-06/0.5744, allocations: 0 / 0.6364 GB, free: 10.96 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.02184/0.5963, allocations: 10.88 MB / 0.647 GB, free: 15.98 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.142e-05/0.5964, allocations: 85.72 kB / 0.6471 GB, free: 15.89 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005163/0.6015, allocations: 3.021 MB / 0.65 GB, free: 12.85 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001733/0.6017, allocations: 73.7 kB / 0.6501 GB, free: 12.77 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001927/0.6037, allocations: 2.869 MB / 0.6529 GB, free: 9.879 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008196/0.6045, allocations: 1.032 MB / 0.6539 GB, free: 8.855 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001286/0.6058, allocations: 0.9133 MB / 0.6548 GB, free: 7.93 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.487e-05/0.6059, allocations: 303.8 kB / 0.6551 GB, free: 7.633 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002973/0.6089, allocations: 2.024 MB / 0.6571 GB, free: 5.602 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003815/0.6127, allocations: 3.725 MB / 0.6607 GB, free: 1.117 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006829/0.6195, allocations: 6.042 MB / 0.6666 GB, free: 10.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.306e-05/0.6196, allocations: 16 kB / 0.6666 GB, free: 10.48 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.009843/0.6294, allocations: 6.622 MB / 0.6731 GB, free: 4.168 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.927e-05/0.6295, allocations: 32.22 kB / 0.6731 GB, free: 4.137 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.699e-05/0.6296, allocations: 56 kB / 0.6732 GB, free: 4.082 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001714/0.6313, allocations: 0.6715 MB / 0.6738 GB, free: 3.41 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00332/0.6346, allocations: 1.066 MB / 0.6749 GB, free: 2.418 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007632/0.6422, allocations: 5.797 MB / 0.6805 GB, free: 12.54 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002687/0.6449, allocations: 279.5 kB / 0.6808 GB, free: 12.26 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003247/0.6453, allocations: 224 kB / 0.681 GB, free: 12.04 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.003257/0.6485, allocations: 2.325 MB / 0.6833 GB, free: 9.785 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005142/0.6491, allocations: 324.1 kB / 0.6836 GB, free: 9.465 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007204/0.6563, allocations: 4.629 MB / 0.6881 GB, free: 4.801 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.512e-05/0.6563, allocations: 32 kB / 0.6881 GB, free: 4.77 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.12e-05/0.6563, allocations: 7.938 kB / 0.6881 GB, free: 4.762 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.649e-05/0.6564, allocations: 19.94 kB / 0.6882 GB, free: 4.742 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01727/0.6736, allocations: 11.26 MB / 0.6991 GB, free: 9.375 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.227e-05/0.6737, allocations: 4 kB / 0.6992 GB, free: 9.371 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001996/0.6757, allocations: 0.5341 MB / 0.6997 GB, free: 8.867 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001547/0.6772, allocations: 0.5646 MB / 0.7002 GB, free: 8.301 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001747/0.6774, allocations: 67.98 kB / 0.7003 GB, free: 8.234 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006863/0.6843, allocations: 5.039 MB / 0.7052 GB, free: 3.082 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.6843, allocations: 4 kB / 0.7052 GB, free: 3.078 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2006/0.8849, allocations: 6.586 MB / 0.7116 GB, free: 175.8 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002071/0.887, allocations: 0.7216 MB / 0.7124 GB, free: 175.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004963/0.8875, allocations: 63.84 kB / 0.7124 GB, free: 175.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001609/0.8892, allocations: 147.9 kB / 0.7126 GB, free: 175.7 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005174/0.8897, allocations: 207.6 kB / 0.7128 GB, free: 175.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001933/0.8899, allocations: 90.67 kB / 0.7128 GB, free: 175.7 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003613/0.8935, allocations: 2.016 MB / 0.7148 GB, free: 175.3 MB / 494.1 MB Notification: Performance of sort global known variables: time 8.52e-07/0.8935, allocations: 0 / 0.7148 GB, free: 175.3 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004995/0.8985, allocations: 1.173 MB / 0.716 GB, free: 175.2 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.009529/0.9081, allocations: 7.257 MB / 0.723 GB, free: 171.8 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007404/0.9155, allocations: 5.022 MB / 0.7279 GB, free: 170 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/0.9155, allocations: 1.438 kB / 0.7279 GB, free: 170 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002848/0.9184, allocations: 2.271 MB / 0.7302 GB, free: 169 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003054/0.9214, allocations: 0.606 MB / 0.7308 GB, free: 168.8 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06726/0.9887, allocations: 47.11 MB / 0.7768 GB, free: 126.3 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00324/0.992, allocations: 4.148 MB / 0.7808 GB, free: 122.1 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003446/0.9954, allocations: 1.33 MB / 0.7821 GB, free: 120.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002229/0.9977, allocations: 2.245 MB / 0.7843 GB, free: 118.5 MB / 494.1 MB Notification: Performance of SimCode: time 1.343e-06/0.9977, allocations: 0 / 0.7843 GB, free: 118.5 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1008/1.098, allocations: 88.19 MB / 0.8704 GB, free: 30.68 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000131/1.099, allocations: 210.8 kB / 0.8706 GB, free: 30.43 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.242/4.34, allocations: 0 / 0.8706 GB, free: 30.43 MB / 494.1 MB (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)