Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.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_VCurve3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3",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.004958/0.004958, allocations: 100.9 kB / 15.73 MB, free: 6.055 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.369/1.369, allocations: 222.9 MB / 239.4 MB, free: 4.535 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.001485/0.001485, allocations: 188.5 kB / 289.7 MB, free: 2.262 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03611/0.03611, allocations: 8.798 MB / 348.7 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00223/0.00223, allocations: 83.84 kB / 463.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09703/0.09927, allocations: 51.56 MB / 0.503 GB, free: 9.934 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve3): time 0.02773/0.127, allocations: 25.44 MB / 0.5278 GB, free: 380 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2263/0.3534, allocations: 7.936 MB / 0.5356 GB, free: 4.383 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006179/0.3596, allocations: 172.5 kB / 0.5357 GB, free: 4.383 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01667/0.3764, allocations: 7.644 MB / 0.5432 GB, free: 3.531 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01009/0.3865, allocations: 3.054 MB / 0.5462 GB, free: 2.676 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006096/0.3926, allocations: 2.014 MB / 0.5481 GB, free: 2.48 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01447/0.4071, allocations: 9.216 MB / 0.5571 GB, free: 15.08 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02754/0.4347, allocations: 17.28 MB / 0.574 GB, free: 5.891 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009202/0.444, allocations: 4.739 MB / 0.5786 GB, free: 1.266 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009407/0.4534, allocations: 5.237 MB / 0.5838 GB, free: 12.18 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003948/0.4574, allocations: 1.355 MB / 0.5851 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005921/0.4634, allocations: 1.722 MB / 0.5868 GB, free: 9.109 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004469/0.4679, allocations: 2.667 MB / 0.5894 GB, free: 6.477 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01038/0.4783, allocations: 5.087 MB / 0.5943 GB, free: 1.41 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02613/0.5044, allocations: 18.19 MB / 0.6121 GB, free: 15.54 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.5045, allocations: 0 / 0.6121 GB, free: 15.54 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.5045, allocations: 3.938 kB / 0.6121 GB, free: 15.53 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004348/0.5049, allocations: 0 / 0.6121 GB, free: 15.53 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.03195/0.5369, allocations: 10.95 MB / 0.6228 GB, free: 4.562 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.537, allocations: 8.031 kB / 0.6228 GB, free: 4.555 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004047/0.541, allocations: 1.267 MB / 0.624 GB, free: 3.289 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03248/0.5735, allocations: 5.712 MB / 0.6296 GB, free: 13.64 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0128/0.5864, allocations: 5.831 MB / 0.6353 GB, free: 7.785 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006373/0.587, allocations: 0.5792 MB / 0.6359 GB, free: 7.219 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00323/0.5903, allocations: 0.7601 MB / 0.6366 GB, free: 6.469 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03311/0.6234, allocations: 12.77 MB / 0.6491 GB, free: 9.68 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002615/0.6237, allocations: 19.94 kB / 0.6491 GB, free: 9.66 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001953/0.6257, allocations: 320.1 kB / 0.6494 GB, free: 9.359 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005684/0.6262, allocations: 0.4967 MB / 0.6499 GB, free: 8.859 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02634/0.6526, allocations: 12.26 MB / 0.6619 GB, free: 12.58 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07364/0.7263, allocations: 43.37 MB / 0.7042 GB, free: 132 kB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02728/0.7536, allocations: 25.19 MB / 0.7288 GB, free: 4.035 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005713/0.7594, allocations: 2.968 MB / 0.7317 GB, free: 1.059 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004941/0.7599, allocations: 241.2 kB / 0.732 GB, free: 0.7969 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.3886/1.148, allocations: 2.581 MB / 0.7345 GB, free: 164.5 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=391): time 1.033e-05/1.149, allocations: 0 / 0.7345 GB, free: 164.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=397): time 0.04825/1.197, allocations: 18.42 MB / 0.7525 GB, free: 160.9 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001145/1.197, allocations: 355 kB / 0.7528 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005738/1.203, allocations: 3.529 MB / 0.7562 GB, free: 159.2 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0006098/1.203, allocations: 87.73 kB / 0.7563 GB, free: 159.1 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001974/1.205, allocations: 3.498 MB / 0.7597 GB, free: 157 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001373/1.207, allocations: 1.418 MB / 0.7611 GB, free: 155.9 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001622/1.208, allocations: 1.086 MB / 0.7622 GB, free: 155.3 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.369e-05/1.208, allocations: 310 kB / 0.7625 GB, free: 155 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003444/1.212, allocations: 2.556 MB / 0.765 GB, free: 154 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00395/1.216, allocations: 4.503 MB / 0.7694 GB, free: 150.6 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006956/1.223, allocations: 7.46 MB / 0.7767 GB, free: 145.6 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.652e-05/1.223, allocations: 19.22 kB / 0.7767 GB, free: 145.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.0115/1.234, allocations: 8.292 MB / 0.7848 GB, free: 142.2 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 6.325e-05/1.234, allocations: 54.89 kB / 0.7848 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.954e-05/1.235, allocations: 61.84 kB / 0.7849 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002366/1.237, allocations: 1.001 MB / 0.7859 GB, free: 141.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00381/1.241, allocations: 1.254 MB / 0.7871 GB, free: 141.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009935/1.251, allocations: 8.816 MB / 0.7957 GB, free: 136.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004492/1.255, allocations: 361.4 kB / 0.796 GB, free: 135.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007039/1.256, allocations: 271.4 kB / 0.7963 GB, free: 135.6 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.004268/1.26, allocations: 2.896 MB / 0.7991 GB, free: 133 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009461/1.261, allocations: 415.1 kB / 0.7995 GB, free: 132.6 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008237/1.269, allocations: 6.177 MB / 0.8056 GB, free: 126.4 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.382e-05/1.269, allocations: 42.19 kB / 0.8056 GB, free: 126.4 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.407e-05/1.269, allocations: 12 kB / 0.8056 GB, free: 126.4 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.095e-05/1.27, allocations: 19.92 kB / 0.8056 GB, free: 126.3 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01935/1.289, allocations: 14.66 MB / 0.8199 GB, free: 111.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.381e-05/1.289, allocations: 4 kB / 0.82 GB, free: 111.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002327/1.291, allocations: 0.6826 MB / 0.8206 GB, free: 110.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002142/1.293, allocations: 0.8772 MB / 0.8215 GB, free: 110.1 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002439/1.294, allocations: 87.97 kB / 0.8216 GB, free: 110 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008425/1.302, allocations: 7.75 MB / 0.8291 GB, free: 102.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-06/1.302, allocations: 16.02 kB / 0.8291 GB, free: 102.1 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0107/1.313, allocations: 8.795 MB / 0.8377 GB, free: 93.16 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001933/1.315, allocations: 0.9278 MB / 0.8386 GB, free: 92.21 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005241/1.315, allocations: 76 kB / 0.8387 GB, free: 92.14 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001823/1.317, allocations: 195.8 kB / 0.8389 GB, free: 91.95 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005293/1.318, allocations: 271.1 kB / 0.8392 GB, free: 91.68 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001874/1.318, allocations: 116 kB / 0.8393 GB, free: 91.57 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002788/1.321, allocations: 2.363 MB / 0.8416 GB, free: 89.21 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.7e-07/1.321, allocations: 0 / 0.8416 GB, free: 89.21 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004802/1.326, allocations: 1.453 MB / 0.843 GB, free: 87.76 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.01093/1.336, allocations: 9.517 MB / 0.8523 GB, free: 78.13 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00864/1.345, allocations: 6.491 MB / 0.8586 GB, free: 71.62 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.166e-06/1.345, allocations: 0 / 0.8586 GB, free: 71.62 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004055/1.349, allocations: 3.086 MB / 0.8616 GB, free: 68.5 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003832/1.353, allocations: 0.8175 MB / 0.8624 GB, free: 67.71 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05965/1.413, allocations: 48.25 MB / 0.9096 GB, free: 17.36 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004166/1.417, allocations: 4.997 MB / 0.9144 GB, free: 12.32 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003717/1.421, allocations: 1.594 MB / 0.916 GB, free: 10.73 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003107/1.424, allocations: 2.753 MB / 0.9187 GB, free: 7.973 MB / 0.5294 GB Notification: Performance of SimCode: time 1.683e-06/1.424, allocations: 0 / 0.9187 GB, free: 7.973 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3464/1.77, allocations: 111.7 MB / 1.028 GB, free: 108 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.06/19.83, allocations: 18.28 kB / 1.028 GB, free: 108 MB / 0.545 GB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe 2>&1)