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/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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.01231/0.01231, allocations: 166.9 kB / 15.13 MB, free: 6.027 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.154/0.154, allocations: 8.803 MB / 24.67 MB, free: 4.062 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.702/2.702, allocations: 223.2 MB / 250.8 MB, free: 6.562 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00137/0.001369, allocations: 98.66 kB / 304.1 MB, free: 4.031 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006734/0.0006737, allocations: 12 kB / 367.3 MB, free: 4.863 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5962/0.5969, allocations: 52.53 MB / 419.8 MB, free: 48 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.04897/0.646, allocations: 25.01 MB / 444.8 MB, free: 29.77 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.03821/0.6843, allocations: 7.778 MB / 452.6 MB, free: 23.96 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02568/0.7101, allocations: 192.7 kB / 452.8 MB, free: 23.93 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0115/0.7217, allocations: 1.361 MB / 454.1 MB, free: 22.66 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01954/0.7414, allocations: 2.299 MB / 456.4 MB, free: 20.36 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01116/0.7526, allocations: 1.223 MB / 457.6 MB, free: 19.14 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.03087/0.7835, allocations: 10.89 MB / 468.5 MB, free: 8.223 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06576/0.8493, allocations: 17.36 MB / 485.9 MB, free: 6.781 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01526/0.8647, allocations: 3.835 MB / 489.7 MB, free: 2.934 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01556/0.8803, allocations: 4.397 MB / 494.1 MB, free: 14.52 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005174/0.8856, allocations: 0.5977 MB / 494.7 MB, free: 13.92 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00921/0.8949, allocations: 0.9371 MB / 495.7 MB, free: 12.98 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005856/0.9008, allocations: 1.798 MB / 497.5 MB, free: 11.18 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.008645/0.9095, allocations: 1.966 MB / 499.4 MB, free: 9.203 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03717/0.9468, allocations: 17.39 MB / 0.5047 GB, free: 7.758 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.239e-05/0.9469, allocations: 3.938 kB / 0.5047 GB, free: 7.754 MB / 378.7 MB Notification: Performance of FrontEnd: time 7.544e-06/0.9469, allocations: 4 kB / 0.5047 GB, free: 7.75 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0007729/0.9477, allocations: 3.938 kB / 0.5047 GB, free: 7.746 MB / 378.7 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.05323/1.001, allocations: 9.894 MB / 0.5144 GB, free: 13.75 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.282e-05/1.001, allocations: 8.562 kB / 0.5144 GB, free: 13.75 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01478/1.016, allocations: 1.349 MB / 0.5157 GB, free: 12.39 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06296/1.079, allocations: 5.63 MB / 0.5212 GB, free: 6.738 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02305/1.102, allocations: 6.064 MB / 0.5271 GB, free: 0.5898 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001444/1.104, allocations: 0.7026 MB / 0.5278 GB, free: 15.88 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006042/1.11, allocations: 0.9334 MB / 0.5287 GB, free: 14.95 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06286/1.173, allocations: 15.01 MB / 0.5434 GB, free: 15.86 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007864/1.173, allocations: 19.75 kB / 0.5434 GB, free: 15.84 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005405/1.179, allocations: 392 kB / 0.5438 GB, free: 15.46 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001045/1.18, allocations: 0.5117 MB / 0.5443 GB, free: 14.95 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05236/1.232, allocations: 13.65 MB / 0.5576 GB, free: 1.27 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6202/1.853, allocations: 47.95 MB / 0.6044 GB, free: 81.58 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03479/1.888, allocations: 28.73 MB / 0.6325 GB, free: 52.8 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007964/1.896, allocations: 2.878 MB / 0.6353 GB, free: 50.01 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007784/1.896, allocations: 244.3 kB / 0.6355 GB, free: 49.75 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000124/1.897, allocations: 77.42 kB / 0.6356 GB, free: 49.66 MB / 426.7 MB Notification: Performance of pre-optimization done (n=372): time 2.17e-05/1.897, allocations: 0 / 0.6356 GB, free: 49.66 MB / 426.7 MB Notification: Performance of matching and sorting (n=380): time 0.06569/1.962, allocations: 15.6 MB / 0.6508 GB, free: 33.98 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/1.963, allocations: 94.39 kB / 0.6509 GB, free: 33.88 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01412/1.977, allocations: 3.73 MB / 0.6546 GB, free: 30.16 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001675/1.978, allocations: 85.7 kB / 0.6547 GB, free: 30.07 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005705/1.984, allocations: 4.085 MB / 0.6586 GB, free: 25.96 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002874/1.987, allocations: 1.303 MB / 0.6599 GB, free: 24.67 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001492/1.989, allocations: 124 kB / 0.66 GB, free: 24.55 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0009582/1.99, allocations: 0.5423 MB / 0.6606 GB, free: 24 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008397/1.998, allocations: 2.545 MB / 0.6631 GB, free: 21.45 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01121/2.009, allocations: 5.031 MB / 0.668 GB, free: 15.25 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01247/2.022, allocations: 3.738 MB / 0.6716 GB, free: 11.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002424/2.022, allocations: 24 kB / 0.6716 GB, free: 11.47 MB / 426.7 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.03148/2.054, allocations: 8.547 MB / 0.68 GB, free: 2.891 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002502/2.054, allocations: 40 kB / 0.68 GB, free: 2.852 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002749/2.054, allocations: 84 kB / 0.6801 GB, free: 2.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004213/2.059, allocations: 0.8667 MB / 0.681 GB, free: 1.898 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009742/2.068, allocations: 1.365 MB / 0.6823 GB, free: 0.5312 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02409/2.093, allocations: 8.354 MB / 0.6904 GB, free: 7.914 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01026/2.103, allocations: 335.4 kB / 0.6908 GB, free: 7.586 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002242/2.105, allocations: 300 kB / 0.691 GB, free: 7.293 MB / 442.7 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(8,65.6%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01548/2.121, allocations: 3.509 MB / 0.6945 GB, free: 3.77 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002605/2.124, allocations: 414.9 kB / 0.6949 GB, free: 3.359 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02552/2.149, allocations: 5.842 MB / 0.7006 GB, free: 13.48 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.179e-05/2.149, allocations: 40 kB / 0.7006 GB, free: 13.44 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.266e-05/2.149, allocations: 8 kB / 0.7006 GB, free: 13.43 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001402/2.149, allocations: 23.88 kB / 0.7006 GB, free: 13.41 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06162/2.211, allocations: 14.73 MB / 0.715 GB, free: 14.52 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.665e-05/2.211, allocations: 4.375 kB / 0.715 GB, free: 14.52 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0061/2.217, allocations: 0.6632 MB / 0.7157 GB, free: 13.86 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004227/2.222, allocations: 0.7207 MB / 0.7164 GB, free: 13.13 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001084/2.223, allocations: 79.98 kB / 0.7165 GB, free: 13.05 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01925/2.242, allocations: 7.39 MB / 0.7237 GB, free: 5.383 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.746e-06/2.242, allocations: 4 kB / 0.7237 GB, free: 5.379 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02932/2.271, allocations: 8.443 MB / 0.7319 GB, free: 12.84 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00487/2.276, allocations: 0.8862 MB / 0.7328 GB, free: 11.93 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002434/2.279, allocations: 75.98 kB / 0.7329 GB, free: 11.85 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004686/2.284, allocations: 175.8 kB / 0.733 GB, free: 11.68 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001406/2.285, allocations: 258.7 kB / 0.7333 GB, free: 11.43 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001194/2.286, allocations: 104 kB / 0.7334 GB, free: 11.32 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01216/2.298, allocations: 2.501 MB / 0.7358 GB, free: 8.84 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.716e-06/2.299, allocations: 0 / 0.7358 GB, free: 8.84 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01705/2.316, allocations: 1.547 MB / 0.7373 GB, free: 7.293 MB / 490.7 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.6189/2.935, allocations: 9.143 MB / 0.7463 GB, free: 163.2 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0302/2.965, allocations: 6.495 MB / 0.7526 GB, free: 161.8 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.212e-05/2.965, allocations: 1.281 kB / 0.7526 GB, free: 161.8 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.012/2.977, allocations: 2.941 MB / 0.7555 GB, free: 160.5 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0131/2.99, allocations: 0.9269 MB / 0.7564 GB, free: 160.2 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1837/3.174, allocations: 45.25 MB / 0.8006 GB, free: 126.8 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02037/3.195, allocations: 5.963 MB / 0.8064 GB, free: 122.1 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0133/3.208, allocations: 1.87 MB / 0.8082 GB, free: 120.8 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01167/3.22, allocations: 3.25 MB / 0.8114 GB, free: 117.8 MB / 490.7 MB Notification: Performance of SimCode: time 4.619e-06/3.22, allocations: 0 / 0.8114 GB, free: 117.8 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9102/4.13, allocations: 116.6 MB / 0.9252 GB, free: 135.8 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000362/4.131, allocations: 212.7 kB / 0.9254 GB, free: 135.6 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.26/16.39, allocations: 2.812 kB / 0.9254 GB, free: 135.6 MB / 490.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)