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.001136/0.001136, 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.388/1.388, allocations: 222.9 MB / 239.3 MB, free: 4.574 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.001611/0.00161, allocations: 188.5 kB / 289.6 MB, free: 2.309 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03685/0.03685, allocations: 8.796 MB / 348.5 MB, free: 4.668 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001519/0.001519, allocations: 81.55 kB / 411.2 MB, free: 41.97 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1021, allocations: 51.56 MB / 462.8 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve4): time 0.02763/0.1298, allocations: 25.44 MB / 488.2 MB, free: 4.629 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01875/0.1486, allocations: 7.94 MB / 496.1 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006117/0.1547, allocations: 175.5 kB / 496.3 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01987/0.1746, allocations: 7.645 MB / 0.4921 GB, free: 4.828 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01376/0.1884, allocations: 3.047 MB / 0.4951 GB, free: 1.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006435/0.1948, allocations: 2.031 MB / 0.4971 GB, free: 15.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01383/0.2087, allocations: 9.157 MB / 0.506 GB, free: 6.562 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03037/0.2391, allocations: 17.33 MB / 0.523 GB, free: 5.082 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008826/0.248, allocations: 4.738 MB / 0.5276 GB, free: 340 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2251/0.4732, allocations: 5.26 MB / 0.5327 GB, free: 23.12 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005731/0.4789, allocations: 1.354 MB / 0.534 GB, free: 23.12 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007699/0.4867, allocations: 1.725 MB / 0.5357 GB, free: 23.12 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005602/0.4923, allocations: 2.676 MB / 0.5383 GB, free: 22.83 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0123/0.5046, allocations: 5.089 MB / 0.5433 GB, free: 21.68 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02135/0.526, allocations: 18.05 MB / 0.5609 GB, free: 16.38 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.5261, allocations: 0 / 0.5609 GB, free: 16.38 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.5261, allocations: 0 / 0.5609 GB, free: 16.38 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005969/0.5267, allocations: 0 / 0.5609 GB, free: 16.38 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.04117/0.5679, allocations: 10.81 MB / 0.5715 GB, free: 9.582 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/0.5679, allocations: 9.969 kB / 0.5715 GB, free: 9.582 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005136/0.5731, allocations: 1.267 MB / 0.5727 GB, free: 8.766 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03083/0.6039, allocations: 5.634 MB / 0.5782 GB, free: 6.238 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0108/0.6147, allocations: 5.671 MB / 0.5838 GB, free: 2.457 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004259/0.6152, allocations: 0.5851 MB / 0.5844 GB, free: 2.195 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003346/0.6185, allocations: 0.7707 MB / 0.5851 GB, free: 1.797 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03481/0.6534, allocations: 12.77 MB / 0.5976 GB, free: 4.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002912/0.6537, allocations: 15.56 kB / 0.5976 GB, free: 4.969 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003051/0.6567, allocations: 324.9 kB / 0.5979 GB, free: 4.664 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005688/0.6573, allocations: 0.4929 MB / 0.5984 GB, free: 4.168 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02781/0.6851, allocations: 12.24 MB / 0.6103 GB, free: 7.91 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07572/0.7609, allocations: 43.72 MB / 0.653 GB, free: 11.59 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02318/0.7841, allocations: 25.19 MB / 0.6776 GB, free: 15.53 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005058/0.7892, allocations: 2.96 MB / 0.6805 GB, free: 12.56 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004056/0.7896, allocations: 250.9 kB / 0.6808 GB, free: 12.29 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003926/0.7936, allocations: 2.579 MB / 0.6833 GB, free: 9.648 MB / 478.1 MB Notification: Performance of pre-optimization done (n=391): time 5.72e-06/0.7936, allocations: 0 / 0.6833 GB, free: 9.648 MB / 478.1 MB Notification: Performance of matching and sorting (n=397): time 0.04183/0.8354, allocations: 18.12 MB / 0.701 GB, free: 7.438 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001868/0.8357, allocations: 351.5 kB / 0.7013 GB, free: 7.02 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006127/0.8418, allocations: 3.526 MB / 0.7048 GB, free: 3.488 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008543/0.8427, allocations: 93.7 kB / 0.7048 GB, free: 3.391 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2164/1.059, allocations: 3.371 MB / 0.7081 GB, free: 138.9 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001644/1.061, allocations: 1.348 MB / 0.7095 GB, free: 138.8 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002145/1.063, allocations: 1.08 MB / 0.7105 GB, free: 138.7 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.743e-05/1.063, allocations: 306 kB / 0.7108 GB, free: 138.4 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004325/1.067, allocations: 2.547 MB / 0.7133 GB, free: 138.4 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005474/1.073, allocations: 4.514 MB / 0.7177 GB, free: 136.1 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01038/1.083, allocations: 7.449 MB / 0.725 GB, free: 133.8 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.273e-05/1.083, allocations: 16.84 kB / 0.725 GB, free: 133.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01485/1.098, allocations: 8.285 MB / 0.7331 GB, free: 133.3 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.781e-05/1.098, allocations: 55.8 kB / 0.7331 GB, free: 133.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001097/1.098, allocations: 61.78 kB / 0.7332 GB, free: 133.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002726/1.101, allocations: 1.009 MB / 0.7342 GB, free: 133.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004916/1.106, allocations: 1.261 MB / 0.7354 GB, free: 133.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01119/1.117, allocations: 8.812 MB / 0.744 GB, free: 128.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004614/1.122, allocations: 364.3 kB / 0.7444 GB, free: 128.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008138/1.123, allocations: 263.6 kB / 0.7446 GB, free: 128.1 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.00471/1.128, allocations: 2.908 MB / 0.7475 GB, free: 126.7 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008374/1.128, allocations: 393.3 kB / 0.7478 GB, free: 126.5 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008988/1.137, allocations: 6.182 MB / 0.7539 GB, free: 123 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.361e-05/1.137, allocations: 40 kB / 0.7539 GB, free: 122.9 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.407e-05/1.137, allocations: 8 kB / 0.7539 GB, free: 122.9 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.741e-05/1.137, allocations: 27.88 kB / 0.7539 GB, free: 122.9 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02256/1.16, allocations: 14.92 MB / 0.7685 GB, free: 109.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.414e-05/1.16, allocations: 4 kB / 0.7685 GB, free: 109.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002475/1.163, allocations: 0.6815 MB / 0.7692 GB, free: 109.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002269/1.165, allocations: 0.8811 MB / 0.77 GB, free: 108.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003713/1.165, allocations: 91.72 kB / 0.7701 GB, free: 108.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009312/1.175, allocations: 7.75 MB / 0.7777 GB, free: 100.2 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/1.175, allocations: 7.75 kB / 0.7777 GB, free: 100.2 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01186/1.186, allocations: 8.779 MB / 0.7863 GB, free: 91.35 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002166/1.189, allocations: 0.9101 MB / 0.7872 GB, free: 90.42 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007235/1.189, allocations: 79.94 kB / 0.7872 GB, free: 90.34 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002035/1.191, allocations: 195.8 kB / 0.7874 GB, free: 90.15 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005682/1.192, allocations: 278.8 kB / 0.7877 GB, free: 89.88 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001955/1.192, allocations: 108 kB / 0.7878 GB, free: 89.77 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003159/1.195, allocations: 2.363 MB / 0.7901 GB, free: 87.42 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/1.195, allocations: 0 / 0.7901 GB, free: 87.42 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005159/1.201, allocations: 1.449 MB / 0.7915 GB, free: 85.97 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.01109/1.212, allocations: 9.491 MB / 0.8008 GB, free: 76.43 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02476/1.236, allocations: 11.91 MB / 0.8124 GB, free: 64.78 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.134e-06/1.236, allocations: 0 / 0.8124 GB, free: 64.78 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004806/1.241, allocations: 3.078 MB / 0.8154 GB, free: 61.76 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004469/1.246, allocations: 0.8239 MB / 0.8162 GB, free: 60.99 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08207/1.328, allocations: 56.27 MB / 0.8712 GB, free: 372 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007017/1.335, allocations: 5.014 MB / 0.8761 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00548/1.34, allocations: 1.586 MB / 0.8776 GB, free: 9.719 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005325/1.346, allocations: 2.753 MB / 0.8803 GB, free: 6.965 MB / 0.4981 GB Notification: Performance of SimCode: time 1.413e-06/1.346, allocations: 3.938 kB / 0.8803 GB, free: 6.961 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3696/1.715, allocations: 113.5 MB / 0.9912 GB, free: 103.2 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/13.41, allocations: 7.859 kB / 0.9912 GB, free: 103.2 MB / 0.4981 GB (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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe 2>&1)