Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.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_VCurve2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2",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.008324/0.008324, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.407/1.407, allocations: 222.9 MB / 239.4 MB, free: 4.562 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.001455/0.001455, allocations: 188.4 kB / 289.7 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03587/0.03587, allocations: 8.81 MB / 348.7 MB, free: 4.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003891/0.003891, allocations: 79.88 kB / 463.5 MB, free: 13.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.115, allocations: 51.57 MB / 0.503 GB, free: 9.973 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve2): time 0.02776/0.1428, allocations: 25.45 MB / 0.5278 GB, free: 416 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2184/0.3613, allocations: 7.927 MB / 0.5356 GB, free: 4.324 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005768/0.3671, allocations: 174.2 kB / 0.5357 GB, free: 4.324 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01643/0.3836, allocations: 7.641 MB / 0.5432 GB, free: 3.469 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009337/0.393, allocations: 3.059 MB / 0.5462 GB, free: 2.609 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005447/0.3984, allocations: 2.008 MB / 0.5481 GB, free: 2.414 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01274/0.4112, allocations: 9.237 MB / 0.5572 GB, free: 15.07 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02535/0.4366, allocations: 17.27 MB / 0.574 GB, free: 5.914 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009764/0.4464, allocations: 4.743 MB / 0.5787 GB, free: 1.285 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00922/0.4556, allocations: 5.241 MB / 0.5838 GB, free: 12.19 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003866/0.4595, allocations: 1.355 MB / 0.5851 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005898/0.4655, allocations: 1.719 MB / 0.5868 GB, free: 9.129 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004525/0.47, allocations: 2.666 MB / 0.5894 GB, free: 6.496 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01065/0.4807, allocations: 5.084 MB / 0.5943 GB, free: 1.434 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02642/0.5072, allocations: 18.2 MB / 0.6121 GB, free: 15.57 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.702e-06/0.5072, allocations: 0 / 0.6121 GB, free: 15.57 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.093e-06/0.5072, allocations: 3.938 kB / 0.6121 GB, free: 15.56 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005238/0.5077, allocations: 0 / 0.6121 GB, free: 15.56 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: 2183 * Number of variables: 2183 Notification: Performance of Generate backend data structure: time 0.03354/0.5413, allocations: 10.95 MB / 0.6228 GB, free: 4.594 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/0.5414, allocations: 8.031 kB / 0.6228 GB, free: 4.586 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004183/0.5456, allocations: 1.267 MB / 0.6241 GB, free: 3.32 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03224/0.5778, allocations: 5.721 MB / 0.6296 GB, free: 13.66 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01305/0.5909, allocations: 5.813 MB / 0.6353 GB, free: 7.828 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000679/0.5917, allocations: 0.5846 MB / 0.6359 GB, free: 7.254 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003687/0.5954, allocations: 0.7657 MB / 0.6366 GB, free: 6.5 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03172/0.6271, allocations: 12.77 MB / 0.6491 GB, free: 9.707 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002655/0.6274, allocations: 15.95 kB / 0.6491 GB, free: 9.691 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002238/0.6296, allocations: 319 kB / 0.6494 GB, free: 9.391 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005823/0.6302, allocations: 0.4967 MB / 0.6499 GB, free: 8.891 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.027/0.6573, allocations: 12.26 MB / 0.6619 GB, free: 12.61 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07531/0.7326, allocations: 43.37 MB / 0.7042 GB, free: 172 kB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02603/0.7587, allocations: 25.19 MB / 0.7288 GB, free: 4.07 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005169/0.7639, allocations: 2.968 MB / 0.7317 GB, free: 1.094 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004495/0.7644, allocations: 245.6 kB / 0.732 GB, free: 0.8281 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.2052/0.9696, allocations: 2.577 MB / 0.7345 GB, free: 166.3 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=391): time 8.375e-06/0.9697, allocations: 0 / 0.7345 GB, free: 166.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=397): time 0.03946/1.009, allocations: 18.42 MB / 0.7525 GB, free: 162.4 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001165/1.009, allocations: 360.3 kB / 0.7528 GB, free: 162 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006166/1.015, allocations: 3.523 MB / 0.7563 GB, free: 160.9 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000665/1.016, allocations: 88.05 kB / 0.7563 GB, free: 160.8 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002311/1.018, allocations: 3.504 MB / 0.7598 GB, free: 158.1 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001534/1.02, allocations: 1.415 MB / 0.7611 GB, free: 157 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001831/1.022, allocations: 1.089 MB / 0.7622 GB, free: 156.5 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.855e-05/1.022, allocations: 305.1 kB / 0.7625 GB, free: 156.2 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003954/1.026, allocations: 2.556 MB / 0.765 GB, free: 155.2 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004798/1.031, allocations: 4.504 MB / 0.7694 GB, free: 151.8 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008201/1.039, allocations: 7.453 MB / 0.7767 GB, free: 146.7 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.777e-05/1.039, allocations: 22.44 kB / 0.7767 GB, free: 146.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01358/1.053, allocations: 8.291 MB / 0.7848 GB, free: 143.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.954e-05/1.053, allocations: 56.48 kB / 0.7848 GB, free: 143.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-05/1.053, allocations: 59.56 kB / 0.7849 GB, free: 143.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002468/1.055, allocations: 1.005 MB / 0.7859 GB, free: 143.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00422/1.06, allocations: 1.254 MB / 0.7871 GB, free: 143 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01054/1.07, allocations: 8.818 MB / 0.7957 GB, free: 137.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004812/1.075, allocations: 358 kB / 0.7961 GB, free: 137.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009523/1.076, allocations: 271.7 kB / 0.7963 GB, free: 136.9 MB / 0.5294 GB 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.005057/1.081, allocations: 2.903 MB / 0.7992 GB, free: 134.4 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001187/1.082, allocations: 405.4 kB / 0.7995 GB, free: 134 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008884/1.091, allocations: 6.178 MB / 0.8056 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.594e-05/1.091, allocations: 44 kB / 0.8056 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-05/1.091, allocations: 12 kB / 0.8056 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.315e-05/1.091, allocations: 20.42 kB / 0.8056 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02205/1.113, allocations: 14.65 MB / 0.8199 GB, free: 113 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.675e-05/1.113, allocations: 8.125 kB / 0.82 GB, free: 113 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002932/1.116, allocations: 0.6811 MB / 0.8206 GB, free: 112.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002171/1.119, allocations: 0.8808 MB / 0.8215 GB, free: 111.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004373/1.119, allocations: 87.97 kB / 0.8216 GB, free: 111.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008472/1.128, allocations: 7.753 MB / 0.8291 GB, free: 103.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/1.128, allocations: 4 kB / 0.8291 GB, free: 103.4 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01082/1.138, allocations: 8.801 MB / 0.8377 GB, free: 94.52 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002093/1.14, allocations: 0.9286 MB / 0.8386 GB, free: 93.57 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006975/1.141, allocations: 78.34 kB / 0.8387 GB, free: 93.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00198/1.143, allocations: 191.8 kB / 0.8389 GB, free: 93.31 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004985/1.144, allocations: 283.1 kB / 0.8392 GB, free: 93.03 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000208/1.144, allocations: 108 kB / 0.8393 GB, free: 92.93 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00277/1.147, allocations: 2.367 MB / 0.8416 GB, free: 90.57 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.31e-07/1.147, allocations: 0 / 0.8416 GB, free: 90.57 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004871/1.152, allocations: 1.453 MB / 0.843 GB, free: 89.11 MB / 0.5294 GB 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.01129/1.163, allocations: 9.51 MB / 0.8523 GB, free: 79.48 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009372/1.172, allocations: 6.49 MB / 0.8586 GB, free: 72.97 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.221e-05/1.172, allocations: 0 / 0.8586 GB, free: 72.97 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004668/1.177, allocations: 3.089 MB / 0.8616 GB, free: 69.85 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004192/1.181, allocations: 0.817 MB / 0.8624 GB, free: 69.07 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06605/1.247, allocations: 48.23 MB / 0.9095 GB, free: 18.73 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006705/1.254, allocations: 5.008 MB / 0.9144 GB, free: 13.68 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004232/1.258, allocations: 1.594 MB / 0.916 GB, free: 12.08 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003946/1.262, allocations: 2.749 MB / 0.9187 GB, free: 9.332 MB / 0.5294 GB Notification: Performance of SimCode: time 3.106e-06/1.262, allocations: 0 / 0.9187 GB, free: 9.332 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3649/1.627, allocations: 111.7 MB / 1.028 GB, free: 116.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.88/19.51, allocations: 16.58 kB / 1.028 GB, free: 116.9 MB / 0.545 GB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe 2>&1)