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.001779/0.001779, allocations: 108 kB / 15.6 MB, free: 132 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.405/1.405, allocations: 222.9 MB / 239.2 MB, free: 4.582 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.001443/0.001443, allocations: 192.5 kB / 289.6 MB, free: 2.309 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03513/0.03513, allocations: 8.797 MB / 348.5 MB, free: 4.676 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001567/0.001567, allocations: 78.33 kB / 411.2 MB, free: 41.96 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09322/0.0948, allocations: 51.56 MB / 462.8 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve2): time 0.02897/0.1238, allocations: 25.44 MB / 488.2 MB, free: 4.645 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01572/0.1396, allocations: 7.944 MB / 496.1 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005199/0.1449, allocations: 175.5 kB / 496.3 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01836/0.1632, allocations: 7.645 MB / 0.4921 GB, free: 4.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009874/0.1731, allocations: 3.045 MB / 0.4951 GB, free: 1.785 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00583/0.179, allocations: 2.022 MB / 0.4971 GB, free: 15.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01423/0.1932, allocations: 9.159 MB / 0.506 GB, free: 6.582 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02812/0.2214, allocations: 17.34 MB / 0.523 GB, free: 5.094 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007567/0.229, allocations: 4.742 MB / 0.5276 GB, free: 348 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2105/0.4396, allocations: 5.261 MB / 0.5327 GB, free: 23.14 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003667/0.4433, allocations: 1.352 MB / 0.5341 GB, free: 23.14 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005984/0.4493, allocations: 1.726 MB / 0.5357 GB, free: 23.14 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004411/0.4537, allocations: 2.677 MB / 0.5384 GB, free: 22.85 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01128/0.465, allocations: 5.084 MB / 0.5433 GB, free: 21.69 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02467/0.4898, allocations: 18.05 MB / 0.5609 GB, free: 16.43 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.277e-06/0.4898, allocations: 2.562 kB / 0.561 GB, free: 16.43 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.4898, allocations: 0 / 0.561 GB, free: 16.43 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005249/0.4904, allocations: 3.938 kB / 0.561 GB, free: 16.43 MB / 366.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.03545/0.5258, allocations: 10.8 MB / 0.5715 GB, free: 9.645 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.119e-05/0.5259, allocations: 13.72 kB / 0.5715 GB, free: 9.641 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004663/0.5306, allocations: 1.27 MB / 0.5728 GB, free: 8.816 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03181/0.5624, allocations: 5.632 MB / 0.5783 GB, free: 6.293 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01132/0.5738, allocations: 5.67 MB / 0.5838 GB, free: 2.512 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003953/0.5742, allocations: 0.588 MB / 0.5844 GB, free: 2.25 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003076/0.5773, allocations: 0.7645 MB / 0.5851 GB, free: 1.812 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03024/0.6076, allocations: 12.77 MB / 0.5976 GB, free: 5 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002179/0.6078, allocations: 11.91 kB / 0.5976 GB, free: 4.988 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00126/0.6091, allocations: 330.7 kB / 0.5979 GB, free: 4.676 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004935/0.6096, allocations: 496.7 kB / 0.5984 GB, free: 4.188 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02375/0.6333, allocations: 12.25 MB / 0.6103 GB, free: 7.926 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.076/0.7094, allocations: 43.72 MB / 0.653 GB, free: 11.61 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02476/0.7342, allocations: 25.17 MB / 0.6776 GB, free: 15.56 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004735/0.739, allocations: 2.984 MB / 0.6805 GB, free: 12.57 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000313/0.7393, allocations: 241.5 kB / 0.6808 GB, free: 12.32 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003505/0.7428, allocations: 2.579 MB / 0.6833 GB, free: 9.668 MB / 478.1 MB Notification: Performance of pre-optimization done (n=391): time 5.18e-06/0.7428, allocations: 3.469 kB / 0.6833 GB, free: 9.668 MB / 478.1 MB Notification: Performance of matching and sorting (n=397): time 0.03597/0.7788, allocations: 18.11 MB / 0.701 GB, free: 7.453 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001491/0.779, allocations: 351.5 kB / 0.7013 GB, free: 7.035 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004996/0.784, allocations: 3.526 MB / 0.7048 GB, free: 3.504 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004115/0.7844, allocations: 85.7 kB / 0.7048 GB, free: 3.414 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001977/0.7864, allocations: 3.383 MB / 0.7081 GB, free: 12 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.164/0.9504, allocations: 1.345 MB / 0.7095 GB, free: 166.8 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001843/0.9523, allocations: 1.084 MB / 0.7105 GB, free: 166.7 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.535e-05/0.9524, allocations: 308.8 kB / 0.7108 GB, free: 166.4 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003566/0.9559, allocations: 2.55 MB / 0.7133 GB, free: 166.4 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005313/0.9613, allocations: 4.51 MB / 0.7177 GB, free: 164.1 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0102/0.9715, allocations: 7.45 MB / 0.725 GB, free: 161.6 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.414e-05/0.9716, allocations: 18.31 kB / 0.725 GB, free: 161.6 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01444/0.9861, allocations: 8.27 MB / 0.7331 GB, free: 159.4 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.279e-05/0.9862, allocations: 56.83 kB / 0.7331 GB, free: 159.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-05/0.9863, allocations: 63.09 kB / 0.7332 GB, free: 159.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00263/0.9889, allocations: 1.006 MB / 0.7342 GB, free: 159.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004614/0.9935, allocations: 1.26 MB / 0.7354 GB, free: 159 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01118/1.005, allocations: 8.829 MB / 0.744 GB, free: 154 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005041/1.01, allocations: 357.4 kB / 0.7444 GB, free: 153.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006945/1.011, allocations: 268.3 kB / 0.7446 GB, free: 153.9 MB / 494.1 MB 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.004958/1.016, allocations: 2.905 MB / 0.7475 GB, free: 152.3 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000972/1.016, allocations: 391 kB / 0.7478 GB, free: 152.1 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0103/1.027, allocations: 6.173 MB / 0.7539 GB, free: 149 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.897e-05/1.027, allocations: 40 kB / 0.7539 GB, free: 149 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.659e-05/1.027, allocations: 15.94 kB / 0.7539 GB, free: 148.9 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.094e-05/1.027, allocations: 22.59 kB / 0.7539 GB, free: 148.9 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02626/1.053, allocations: 14.92 MB / 0.7685 GB, free: 136.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.611e-05/1.053, allocations: 7.844 kB / 0.7685 GB, free: 136.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002646/1.056, allocations: 0.6809 MB / 0.7692 GB, free: 136 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002313/1.058, allocations: 0.8833 MB / 0.77 GB, free: 135.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002529/1.059, allocations: 87.72 kB / 0.7701 GB, free: 135.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009218/1.068, allocations: 7.751 MB / 0.7777 GB, free: 127.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/1.068, allocations: 15.97 kB / 0.7777 GB, free: 127.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01173/1.08, allocations: 8.777 MB / 0.7863 GB, free: 118.4 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002587/1.082, allocations: 0.9062 MB / 0.7872 GB, free: 117.4 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008206/1.083, allocations: 76 kB / 0.7872 GB, free: 117.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002149/1.085, allocations: 199.8 kB / 0.7874 GB, free: 117.2 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005282/1.086, allocations: 267.1 kB / 0.7877 GB, free: 116.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002043/1.086, allocations: 116 kB / 0.7878 GB, free: 116.8 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003306/1.089, allocations: 2.363 MB / 0.7901 GB, free: 114.4 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.089, allocations: 6.625 kB / 0.7901 GB, free: 114.4 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005634/1.095, allocations: 1.449 MB / 0.7915 GB, free: 113 MB / 494.1 MB 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.01108/1.106, allocations: 9.491 MB / 0.8008 GB, free: 103.4 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02539/1.131, allocations: 11.91 MB / 0.8124 GB, free: 91.48 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/1.131, allocations: 0 / 0.8124 GB, free: 91.48 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004559/1.136, allocations: 3.077 MB / 0.8154 GB, free: 88.38 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004058/1.14, allocations: 0.8173 MB / 0.8162 GB, free: 87.6 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06757/1.208, allocations: 56.29 MB / 0.8712 GB, free: 26.66 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004179/1.212, allocations: 5.009 MB / 0.8761 GB, free: 21.61 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004386/1.216, allocations: 1.586 MB / 0.8776 GB, free: 20.02 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003304/1.22, allocations: 2.756 MB / 0.8803 GB, free: 17.27 MB / 494.1 MB Notification: Performance of SimCode: time 1.072e-06/1.22, allocations: 0 / 0.8803 GB, free: 17.27 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3283/1.548, allocations: 113.5 MB / 0.9912 GB, free: 89.69 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/12.99, allocations: 14.48 kB / 0.9912 GB, free: 89.68 MB / 494.1 MB (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)