Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.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_VCurve4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4",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.001258/0.001258, allocations: 108 kB / 15.61 MB, free: 152 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.468/1.468, allocations: 222.9 MB / 239.3 MB, free: 4.582 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.002391/0.002391, allocations: 184.5 kB / 289.6 MB, free: 2.305 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03601/0.03601, allocations: 8.785 MB / 348.5 MB, free: 4.703 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00179/0.00179, allocations: 79.41 kB / 411.2 MB, free: 41.94 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07978/0.0816, allocations: 51.57 MB / 462.8 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve4): time 0.02676/0.1084, allocations: 25.44 MB / 488.2 MB, free: 4.68 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01476/0.1232, allocations: 7.933 MB / 496.1 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004677/0.1279, allocations: 175.5 kB / 496.3 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01685/0.1448, allocations: 7.649 MB / 0.4921 GB, free: 4.883 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008952/0.1537, allocations: 3.045 MB / 0.4951 GB, free: 1.828 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005262/0.159, allocations: 2.032 MB / 0.4971 GB, free: 15.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01091/0.1699, allocations: 9.161 MB / 0.506 GB, free: 6.617 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02559/0.1956, allocations: 17.32 MB / 0.523 GB, free: 5.141 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006307/0.2019, allocations: 4.742 MB / 0.5276 GB, free: 396 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1953/0.3972, allocations: 5.258 MB / 0.5327 GB, free: 23.09 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004261/0.4015, allocations: 1.353 MB / 0.534 GB, free: 23.09 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005647/0.4072, allocations: 1.722 MB / 0.5357 GB, free: 23.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004468/0.4117, allocations: 2.678 MB / 0.5383 GB, free: 22.85 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01157/0.4233, allocations: 5.084 MB / 0.5433 GB, free: 21.69 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02165/0.4449, allocations: 18.06 MB / 0.5609 GB, free: 16.4 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/0.445, allocations: 0.5938 kB / 0.5609 GB, free: 16.4 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.445, allocations: 3.984 kB / 0.561 GB, free: 16.4 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005764/0.4456, allocations: 5.688 kB / 0.561 GB, free: 16.4 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: 2183 * Number of variables: 2183 Notification: Performance of Generate backend data structure: time 0.03815/0.4838, allocations: 10.8 MB / 0.5715 GB, free: 9.613 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.908e-05/0.4838, allocations: 10.28 kB / 0.5715 GB, free: 9.613 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005202/0.489, allocations: 1.267 MB / 0.5727 GB, free: 8.789 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0325/0.5216, allocations: 5.638 MB / 0.5783 GB, free: 6.266 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01311/0.5347, allocations: 5.665 MB / 0.5838 GB, free: 2.492 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004661/0.5352, allocations: 0.5786 MB / 0.5844 GB, free: 2.23 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003358/0.5386, allocations: 0.7752 MB / 0.5851 GB, free: 1.84 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0338/0.5724, allocations: 12.77 MB / 0.5976 GB, free: 5.027 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003364/0.5728, allocations: 11.91 kB / 0.5976 GB, free: 5.016 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003499/0.5763, allocations: 322.9 kB / 0.5979 GB, free: 4.711 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005166/0.5768, allocations: 0.5007 MB / 0.5984 GB, free: 4.207 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02864/0.6055, allocations: 12.24 MB / 0.6103 GB, free: 7.953 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08121/0.6867, allocations: 43.72 MB / 0.653 GB, free: 11.64 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02431/0.7111, allocations: 25.19 MB / 0.6776 GB, free: 15.59 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005623/0.7167, allocations: 2.971 MB / 0.6805 GB, free: 12.61 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005383/0.7173, allocations: 242.4 kB / 0.6808 GB, free: 12.35 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005058/0.7224, allocations: 2.582 MB / 0.6833 GB, free: 9.699 MB / 478.1 MB Notification: Performance of pre-optimization done (n=391): time 1.063e-05/0.7224, allocations: 0 / 0.6833 GB, free: 9.699 MB / 478.1 MB Notification: Performance of matching and sorting (n=397): time 0.04712/0.7696, allocations: 18.11 MB / 0.701 GB, free: 7.488 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002328/0.7698, allocations: 355.5 kB / 0.7013 GB, free: 7.066 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009544/0.7794, allocations: 3.526 MB / 0.7048 GB, free: 3.539 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009295/0.7804, allocations: 93.7 kB / 0.7049 GB, free: 3.441 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003121/0.7835, allocations: 3.37 MB / 0.7081 GB, free: 52 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.2073/0.9908, allocations: 1.352 MB / 0.7095 GB, free: 167.1 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00209/0.9929, allocations: 1.085 MB / 0.7105 GB, free: 167 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.666e-05/0.993, allocations: 305.5 kB / 0.7108 GB, free: 166.7 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003634/0.9966, allocations: 2.552 MB / 0.7133 GB, free: 166.7 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005569/1.002, allocations: 4.504 MB / 0.7177 GB, free: 164.4 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01005/1.012, allocations: 7.446 MB / 0.725 GB, free: 161.9 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.104e-05/1.012, allocations: 22.34 kB / 0.725 GB, free: 161.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01487/1.027, allocations: 8.279 MB / 0.7331 GB, free: 159.7 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.227e-05/1.027, allocations: 57.94 kB / 0.7331 GB, free: 159.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001086/1.027, allocations: 60.59 kB / 0.7332 GB, free: 159.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002613/1.03, allocations: 1.007 MB / 0.7342 GB, free: 159.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004361/1.034, allocations: 1.259 MB / 0.7354 GB, free: 159.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01128/1.046, allocations: 8.827 MB / 0.744 GB, free: 154.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005653/1.051, allocations: 354.3 kB / 0.7444 GB, free: 154.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001363/1.053, allocations: 268.4 kB / 0.7446 GB, free: 154.2 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 275 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (664): * Single equations (assignments): 662 * Array equations: 0 * Algorithm blocks: 1 * 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 {(10,48,52.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007965/1.061, allocations: 2.9 MB / 0.7475 GB, free: 152.6 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001718/1.063, allocations: 394.4 kB / 0.7478 GB, free: 152.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01215/1.075, allocations: 6.181 MB / 0.7539 GB, free: 149.1 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.838e-05/1.075, allocations: 40.5 kB / 0.7539 GB, free: 149.1 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.054e-05/1.075, allocations: 19.73 kB / 0.7539 GB, free: 149.1 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.535e-05/1.075, allocations: 18.94 kB / 0.7539 GB, free: 149.1 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03133/1.106, allocations: 14.91 MB / 0.7685 GB, free: 136.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.561e-05/1.106, allocations: 4 kB / 0.7685 GB, free: 136.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00251/1.109, allocations: 0.683 MB / 0.7692 GB, free: 136.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002224/1.111, allocations: 0.8869 MB / 0.77 GB, free: 135.3 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002902/1.111, allocations: 79.98 kB / 0.7701 GB, free: 135.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00904/1.12, allocations: 7.754 MB / 0.7777 GB, free: 127.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.434e-06/1.12, allocations: 19.97 kB / 0.7777 GB, free: 127.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01162/1.132, allocations: 8.776 MB / 0.7863 GB, free: 118.4 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002509/1.135, allocations: 0.91 MB / 0.7872 GB, free: 117.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009411/1.136, allocations: 79.98 kB / 0.7872 GB, free: 117.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00224/1.138, allocations: 195.8 kB / 0.7874 GB, free: 117.2 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005466/1.138, allocations: 271.1 kB / 0.7877 GB, free: 116.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002056/1.139, allocations: 114.4 kB / 0.7878 GB, free: 116.8 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003243/1.142, allocations: 2.363 MB / 0.7901 GB, free: 114.5 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.21e-07/1.142, allocations: 6.625 kB / 0.7901 GB, free: 114.5 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005334/1.147, allocations: 1.445 MB / 0.7915 GB, free: 113 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 3 (smee.inertiaRotor.w,smee.rotorCage.port_p.reference.gamma,constantTorque.phi) * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 1 ($whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (371): * Single equations (assignments): 369 * Array equations: 0 * Algorithm blocks: 1 * 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 {(10,46,50.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01246/1.16, allocations: 9.496 MB / 0.8008 GB, free: 103.4 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02594/1.186, allocations: 11.92 MB / 0.8124 GB, free: 91.53 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.48e-05/1.186, allocations: 0 / 0.8124 GB, free: 91.53 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005211/1.191, allocations: 3.074 MB / 0.8154 GB, free: 88.43 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004311/1.195, allocations: 0.8148 MB / 0.8162 GB, free: 87.65 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08242/1.278, allocations: 56.28 MB / 0.8712 GB, free: 26.72 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008444/1.286, allocations: 5.009 MB / 0.8761 GB, free: 21.67 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00584/1.292, allocations: 1.59 MB / 0.8776 GB, free: 20.08 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005554/1.298, allocations: 2.753 MB / 0.8803 GB, free: 17.32 MB / 494.1 MB Notification: Performance of SimCode: time 1.684e-06/1.298, allocations: 4 kB / 0.8803 GB, free: 17.32 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3338/1.631, allocations: 113.5 MB / 0.9912 GB, free: 87.78 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/13.03, allocations: 22.98 kB / 0.9912 GB, free: 87.76 MB / 494.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe 2>&1)