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.004323/0.004323, allocations: 99.64 kB / 15.73 MB, free: 6.469 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.38/1.38, allocations: 222.9 MB / 239.4 MB, free: 4.566 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.001361/0.001361, allocations: 184.5 kB / 289.7 MB, free: 2.281 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03573/0.03573, allocations: 8.794 MB / 348.7 MB, free: 4.641 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001621/0.001621, allocations: 79.89 kB / 463.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1066, allocations: 51.57 MB / 0.5029 GB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.2481/0.3548, allocations: 28.72 MB / 0.531 GB, free: 4.418 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01713/0.372, allocations: 8.452 MB / 0.5392 GB, free: 4.293 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006071/0.3781, allocations: 213.2 kB / 0.5394 GB, free: 4.293 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01676/0.3949, allocations: 8.133 MB / 0.5474 GB, free: 2.992 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008738/0.4037, allocations: 2.8 MB / 0.5501 GB, free: 2.18 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005007/0.4087, allocations: 1.869 MB / 0.5519 GB, free: 1.984 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01288/0.4216, allocations: 9.975 MB / 0.5617 GB, free: 13.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02874/0.4504, allocations: 21.35 MB / 0.5825 GB, free: 14.96 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009289/0.4597, allocations: 5.367 MB / 0.5878 GB, free: 9.691 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01025/0.47, allocations: 6.042 MB / 0.5937 GB, free: 3.805 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005028/0.4751, allocations: 1.541 MB / 0.5952 GB, free: 2.266 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007032/0.4822, allocations: 1.891 MB / 0.597 GB, free: 388 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005122/0.4873, allocations: 2.988 MB / 0.5999 GB, free: 13.43 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01193/0.4993, allocations: 5.855 MB / 0.6057 GB, free: 7.586 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02502/0.5243, allocations: 20.61 MB / 0.6258 GB, free: 3.312 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.05e-05/0.5244, allocations: 4 kB / 0.6258 GB, free: 3.309 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.727e-06/0.5244, allocations: 3.984 kB / 0.6258 GB, free: 3.305 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006496/0.525, allocations: 0 / 0.6258 GB, free: 3.305 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.03963/0.5647, allocations: 11.84 MB / 0.6374 GB, free: 7.445 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.42e-05/0.5648, allocations: 15.97 kB / 0.6374 GB, free: 7.43 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005473/0.5703, allocations: 1.345 MB / 0.6387 GB, free: 6.082 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0335/0.6038, allocations: 5.638 MB / 0.6442 GB, free: 0.4922 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01812/0.6219, allocations: 6.312 MB / 0.6504 GB, free: 10.14 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009068/0.6229, allocations: 0.6994 MB / 0.651 GB, free: 9.445 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004364/0.6273, allocations: 0.9292 MB / 0.652 GB, free: 8.527 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04578/0.6731, allocations: 15.08 MB / 0.6667 GB, free: 9.402 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005386/0.6737, allocations: 19.8 kB / 0.6667 GB, free: 9.383 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003478/0.6772, allocations: 391.6 kB / 0.6671 GB, free: 9.008 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007663/0.6779, allocations: 0.5116 MB / 0.6676 GB, free: 8.492 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0333/0.7113, allocations: 13.75 MB / 0.681 GB, free: 10.72 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5018/1.213, allocations: 47.3 MB / 0.7272 GB, free: 131.6 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01969/1.233, allocations: 28.78 MB / 0.7553 GB, free: 106.3 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005014/1.238, allocations: 2.897 MB / 0.7581 GB, free: 106.2 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004168/1.238, allocations: 239.1 kB / 0.7584 GB, free: 106 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.147e-05/1.238, allocations: 77.08 kB / 0.7584 GB, free: 106 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=372): time 5.741e-06/1.238, allocations: 0 / 0.7584 GB, free: 106 MB / 0.5138 GB Notification: Performance of matching and sorting (n=380): time 0.02976/1.268, allocations: 14.76 MB / 0.7728 GB, free: 104 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.479e-05/1.268, allocations: 90.02 kB / 0.7729 GB, free: 103.9 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005564/1.274, allocations: 3.767 MB / 0.7766 GB, free: 103.6 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0003234/1.274, allocations: 86.95 kB / 0.7767 GB, free: 103.6 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.001777/1.276, allocations: 4.075 MB / 0.7807 GB, free: 101.3 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001102/1.277, allocations: 1.311 MB / 0.7819 GB, free: 100.5 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001627/1.279, allocations: 1.164 MB / 0.7831 GB, free: 100.4 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.075e-05/1.279, allocations: 305.1 kB / 0.7834 GB, free: 100.1 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00323/1.282, allocations: 2.57 MB / 0.7859 GB, free: 99.38 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004307/1.286, allocations: 5.063 MB / 0.7908 GB, free: 95.17 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008702/1.295, allocations: 8.261 MB / 0.7989 GB, free: 89.25 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.036e-05/1.295, allocations: 22.5 kB / 0.7989 GB, free: 89.25 MB / 0.5138 GB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01412/1.309, allocations: 8.619 MB / 0.8073 GB, free: 85.78 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 7.758e-05/1.309, allocations: 43.14 kB / 0.8074 GB, free: 85.77 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000168/1.31, allocations: 82.78 kB / 0.8075 GB, free: 85.77 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002492/1.312, allocations: 0.8669 MB / 0.8083 GB, free: 85.4 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004612/1.317, allocations: 1.36 MB / 0.8096 GB, free: 85.06 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01051/1.327, allocations: 9.03 MB / 0.8184 GB, free: 76.33 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004402/1.332, allocations: 327.4 kB / 0.8188 GB, free: 76.01 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000925/1.333, allocations: 304 kB / 0.8191 GB, free: 75.71 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.006627/1.339, allocations: 3.513 MB / 0.8225 GB, free: 72.19 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001404/1.341, allocations: 410.9 kB / 0.8229 GB, free: 71.78 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01081/1.352, allocations: 5.856 MB / 0.8286 GB, free: 65.89 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.62e-05/1.352, allocations: 40 kB / 0.8286 GB, free: 65.85 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.355e-05/1.352, allocations: 8 kB / 0.8286 GB, free: 65.84 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.649e-05/1.352, allocations: 19.92 kB / 0.8287 GB, free: 65.82 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02616/1.378, allocations: 14.47 MB / 0.8428 GB, free: 51.34 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.648e-05/1.378, allocations: 4.844 kB / 0.8428 GB, free: 51.33 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002579/1.38, allocations: 0.6635 MB / 0.8434 GB, free: 50.67 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002051/1.383, allocations: 0.7292 MB / 0.8442 GB, free: 49.93 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003024/1.383, allocations: 83.97 kB / 0.8442 GB, free: 49.85 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008779/1.392, allocations: 8.063 MB / 0.8521 GB, free: 41.51 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/1.392, allocations: 4.031 kB / 0.8521 GB, free: 41.51 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01144/1.403, allocations: 8.501 MB / 0.8604 GB, free: 32.9 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002481/1.406, allocations: 0.8784 MB / 0.8613 GB, free: 32 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009835/1.407, allocations: 76 kB / 0.8613 GB, free: 31.93 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002345/1.409, allocations: 178.7 kB / 0.8615 GB, free: 31.75 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004669/1.409, allocations: 250.6 kB / 0.8618 GB, free: 31.51 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002377/1.41, allocations: 116 kB / 0.8619 GB, free: 31.39 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.004305/1.414, allocations: 2.52 MB / 0.8643 GB, free: 28.89 MB / 0.5138 GB Notification: Performance of sort global known variables: time 3.5e-07/1.414, allocations: 0 / 0.8643 GB, free: 28.89 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.005959/1.42, allocations: 1.553 MB / 0.8658 GB, free: 27.34 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.01206/1.432, allocations: 9.201 MB / 0.8748 GB, free: 18.03 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.009808/1.442, allocations: 6.562 MB / 0.8812 GB, free: 11.46 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 8.235e-06/1.442, allocations: 2 kB / 0.8812 GB, free: 11.46 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.004358/1.446, allocations: 2.968 MB / 0.8841 GB, free: 8.465 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00525/1.452, allocations: 0.9642 MB / 0.8851 GB, free: 7.531 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0978/1.549, allocations: 52.49 MB / 0.9363 GB, free: 56 kB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.24/1.789, allocations: 5.965 MB / 0.9422 GB, free: 188.1 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.005242/1.795, allocations: 1.864 MB / 0.944 GB, free: 188 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003942/1.799, allocations: 3.217 MB / 0.9471 GB, free: 188 MB / 0.5607 GB Notification: Performance of SimCode: time 7.61e-07/1.799, allocations: 0 / 0.9471 GB, free: 188 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1604/1.959, allocations: 116.7 MB / 1.061 GB, free: 95.98 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.96/20.92, allocations: 5.625 kB / 1.061 GB, free: 95.98 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 & /home/hudson/saved_omc/OMSimulator/install/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)