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.001437/0.001437, allocations: 108.6 kB / 15.73 MB, free: 76 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.481/1.481, allocations: 222.9 MB / 239.4 MB, free: 4.531 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.001772/0.001772, allocations: 184.5 kB / 289.7 MB, free: 2.254 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03774/0.03774, allocations: 8.801 MB / 348.6 MB, free: 4.609 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002303/0.002303, allocations: 80.11 kB / 463.4 MB, free: 13.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1058, allocations: 51.56 MB / 0.5029 GB, free: 9.961 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.2245/0.3304, allocations: 28.72 MB / 0.531 GB, free: 4.438 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01311/0.3436, allocations: 8.459 MB / 0.5392 GB, free: 4.293 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004852/0.3484, allocations: 213.2 kB / 0.5394 GB, free: 4.293 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01607/0.3646, allocations: 8.133 MB / 0.5474 GB, free: 2.98 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009505/0.3741, allocations: 2.799 MB / 0.5501 GB, free: 2.172 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005828/0.3799, allocations: 1.865 MB / 0.5519 GB, free: 1.977 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0149/0.3949, allocations: 9.998 MB / 0.5617 GB, free: 13.56 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0318/0.4267, allocations: 21.34 MB / 0.5825 GB, free: 14.96 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009967/0.4367, allocations: 5.362 MB / 0.5878 GB, free: 9.691 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01271/0.4495, allocations: 6.047 MB / 0.5937 GB, free: 3.801 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004849/0.4544, allocations: 1.539 MB / 0.5952 GB, free: 2.262 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007037/0.4615, allocations: 1.887 MB / 0.597 GB, free: 388 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005043/0.4665, allocations: 2.986 MB / 0.5999 GB, free: 13.43 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01364/0.4802, allocations: 5.864 MB / 0.6057 GB, free: 7.578 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02975/0.51, allocations: 20.67 MB / 0.6259 GB, free: 3.242 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.757e-06/0.5101, allocations: 0 / 0.6259 GB, free: 3.242 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.5101, allocations: 0 / 0.6259 GB, free: 3.242 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006424/0.5107, allocations: 0 / 0.6259 GB, free: 3.242 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.04032/0.5511, allocations: 12.06 MB / 0.6376 GB, free: 7.148 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/0.5511, allocations: 8.031 kB / 0.6376 GB, free: 7.141 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005595/0.5567, allocations: 1.347 MB / 0.639 GB, free: 5.793 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03302/0.5898, allocations: 5.677 MB / 0.6445 GB, free: 172 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01453/0.6044, allocations: 6.334 MB / 0.6507 GB, free: 9.793 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008787/0.6053, allocations: 0.7054 MB / 0.6514 GB, free: 9.098 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003564/0.6089, allocations: 0.9296 MB / 0.6523 GB, free: 8.176 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04138/0.6503, allocations: 15.08 MB / 0.667 GB, free: 9.047 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005159/0.6508, allocations: 15.89 kB / 0.667 GB, free: 9.031 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003083/0.6539, allocations: 390.5 kB / 0.6674 GB, free: 8.66 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006805/0.6546, allocations: 0.5194 MB / 0.6679 GB, free: 8.137 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03344/0.6881, allocations: 13.74 MB / 0.6813 GB, free: 10.37 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.473/1.161, allocations: 47.43 MB / 0.7276 GB, free: 128.2 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01996/1.181, allocations: 28.78 MB / 0.7557 GB, free: 102.9 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004923/1.186, allocations: 2.897 MB / 0.7586 GB, free: 102.8 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004148/1.187, allocations: 233.6 kB / 0.7588 GB, free: 102.6 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.018e-05/1.187, allocations: 76.64 kB / 0.7589 GB, free: 102.6 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=372): time 5.851e-06/1.187, allocations: 1.125 kB / 0.7589 GB, free: 102.6 MB / 0.5138 GB Notification: Performance of matching and sorting (n=380): time 0.03065/1.217, allocations: 14.89 MB / 0.7734 GB, free: 100.9 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.967e-05/1.217, allocations: 90.02 kB / 0.7735 GB, free: 100.8 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005072/1.222, allocations: 3.763 MB / 0.7772 GB, free: 100.5 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0005612/1.223, allocations: 87.36 kB / 0.7773 GB, free: 100.5 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.00218/1.225, allocations: 4.227 MB / 0.7814 GB, free: 98.6 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001357/1.227, allocations: 1.369 MB / 0.7827 GB, free: 97.73 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001715/1.228, allocations: 1.172 MB / 0.7839 GB, free: 97.62 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.232e-05/1.228, allocations: 305.1 kB / 0.7842 GB, free: 97.32 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003304/1.232, allocations: 2.58 MB / 0.7867 GB, free: 96.59 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004273/1.236, allocations: 5.053 MB / 0.7916 GB, free: 92.39 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008454/1.244, allocations: 8.257 MB / 0.7997 GB, free: 86.48 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.691e-05/1.245, allocations: 24.84 kB / 0.7997 GB, free: 86.48 MB / 0.5138 GB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01383/1.258, allocations: 8.641 MB / 0.8081 GB, free: 82.99 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 6.774e-05/1.259, allocations: 43.44 kB / 0.8082 GB, free: 82.99 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000131/1.259, allocations: 85.44 kB / 0.8083 GB, free: 82.99 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002217/1.261, allocations: 0.8733 MB / 0.8091 GB, free: 82.65 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004468/1.265, allocations: 1.361 MB / 0.8104 GB, free: 82.31 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01014/1.276, allocations: 9.024 MB / 0.8193 GB, free: 75.59 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004483/1.28, allocations: 325 kB / 0.8196 GB, free: 75.43 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007424/1.281, allocations: 306.9 kB / 0.8199 GB, free: 75.38 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.004847/1.286, allocations: 3.509 MB / 0.8233 GB, free: 71.98 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000925/1.287, allocations: 441.1 kB / 0.8237 GB, free: 71.55 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008327/1.295, allocations: 5.863 MB / 0.8294 GB, free: 65.65 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-05/1.295, allocations: 40 kB / 0.8295 GB, free: 65.61 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.248e-05/1.295, allocations: 8 kB / 0.8295 GB, free: 65.61 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.465e-05/1.295, allocations: 19.92 kB / 0.8295 GB, free: 65.59 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02145/1.317, allocations: 14.48 MB / 0.8436 GB, free: 51.09 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.847e-05/1.317, allocations: 4.375 kB / 0.8436 GB, free: 51.09 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002578/1.319, allocations: 0.667 MB / 0.8443 GB, free: 50.42 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001949/1.321, allocations: 0.725 MB / 0.845 GB, free: 49.69 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003576/1.322, allocations: 79.98 kB / 0.8451 GB, free: 49.61 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008304/1.33, allocations: 8.06 MB / 0.8529 GB, free: 41.27 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/1.33, allocations: 7.938 kB / 0.853 GB, free: 41.27 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01118/1.341, allocations: 8.528 MB / 0.8613 GB, free: 32.64 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002211/1.343, allocations: 0.8925 MB / 0.8622 GB, free: 31.72 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000812/1.344, allocations: 75.98 kB / 0.8622 GB, free: 31.65 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002007/1.346, allocations: 177.1 kB / 0.8624 GB, free: 31.48 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005362/1.347, allocations: 254.8 kB / 0.8626 GB, free: 31.23 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002127/1.347, allocations: 112 kB / 0.8627 GB, free: 31.12 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.003607/1.351, allocations: 2.52 MB / 0.8652 GB, free: 28.61 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.5e-07/1.351, allocations: 0 / 0.8652 GB, free: 28.61 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.006299/1.357, allocations: 1.555 MB / 0.8667 GB, free: 27.06 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.01123/1.368, allocations: 9.23 MB / 0.8757 GB, free: 17.72 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.00869/1.377, allocations: 6.572 MB / 0.8822 GB, free: 11.13 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/1.377, allocations: 0 / 0.8822 GB, free: 11.13 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.004317/1.381, allocations: 2.976 MB / 0.8851 GB, free: 8.129 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004668/1.386, allocations: 0.962 MB / 0.886 GB, free: 7.199 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.31/1.696, allocations: 52.75 MB / 0.9375 GB, free: 187.2 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009524/1.706, allocations: 5.966 MB / 0.9433 GB, free: 186.3 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.005774/1.711, allocations: 1.866 MB / 0.9452 GB, free: 186.3 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004873/1.716, allocations: 3.213 MB / 0.9483 GB, free: 186.3 MB / 0.5607 GB Notification: Performance of SimCode: time 2.044e-06/1.716, allocations: 0 / 0.9483 GB, free: 186.3 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1663/1.883, allocations: 120.5 MB / 1.066 GB, free: 90.39 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.43/21.31, allocations: 0 / 1.066 GB, free: 90.39 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)