Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.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.SMPM_CurrentSource,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource",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.007511/0.007511, allocations: 100.6 kB / 15.73 MB, free: 6.012 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.341/1.341, allocations: 222.9 MB / 239.4 MB, free: 4.523 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.001375/0.001375, allocations: 188.5 kB / 289.7 MB, free: 2.242 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03525/0.03525, allocations: 8.795 MB / 348.7 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001741/0.001741, allocations: 83.86 kB / 463.4 MB, free: 13.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09875/0.1005, allocations: 51.56 MB / 0.5029 GB, free: 9.977 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.2362/0.3368, allocations: 28.72 MB / 0.531 GB, free: 4.352 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01595/0.3528, allocations: 8.454 MB / 0.5392 GB, free: 4.211 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006512/0.3594, allocations: 215.3 kB / 0.5394 GB, free: 4.211 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01943/0.3789, allocations: 8.197 MB / 0.5475 GB, free: 2.895 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00922/0.3881, allocations: 2.856 MB / 0.5502 GB, free: 2.078 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005019/0.3931, allocations: 1.866 MB / 0.5521 GB, free: 1.887 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01206/0.4052, allocations: 9.988 MB / 0.5618 GB, free: 13.45 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03258/0.4378, allocations: 21.35 MB / 0.5827 GB, free: 14.86 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008502/0.4464, allocations: 5.384 MB / 0.5879 GB, free: 9.57 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008681/0.4551, allocations: 6.039 MB / 0.5938 GB, free: 3.688 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00323/0.4584, allocations: 1.539 MB / 0.5953 GB, free: 2.148 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004916/0.4633, allocations: 1.895 MB / 0.5972 GB, free: 264 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003634/0.4669, allocations: 2.988 MB / 0.6001 GB, free: 13.3 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009511/0.4765, allocations: 5.856 MB / 0.6058 GB, free: 7.465 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02285/0.4994, allocations: 20.68 MB / 0.626 GB, free: 3.125 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.995e-06/0.4994, allocations: 0 / 0.626 GB, free: 3.125 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4994, allocations: 0 / 0.626 GB, free: 3.125 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005457/0.5, allocations: 0 / 0.626 GB, free: 3.125 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2602 * Number of variables: 2602 Notification: Performance of Generate backend data structure: time 0.05089/0.5509, allocations: 12.06 MB / 0.6378 GB, free: 7.031 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.678e-05/0.551, allocations: 8.031 kB / 0.6378 GB, free: 7.023 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005637/0.5566, allocations: 1.348 MB / 0.6391 GB, free: 5.676 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05173/0.6084, allocations: 5.678 MB / 0.6447 GB, free: 52 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01901/0.6274, allocations: 6.337 MB / 0.6508 GB, free: 9.672 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009297/0.6284, allocations: 0.7005 MB / 0.6515 GB, free: 8.98 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004514/0.6329, allocations: 0.932 MB / 0.6524 GB, free: 8.059 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04363/0.6766, allocations: 15.07 MB / 0.6671 GB, free: 8.938 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004832/0.6772, allocations: 23.88 kB / 0.6672 GB, free: 8.914 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003998/0.6812, allocations: 387.9 kB / 0.6675 GB, free: 8.543 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006575/0.6818, allocations: 0.5155 MB / 0.668 GB, free: 8.023 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02827/0.7101, allocations: 13.75 MB / 0.6815 GB, free: 10.25 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5541/1.264, allocations: 47.43 MB / 0.7278 GB, free: 128.1 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01865/1.283, allocations: 28.77 MB / 0.7559 GB, free: 102.7 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005111/1.288, allocations: 2.895 MB / 0.7587 GB, free: 102.7 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004038/1.289, allocations: 243.4 kB / 0.759 GB, free: 102.5 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.044e-05/1.289, allocations: 70.27 kB / 0.759 GB, free: 102.5 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=372): time 6.141e-06/1.289, allocations: 2.062 kB / 0.759 GB, free: 102.5 MB / 0.5138 GB Notification: Performance of matching and sorting (n=380): time 0.03193/1.321, allocations: 14.88 MB / 0.7736 GB, free: 100.8 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.801e-05/1.321, allocations: 96.17 kB / 0.7736 GB, free: 100.7 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005787/1.326, allocations: 3.765 MB / 0.7773 GB, free: 100.4 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0006257/1.327, allocations: 87.3 kB / 0.7774 GB, free: 100.4 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002521/1.33, allocations: 4.232 MB / 0.7815 GB, free: 98.47 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001658/1.331, allocations: 1.369 MB / 0.7829 GB, free: 97.59 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002723/1.334, allocations: 1.172 MB / 0.784 GB, free: 97.49 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.839e-05/1.334, allocations: 301.1 kB / 0.7843 GB, free: 97.2 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004006/1.338, allocations: 2.576 MB / 0.7868 GB, free: 96.42 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005754/1.344, allocations: 5.06 MB / 0.7918 GB, free: 92.21 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009876/1.354, allocations: 8.255 MB / 0.7998 GB, free: 86.31 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.587e-05/1.354, allocations: 22.22 kB / 0.7998 GB, free: 86.31 MB / 0.5138 GB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01542/1.369, allocations: 8.641 MB / 0.8083 GB, free: 82.81 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 6.878e-05/1.37, allocations: 43.31 kB / 0.8083 GB, free: 82.81 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001168/1.37, allocations: 79.59 kB / 0.8084 GB, free: 82.81 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002329/1.372, allocations: 0.8788 MB / 0.8093 GB, free: 82.43 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004611/1.377, allocations: 1.357 MB / 0.8106 GB, free: 82.1 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0103/1.387, allocations: 9.033 MB / 0.8194 GB, free: 75.38 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004898/1.392, allocations: 330.5 kB / 0.8197 GB, free: 75.21 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001205/1.393, allocations: 304.2 kB / 0.82 GB, free: 75.15 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 376 * 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 (720): * Single equations (assignments): 718 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (8,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006132/1.399, allocations: 3.505 MB / 0.8234 GB, free: 71.81 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001429/1.401, allocations: 449 kB / 0.8239 GB, free: 71.37 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009847/1.411, allocations: 5.86 MB / 0.8296 GB, free: 65.48 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.271e-05/1.411, allocations: 36 kB / 0.8296 GB, free: 65.45 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.782e-05/1.411, allocations: 12.81 kB / 0.8296 GB, free: 65.43 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.969e-05/1.411, allocations: 19.92 kB / 0.8297 GB, free: 65.41 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02637/1.437, allocations: 14.47 MB / 0.8438 GB, free: 50.92 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.718e-05/1.437, allocations: 4 kB / 0.8438 GB, free: 50.92 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002899/1.44, allocations: 0.6707 MB / 0.8444 GB, free: 50.25 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002083/1.442, allocations: 0.7214 MB / 0.8451 GB, free: 49.52 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005871/1.443, allocations: 83.92 kB / 0.8452 GB, free: 49.44 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008524/1.451, allocations: 8.072 MB / 0.8531 GB, free: 41.09 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/1.451, allocations: 4 kB / 0.8531 GB, free: 41.09 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01274/1.464, allocations: 8.521 MB / 0.8614 GB, free: 32.46 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002545/1.467, allocations: 0.8925 MB / 0.8623 GB, free: 31.55 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009911/1.468, allocations: 75.92 kB / 0.8624 GB, free: 31.48 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002177/1.47, allocations: 179.9 kB / 0.8625 GB, free: 31.3 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005261/1.471, allocations: 250.7 kB / 0.8628 GB, free: 31.05 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002307/1.471, allocations: 108 kB / 0.8629 GB, free: 30.95 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.003455/1.474, allocations: 2.528 MB / 0.8654 GB, free: 28.44 MB / 0.5138 GB Notification: Performance of sort global known variables: time 2.51e-07/1.474, allocations: 0 / 0.8654 GB, free: 28.44 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.00638/1.481, allocations: 1.555 MB / 0.8669 GB, free: 26.88 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 2 (smpm.inertiaRotor.w,quadraticTorque.phi) * 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 (362): * Single equations (assignments): 360 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01205/1.493, allocations: 9.232 MB / 0.8759 GB, free: 17.55 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.009043/1.502, allocations: 6.572 MB / 0.8823 GB, free: 10.96 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 8.446e-06/1.502, allocations: 0 / 0.8823 GB, free: 10.96 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.004187/1.506, allocations: 2.965 MB / 0.8852 GB, free: 7.965 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004941/1.511, allocations: 0.9726 MB / 0.8862 GB, free: 7.031 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3235/1.834, allocations: 52.75 MB / 0.9377 GB, free: 187.4 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01146/1.846, allocations: 5.964 MB / 0.9435 GB, free: 186.5 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.006125/1.852, allocations: 1.873 MB / 0.9453 GB, free: 186.5 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006093/1.858, allocations: 3.213 MB / 0.9485 GB, free: 186.4 MB / 0.5607 GB Notification: Performance of SimCode: time 1.453e-06/1.858, allocations: 0 / 0.9485 GB, free: 186.4 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1793/2.038, allocations: 120.5 MB / 1.066 GB, free: 90.6 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.26/22.3, allocations: 3.094 kB / 1.066 GB, free: 90.6 MB / 0.5607 GB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)