Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.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_Slip1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Slip1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip1",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.001214/0.001214, allocations: 107.4 kB / 15.34 MB, free: 0.5195 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.263/1.263, allocations: 222.9 MB / 239 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.001436/0.001436, allocations: 192.5 kB / 289.3 MB, free: 2.473 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0314/0.0314, allocations: 8.798 MB / 348.2 MB, free: 4.859 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001519/0.001519, allocations: 76.56 kB / 410.7 MB, free: 42.47 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07477/0.0763, allocations: 51.57 MB / 462.3 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip1): time 0.02365/0.1, allocations: 24.98 MB / 487.2 MB, free: 5.703 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01542/0.1155, allocations: 7.901 MB / 495.1 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004968/0.1205, allocations: 167.5 kB / 495.3 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01502/0.1355, allocations: 5.774 MB / 0.4893 GB, free: 7.828 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01163/0.1472, allocations: 2.491 MB / 0.4918 GB, free: 5.332 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005629/0.1528, allocations: 1.496 MB / 0.4932 GB, free: 3.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008824/0.1617, allocations: 7.265 MB / 0.5003 GB, free: 12.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01996/0.1817, allocations: 15.27 MB / 0.5152 GB, free: 13.15 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00586/0.1876, allocations: 3.755 MB / 0.5189 GB, free: 9.387 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006664/0.1943, allocations: 4.29 MB / 0.5231 GB, free: 5.082 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002632/0.1969, allocations: 1.074 MB / 0.5241 GB, free: 4.008 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004244/0.2012, allocations: 1.445 MB / 0.5256 GB, free: 2.562 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002618/0.2038, allocations: 2.151 MB / 0.5277 GB, free: 416 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1824/0.3863, allocations: 4.106 MB / 0.5317 GB, free: 24.78 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01285/0.3992, allocations: 14.36 MB / 0.5457 GB, free: 22.97 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.3992, allocations: 1.031 kB / 0.5457 GB, free: 22.97 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3992, allocations: 0.8438 kB / 0.5457 GB, free: 22.97 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003888/0.3996, allocations: 0 / 0.5457 GB, free: 22.97 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.0266/0.4262, allocations: 8.812 MB / 0.5543 GB, free: 19.05 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.4263, allocations: 10.69 kB / 0.5543 GB, free: 19.05 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003753/0.4301, allocations: 1.044 MB / 0.5553 GB, free: 18.79 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02516/0.4552, allocations: 4.389 MB / 0.5596 GB, free: 17.12 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01017/0.4654, allocations: 4.501 MB / 0.564 GB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004844/0.466, allocations: 488.8 kB / 0.5645 GB, free: 15.76 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002676/0.4686, allocations: 0.6371 MB / 0.5651 GB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02176/0.4904, allocations: 10.36 MB / 0.5752 GB, free: 9.949 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001595/0.4906, allocations: 11.67 kB / 0.5752 GB, free: 9.941 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008558/0.4915, allocations: 266.8 kB / 0.5755 GB, free: 9.742 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002905/0.4918, allocations: 420.3 kB / 0.5759 GB, free: 9.656 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01555/0.5073, allocations: 9.863 MB / 0.5855 GB, free: 1.801 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05438/0.5617, allocations: 35.68 MB / 0.6203 GB, free: 13.55 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01737/0.5791, allocations: 20.65 MB / 0.6405 GB, free: 6.277 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003702/0.5829, allocations: 2.31 MB / 0.6428 GB, free: 3.969 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003094/0.5832, allocations: 228.8 kB / 0.643 GB, free: 3.719 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.107e-05/0.5833, allocations: 64.89 kB / 0.6431 GB, free: 3.645 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 5.059e-06/0.5833, allocations: 0 / 0.6431 GB, free: 3.645 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.02144/0.6047, allocations: 10.87 MB / 0.6537 GB, free: 8.664 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.522e-05/0.6048, allocations: 85.72 kB / 0.6537 GB, free: 8.566 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005059/0.6099, allocations: 3.025 MB / 0.6567 GB, free: 5.523 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003328/0.6102, allocations: 73.7 kB / 0.6568 GB, free: 5.445 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001741/0.612, allocations: 2.863 MB / 0.6596 GB, free: 2.562 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009137/0.6129, allocations: 1.039 MB / 0.6606 GB, free: 1.535 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001342/0.6143, allocations: 0.9094 MB / 0.6615 GB, free: 0.6133 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.796e-05/0.6144, allocations: 301.1 kB / 0.6618 GB, free: 324 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002884/0.6173, allocations: 2.024 MB / 0.6637 GB, free: 14.29 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003888/0.6212, allocations: 3.727 MB / 0.6674 GB, free: 9.797 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007085/0.6282, allocations: 6.051 MB / 0.6733 GB, free: 3.176 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.954e-05/0.6283, allocations: 16 kB / 0.6733 GB, free: 3.16 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01056/0.6389, allocations: 6.625 MB / 0.6798 GB, free: 12.84 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.522e-05/0.639, allocations: 28 kB / 0.6798 GB, free: 12.81 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.018e-05/0.6391, allocations: 52 kB / 0.6798 GB, free: 12.76 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001804/0.6409, allocations: 0.6758 MB / 0.6805 GB, free: 12.08 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003847/0.6447, allocations: 1.066 MB / 0.6815 GB, free: 11.09 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008593/0.6533, allocations: 6.241 MB / 0.6876 GB, free: 4.75 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00374/0.6571, allocations: 279.5 kB / 0.6879 GB, free: 4.477 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006099/0.6577, allocations: 228 kB / 0.6881 GB, free: 4.254 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.003702/0.6614, allocations: 2.309 MB / 0.6904 GB, free: 2.008 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006718/0.6621, allocations: 320 kB / 0.6907 GB, free: 1.691 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00767/0.6698, allocations: 4.643 MB / 0.6952 GB, free: 13.02 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.309e-05/0.6698, allocations: 32 kB / 0.6953 GB, free: 12.98 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.6699, allocations: 4 kB / 0.6953 GB, free: 12.98 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.728e-05/0.6699, allocations: 15.94 kB / 0.6953 GB, free: 12.96 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01736/0.6873, allocations: 11.26 MB / 0.7063 GB, free: 1.594 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.317e-05/0.6873, allocations: 4.625 kB / 0.7063 GB, free: 1.59 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002071/0.6894, allocations: 0.5361 MB / 0.7068 GB, free: 1.082 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00156/0.6909, allocations: 0.5626 MB / 0.7073 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001962/0.6912, allocations: 71.98 kB / 0.7074 GB, free: 460 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1744/0.8655, allocations: 5.461 MB / 0.7127 GB, free: 173.1 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.86e-06/0.8656, allocations: 9.5 kB / 0.7128 GB, free: 173.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01044/0.876, allocations: 6.574 MB / 0.7192 GB, free: 172.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001784/0.8779, allocations: 0.7265 MB / 0.7199 GB, free: 172.4 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005737/0.8784, allocations: 63.55 kB / 0.7199 GB, free: 172.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00162/0.8801, allocations: 146.8 kB / 0.7201 GB, free: 172.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004797/0.8806, allocations: 208 kB / 0.7203 GB, free: 172.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002296/0.8808, allocations: 93.52 kB / 0.7204 GB, free: 172.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002504/0.8833, allocations: 2.016 MB / 0.7223 GB, free: 171.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8833, allocations: 0 / 0.7223 GB, free: 171.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003683/0.887, allocations: 1.172 MB / 0.7235 GB, free: 171.5 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.00814/0.8952, allocations: 7.27 MB / 0.7306 GB, free: 168.1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01608/0.9113, allocations: 8.286 MB / 0.7387 GB, free: 165.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/0.9113, allocations: 4 kB / 0.7387 GB, free: 165.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00314/0.9145, allocations: 2.262 MB / 0.7409 GB, free: 163.3 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003478/0.918, allocations: 0.6501 MB / 0.7415 GB, free: 162.8 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07347/0.9914, allocations: 47.12 MB / 0.7875 GB, free: 115 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004887/0.9964, allocations: 4.157 MB / 0.7916 GB, free: 110.8 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003646/1, allocations: 1.322 MB / 0.7929 GB, free: 109.5 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002727/1.003, allocations: 2.247 MB / 0.7951 GB, free: 107.2 MB / 494.1 MB Notification: Performance of SimCode: time 9.62e-07/1.003, allocations: 0 / 0.7951 GB, free: 107.2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4833/1.486, allocations: 89.97 MB / 0.8829 GB, free: 17.62 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001483/1.486, allocations: 223.6 kB / 0.8831 GB, free: 17.36 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.565/5.051, allocations: 0 / 0.8831 GB, free: 17.36 MB / 494.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip1_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe 2>&1)