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.007707/0.007707, allocations: 102.9 kB / 15.73 MB, free: 6.043 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.437/1.437, allocations: 222.9 MB / 239.4 MB, free: 4.523 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.001686/0.001685, allocations: 180.5 kB / 289.7 MB, free: 2.246 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03561/0.03561, allocations: 8.804 MB / 348.7 MB, free: 4.594 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001476/0.001476, allocations: 83.88 kB / 463.5 MB, free: 13.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1019, allocations: 51.55 MB / 0.503 GB, free: 9.902 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve2): time 0.02498/0.1269, allocations: 25.45 MB / 0.5278 GB, free: 344 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2442/0.3712, allocations: 7.933 MB / 0.5356 GB, free: 4.395 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005116/0.3763, allocations: 175.1 kB / 0.5357 GB, free: 4.395 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01797/0.3943, allocations: 7.645 MB / 0.5432 GB, free: 3.535 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01243/0.4068, allocations: 3.049 MB / 0.5462 GB, free: 2.68 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00652/0.4133, allocations: 2.015 MB / 0.5481 GB, free: 2.488 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01768/0.431, allocations: 9.234 MB / 0.5572 GB, free: 15.07 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02925/0.4603, allocations: 17.27 MB / 0.574 GB, free: 5.883 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008948/0.4693, allocations: 4.762 MB / 0.5787 GB, free: 1.234 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01037/0.4797, allocations: 5.24 MB / 0.5838 GB, free: 12.14 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003724/0.4835, allocations: 1.352 MB / 0.5851 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005239/0.4887, allocations: 1.725 MB / 0.5868 GB, free: 9.078 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003232/0.492, allocations: 2.664 MB / 0.5894 GB, free: 6.445 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00967/0.5017, allocations: 5.083 MB / 0.5944 GB, free: 1.383 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02388/0.5256, allocations: 18.15 MB / 0.6121 GB, free: 15.56 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.5256, allocations: 4 kB / 0.6121 GB, free: 15.56 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.5256, allocations: 0 / 0.6121 GB, free: 15.56 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005408/0.5262, 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.03758/0.5638, allocations: 10.75 MB / 0.6226 GB, free: 4.801 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.242e-05/0.5639, allocations: 8.031 kB / 0.6226 GB, free: 4.793 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005348/0.5692, allocations: 1.271 MB / 0.6238 GB, free: 3.523 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03294/0.6022, allocations: 5.68 MB / 0.6294 GB, free: 13.9 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01554/0.6178, allocations: 5.804 MB / 0.635 GB, free: 8.07 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007779/0.6186, allocations: 0.5795 MB / 0.6356 GB, free: 7.504 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004174/0.6228, allocations: 0.7689 MB / 0.6364 GB, free: 6.746 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03377/0.6566, allocations: 12.77 MB / 0.6488 GB, free: 9.953 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003881/0.657, allocations: 7.906 kB / 0.6488 GB, free: 9.945 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003161/0.6602, allocations: 330.8 kB / 0.6492 GB, free: 9.637 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008088/0.661, allocations: 0.4967 MB / 0.6496 GB, free: 9.137 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02928/0.6903, allocations: 12.26 MB / 0.6616 GB, free: 12.86 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0795/0.7699, allocations: 43.25 MB / 0.7038 GB, free: 0.5156 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02377/0.7937, allocations: 25.19 MB / 0.7284 GB, free: 4.418 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004934/0.7986, allocations: 2.982 MB / 0.7314 GB, free: 1.43 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004563/0.7991, allocations: 241.5 kB / 0.7316 GB, free: 1.168 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.4181/1.217, allocations: 2.572 MB / 0.7341 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=391): time 7.674e-06/1.217, allocations: 0.5938 kB / 0.7341 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=397): time 0.04325/1.261, allocations: 18.12 MB / 0.7518 GB, free: 160.9 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001826/1.261, allocations: 353 kB / 0.7521 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007254/1.268, allocations: 3.522 MB / 0.7556 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0006363/1.269, allocations: 91.8 kB / 0.7557 GB, free: 159.2 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00243/1.271, allocations: 3.379 MB / 0.759 GB, free: 156.7 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001431/1.273, allocations: 1.348 MB / 0.7603 GB, free: 155.6 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001964/1.275, allocations: 1.082 MB / 0.7613 GB, free: 155.1 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 7.945e-05/1.275, allocations: 309.7 kB / 0.7616 GB, free: 154.8 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003959/1.279, allocations: 2.551 MB / 0.7641 GB, free: 153.8 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00447/1.283, allocations: 4.509 MB / 0.7685 GB, free: 150.4 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007847/1.291, allocations: 7.45 MB / 0.7758 GB, free: 145.4 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.187e-05/1.291, allocations: 19.75 kB / 0.7758 GB, free: 145.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.0127/1.304, allocations: 8.284 MB / 0.7839 GB, free: 142 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.614e-05/1.304, allocations: 57.8 kB / 0.784 GB, free: 141.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.911e-05/1.304, allocations: 62.06 kB / 0.784 GB, free: 141.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002542/1.306, allocations: 0.9913 MB / 0.785 GB, free: 141.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004136/1.311, allocations: 1.261 MB / 0.7862 GB, free: 141.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01108/1.322, allocations: 8.805 MB / 0.7948 GB, free: 136.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005356/1.327, allocations: 357.4 kB / 0.7952 GB, free: 136.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001066/1.328, allocations: 267.6 kB / 0.7954 GB, free: 135.8 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.005371/1.334, allocations: 2.903 MB / 0.7983 GB, free: 133.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001144/1.335, allocations: 387.2 kB / 0.7986 GB, free: 132.9 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008847/1.344, allocations: 6.182 MB / 0.8047 GB, free: 126.6 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.63e-05/1.344, allocations: 44 kB / 0.8047 GB, free: 126.6 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.43e-05/1.344, allocations: 8 kB / 0.8047 GB, free: 126.6 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.713e-05/1.344, allocations: 19.92 kB / 0.8047 GB, free: 126.6 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02277/1.367, allocations: 14.64 MB / 0.819 GB, free: 111.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.582e-05/1.367, allocations: 10.3 kB / 0.819 GB, free: 111.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00269/1.369, allocations: 0.6826 MB / 0.8197 GB, free: 111.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002439/1.372, allocations: 0.8736 MB / 0.8205 GB, free: 110.3 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004736/1.372, allocations: 91.97 kB / 0.8206 GB, free: 110.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008835/1.381, allocations: 7.745 MB / 0.8282 GB, free: 102.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/1.381, allocations: 12.03 kB / 0.8282 GB, free: 102.3 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01141/1.393, allocations: 8.775 MB / 0.8368 GB, free: 93.43 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002874/1.395, allocations: 0.9118 MB / 0.8377 GB, free: 92.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006536/1.396, allocations: 82.53 kB / 0.8377 GB, free: 92.42 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001937/1.398, allocations: 195.8 kB / 0.8379 GB, free: 92.23 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004992/1.399, allocations: 279 kB / 0.8382 GB, free: 91.96 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002032/1.399, allocations: 110.1 kB / 0.8383 GB, free: 91.85 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002988/1.402, allocations: 2.371 MB / 0.8406 GB, free: 89.49 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.41e-07/1.402, allocations: 0 / 0.8406 GB, free: 89.49 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005075/1.407, allocations: 1.451 MB / 0.842 GB, free: 88.04 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.01106/1.418, allocations: 9.475 MB / 0.8513 GB, free: 78.44 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009227/1.427, allocations: 6.492 MB / 0.8576 GB, free: 71.93 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.398e-06/1.427, allocations: 0 / 0.8576 GB, free: 71.93 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004304/1.432, allocations: 3.074 MB / 0.8606 GB, free: 68.82 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003862/1.435, allocations: 0.8172 MB / 0.8614 GB, free: 68.04 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07612/1.512, allocations: 48.01 MB / 0.9083 GB, free: 17.95 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007352/1.519, allocations: 5.012 MB / 0.9132 GB, free: 12.89 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004019/1.523, allocations: 1.586 MB / 0.9148 GB, free: 11.3 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003395/1.526, allocations: 2.745 MB / 0.9174 GB, free: 8.555 MB / 0.5294 GB Notification: Performance of SimCode: time 9.22e-07/1.526, allocations: 4 kB / 0.9174 GB, free: 8.551 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.423/1.949, allocations: 112.3 MB / 1.027 GB, free: 108.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.57/20.52, allocations: 16.66 kB / 1.027 GB, free: 108.6 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)