Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.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_VCurve3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3",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.001119/0.001124, 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.37/1.37, allocations: 222.9 MB / 239.3 MB, free: 4.621 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.001296/0.001296, allocations: 188.5 kB / 289.6 MB, free: 2.34 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03487/0.03487, allocations: 8.784 MB / 348.5 MB, free: 4.746 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002189/0.002189, allocations: 81 kB / 411.2 MB, free: 42.01 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1153, allocations: 51.56 MB / 462.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve3): time 0.02692/0.1422, allocations: 25.44 MB / 488.2 MB, free: 4.75 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01844/0.1607, allocations: 7.94 MB / 496.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006262/0.167, allocations: 171.5 kB / 496.3 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01748/0.1845, allocations: 7.653 MB / 0.4921 GB, free: 4.945 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01117/0.1957, allocations: 3.042 MB / 0.4951 GB, free: 1.891 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006186/0.2019, allocations: 2.027 MB / 0.4971 GB, free: 15.87 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01358/0.2155, allocations: 9.167 MB / 0.506 GB, free: 6.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0295/0.2451, allocations: 17.32 MB / 0.523 GB, free: 5.203 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01004/0.2551, allocations: 4.745 MB / 0.5276 GB, free: 456 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2244/0.4796, allocations: 5.256 MB / 0.5327 GB, free: 23.14 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004289/0.484, allocations: 1.354 MB / 0.5341 GB, free: 23.14 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005826/0.4898, allocations: 1.724 MB / 0.5357 GB, free: 23.14 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004224/0.4941, allocations: 2.673 MB / 0.5383 GB, free: 22.96 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0111/0.5052, allocations: 5.086 MB / 0.5433 GB, free: 21.8 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02361/0.5288, allocations: 18.06 MB / 0.561 GB, free: 16.48 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.5289, allocations: 2.375 kB / 0.561 GB, free: 16.48 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.133e-06/0.5289, allocations: 0.5 kB / 0.561 GB, free: 16.48 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005424/0.5294, allocations: 0 / 0.561 GB, free: 16.48 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.04083/0.5703, allocations: 10.81 MB / 0.5715 GB, free: 9.691 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.086e-05/0.5703, allocations: 9.656 kB / 0.5715 GB, free: 9.691 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005214/0.5756, allocations: 1.262 MB / 0.5727 GB, free: 8.871 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03105/0.6066, allocations: 5.644 MB / 0.5783 GB, free: 6.34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01321/0.6199, allocations: 5.665 MB / 0.5838 GB, free: 2.566 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005912/0.6205, allocations: 0.5842 MB / 0.5844 GB, free: 2.305 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00389/0.6244, allocations: 0.7683 MB / 0.5851 GB, free: 1.949 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03991/0.6643, allocations: 12.77 MB / 0.5976 GB, free: 5.141 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000409/0.6648, allocations: 19.89 kB / 0.5976 GB, free: 5.121 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003042/0.6678, allocations: 322.5 kB / 0.5979 GB, free: 4.816 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005781/0.6684, allocations: 0.4929 MB / 0.5984 GB, free: 4.32 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02704/0.6955, allocations: 12.25 MB / 0.6104 GB, free: 8.059 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08775/0.7833, allocations: 43.71 MB / 0.653 GB, free: 11.75 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02605/0.8094, allocations: 25.18 MB / 0.6776 GB, free: 15.69 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005306/0.8147, allocations: 2.975 MB / 0.6805 GB, free: 12.71 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005078/0.8153, allocations: 244.4 kB / 0.6808 GB, free: 12.45 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00485/0.8201, allocations: 2.582 MB / 0.6833 GB, free: 9.797 MB / 478.1 MB Notification: Performance of pre-optimization done (n=391): time 8.827e-06/0.8202, allocations: 0 / 0.6833 GB, free: 9.797 MB / 478.1 MB Notification: Performance of matching and sorting (n=397): time 0.04397/0.8641, allocations: 18.11 MB / 0.701 GB, free: 7.586 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001948/0.8644, allocations: 359.5 kB / 0.7013 GB, free: 7.16 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007349/0.8717, allocations: 3.522 MB / 0.7048 GB, free: 3.633 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007401/0.8725, allocations: 89.7 kB / 0.7049 GB, free: 3.539 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002554/0.8751, allocations: 3.379 MB / 0.7082 GB, free: 144 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.2272/1.102, allocations: 1.348 MB / 0.7095 GB, free: 167 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002122/1.104, allocations: 1.077 MB / 0.7105 GB, free: 167 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.935e-05/1.105, allocations: 311 kB / 0.7108 GB, free: 166.7 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00373/1.108, allocations: 2.547 MB / 0.7133 GB, free: 166.7 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00568/1.114, allocations: 4.515 MB / 0.7177 GB, free: 164.4 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01086/1.125, allocations: 7.446 MB / 0.725 GB, free: 161.9 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000114/1.125, allocations: 17.69 kB / 0.725 GB, free: 161.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.0189/1.144, allocations: 8.276 MB / 0.7331 GB, free: 159.7 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001737/1.144, allocations: 59.7 kB / 0.7331 GB, free: 159.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001823/1.144, allocations: 59.31 kB / 0.7332 GB, free: 159.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003171/1.148, allocations: 1.01 MB / 0.7342 GB, free: 159.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005073/1.153, allocations: 1.257 MB / 0.7354 GB, free: 159.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01292/1.166, allocations: 8.823 MB / 0.744 GB, free: 154.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005471/1.171, allocations: 354.2 kB / 0.7444 GB, free: 154.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001288/1.172, allocations: 270.1 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.006416/1.179, allocations: 2.9 MB / 0.7475 GB, free: 152.6 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001305/1.18, allocations: 393.2 kB / 0.7478 GB, free: 152.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01343/1.194, allocations: 6.179 MB / 0.7539 GB, free: 149.1 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.95e-05/1.194, allocations: 40.5 kB / 0.7539 GB, free: 149.1 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.443e-05/1.194, allocations: 11.94 kB / 0.7539 GB, free: 149.1 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.516e-05/1.194, allocations: 26.64 kB / 0.7539 GB, free: 149.1 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02652/1.22, allocations: 14.91 MB / 0.7685 GB, free: 136.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.592e-05/1.22, allocations: 7.328 kB / 0.7685 GB, free: 136.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002616/1.223, allocations: 0.6816 MB / 0.7692 GB, free: 136.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002307/1.225, allocations: 0.8897 MB / 0.77 GB, free: 135.4 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003227/1.226, allocations: 83.98 kB / 0.7701 GB, free: 135.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01077/1.236, allocations: 7.75 MB / 0.7777 GB, free: 127.4 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.251e-06/1.236, allocations: 11.94 kB / 0.7777 GB, free: 127.4 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01454/1.251, allocations: 8.782 MB / 0.7863 GB, free: 118.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002981/1.254, allocations: 0.9062 MB / 0.7872 GB, free: 117.6 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001422/1.255, allocations: 75.98 kB / 0.7872 GB, free: 117.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003144/1.259, allocations: 199.8 kB / 0.7874 GB, free: 117.3 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007613/1.259, allocations: 271.1 kB / 0.7877 GB, free: 117 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003456/1.26, allocations: 114.4 kB / 0.7878 GB, free: 116.9 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004629/1.264, allocations: 2.367 MB / 0.7901 GB, free: 114.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 7.52e-07/1.264, allocations: 2.625 kB / 0.7901 GB, free: 114.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006166/1.271, allocations: 1.453 MB / 0.7915 GB, free: 113.1 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.01147/1.282, allocations: 9.489 MB / 0.8008 GB, free: 103.5 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02446/1.307, allocations: 11.92 MB / 0.8124 GB, free: 91.62 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.806e-06/1.307, allocations: 1 kB / 0.8124 GB, free: 91.62 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004491/1.311, allocations: 3.07 MB / 0.8154 GB, free: 88.52 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003991/1.315, allocations: 0.8237 MB / 0.8162 GB, free: 87.74 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07678/1.392, allocations: 56.28 MB / 0.8712 GB, free: 26.81 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006904/1.399, allocations: 5.012 MB / 0.8761 GB, free: 21.76 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004944/1.404, allocations: 1.586 MB / 0.8776 GB, free: 20.17 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005264/1.409, allocations: 2.756 MB / 0.8803 GB, free: 17.41 MB / 494.1 MB Notification: Performance of SimCode: time 9.61e-07/1.409, allocations: 0 / 0.8803 GB, free: 17.41 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3721/1.781, allocations: 113.5 MB / 0.9912 GB, free: 87.76 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.86/13.64, allocations: 18.75 kB / 0.9912 GB, free: 87.74 MB / 494.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3_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_VCurve3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe 2>&1)