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.001181/0.001181, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.292/1.292, allocations: 222.9 MB / 239 MB, free: 4.688 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.001159/0.001159, allocations: 200.3 kB / 289.3 MB, free: 2.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03341/0.03341, allocations: 8.809 MB / 348.2 MB, free: 4.816 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 76.86 kB / 410.7 MB, free: 42.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08908/0.09047, allocations: 51.56 MB / 462.3 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip2): time 0.03739/0.1279, allocations: 25 MB / 487.2 MB, free: 5.508 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01635/0.1443, allocations: 7.909 MB / 495.2 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004806/0.1491, allocations: 167.5 kB / 495.3 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01372/0.1629, allocations: 5.766 MB / 0.4893 GB, free: 7.633 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008085/0.171, allocations: 2.499 MB / 0.4918 GB, free: 5.129 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004482/0.1755, allocations: 1.497 MB / 0.4932 GB, free: 3.633 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009739/0.1852, allocations: 7.264 MB / 0.5003 GB, free: 12.35 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02045/0.2057, allocations: 15.28 MB / 0.5153 GB, free: 12.93 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005556/0.2113, allocations: 3.755 MB / 0.5189 GB, free: 9.168 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006637/0.218, allocations: 4.283 MB / 0.5231 GB, free: 4.871 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002708/0.2208, allocations: 1.07 MB / 0.5242 GB, free: 3.801 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004513/0.2253, allocations: 1.453 MB / 0.5256 GB, free: 2.348 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002905/0.2282, allocations: 2.143 MB / 0.5277 GB, free: 204 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2022/0.4304, allocations: 4.109 MB / 0.5317 GB, free: 24.81 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01618/0.4466, allocations: 14.36 MB / 0.5457 GB, free: 22.85 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.4467, allocations: 4.219 kB / 0.5457 GB, free: 22.85 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.225e-06/0.4467, allocations: 0 / 0.5457 GB, free: 22.85 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004496/0.4471, allocations: 0 / 0.5457 GB, free: 22.85 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.03008/0.4772, allocations: 8.804 MB / 0.5543 GB, free: 18.93 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.212e-05/0.4773, allocations: 10.44 kB / 0.5543 GB, free: 18.93 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003751/0.4811, allocations: 1.047 MB / 0.5553 GB, free: 18.66 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02327/0.5043, allocations: 4.382 MB / 0.5596 GB, free: 17 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00992/0.5143, allocations: 4.503 MB / 0.564 GB, free: 15.65 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003308/0.5147, allocations: 493.7 kB / 0.5645 GB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003017/0.5177, allocations: 0.6344 MB / 0.5651 GB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02792/0.5456, allocations: 10.36 MB / 0.5752 GB, free: 9.816 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002878/0.5459, allocations: 14.94 kB / 0.5752 GB, free: 9.809 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003333/0.5493, allocations: 267.9 kB / 0.5755 GB, free: 9.609 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004852/0.5498, allocations: 411.1 kB / 0.5759 GB, free: 9.527 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01888/0.5687, allocations: 9.866 MB / 0.5855 GB, free: 1.637 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06223/0.6309, allocations: 35.68 MB / 0.6204 GB, free: 13.38 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01864/0.6496, allocations: 20.66 MB / 0.6405 GB, free: 6.105 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00406/0.6537, allocations: 2.3 MB / 0.6428 GB, free: 3.805 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004404/0.6542, allocations: 230.6 kB / 0.643 GB, free: 3.551 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.401e-05/0.6542, allocations: 64.27 kB / 0.6431 GB, free: 3.48 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 5.58e-06/0.6543, allocations: 0 / 0.6431 GB, free: 3.48 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.02413/0.6784, allocations: 10.87 MB / 0.6537 GB, free: 8.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.736e-05/0.6785, allocations: 89.77 kB / 0.6538 GB, free: 8.398 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005815/0.6843, allocations: 3.021 MB / 0.6567 GB, free: 5.359 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002799/0.6846, allocations: 69.7 kB / 0.6568 GB, free: 5.285 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001963/0.6866, allocations: 2.86 MB / 0.6596 GB, free: 2.406 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000909/0.6875, allocations: 1.042 MB / 0.6606 GB, free: 1.371 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001872/0.6894, allocations: 0.9016 MB / 0.6615 GB, free: 468 kB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.797e-05/0.6895, allocations: 301.1 kB / 0.6618 GB, free: 164 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003138/0.6926, allocations: 2.036 MB / 0.6638 GB, free: 14.12 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004221/0.6969, allocations: 3.73 MB / 0.6674 GB, free: 9.633 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007209/0.7041, allocations: 6.039 MB / 0.6733 GB, free: 3.02 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.729e-05/0.7041, allocations: 16 kB / 0.6733 GB, free: 3.004 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01102/0.7152, allocations: 6.628 MB / 0.6798 GB, free: 12.68 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.399e-05/0.7153, allocations: 28 kB / 0.6798 GB, free: 12.66 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.035e-05/0.7154, allocations: 56 kB / 0.6799 GB, free: 12.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001915/0.7173, allocations: 0.6795 MB / 0.6805 GB, free: 11.92 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003663/0.721, allocations: 1.073 MB / 0.6816 GB, free: 10.92 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008586/0.7296, allocations: 6.229 MB / 0.6877 GB, free: 4.594 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003945/0.7335, allocations: 283.5 kB / 0.6879 GB, free: 4.316 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007914/0.7343, allocations: 228 kB / 0.6881 GB, free: 4.094 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.004706/0.739, allocations: 2.311 MB / 0.6904 GB, free: 1.848 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009783/0.74, allocations: 320 kB / 0.6907 GB, free: 1.531 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008735/0.7488, allocations: 4.635 MB / 0.6952 GB, free: 12.86 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-05/0.7488, allocations: 28 kB / 0.6953 GB, free: 12.84 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.189e-05/0.7488, allocations: 8 kB / 0.6953 GB, free: 12.83 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.073e-05/0.7489, allocations: 15.94 kB / 0.6953 GB, free: 12.81 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01948/0.7684, allocations: 11.26 MB / 0.7063 GB, free: 1.438 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.44e-05/0.7684, allocations: 8 kB / 0.7063 GB, free: 1.43 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002038/0.7705, allocations: 0.5274 MB / 0.7068 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001532/0.772, allocations: 0.5805 MB / 0.7074 GB, free: 360 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001831/0.7722, allocations: 63.98 kB / 0.7074 GB, free: 296 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1989/0.9711, allocations: 5.458 MB / 0.7128 GB, free: 173.1 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.023e-06/0.9711, allocations: 10.12 kB / 0.7128 GB, free: 173.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01118/0.9823, allocations: 6.578 MB / 0.7192 GB, free: 172.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001947/0.9843, allocations: 0.721 MB / 0.7199 GB, free: 172.4 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005341/0.9848, allocations: 60.06 kB / 0.72 GB, free: 172.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001647/0.9865, allocations: 151.3 kB / 0.7201 GB, free: 172.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005277/0.987, allocations: 207.8 kB / 0.7203 GB, free: 172.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001771/0.9872, allocations: 87.19 kB / 0.7204 GB, free: 172.3 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002797/0.99, allocations: 2.017 MB / 0.7224 GB, free: 171.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.99, allocations: 0 / 0.7224 GB, free: 171.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004527/0.9945, allocations: 1.174 MB / 0.7235 GB, free: 171.4 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.008274/1.003, allocations: 7.261 MB / 0.7306 GB, free: 168.1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01689/1.02, allocations: 8.292 MB / 0.7387 GB, free: 165.1 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.088e-05/1.02, allocations: 0 / 0.7387 GB, free: 165.1 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003244/1.023, allocations: 2.271 MB / 0.7409 GB, free: 163.2 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003401/1.026, allocations: 0.6538 MB / 0.7415 GB, free: 162.7 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07843/1.105, allocations: 47.12 MB / 0.7876 GB, free: 114.8 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00521/1.11, allocations: 4.145 MB / 0.7916 GB, free: 110.6 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004573/1.115, allocations: 1.329 MB / 0.7929 GB, free: 109.3 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003401/1.118, allocations: 2.249 MB / 0.7951 GB, free: 107.1 MB / 494.1 MB Notification: Performance of SimCode: time 7.31e-07/1.118, allocations: 0 / 0.7951 GB, free: 107.1 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6968/1.815, allocations: 89.97 MB / 0.883 GB, free: 17.47 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001669/1.815, allocations: 214.8 kB / 0.8832 GB, free: 17.21 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.593/5.409, allocations: 3.938 kB / 0.8832 GB, free: 17.21 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)