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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.001118/0.001118, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.351/1.351, allocations: 223.3 MB / 239 MB, free: 5.441 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.0009635/0.0009633, allocations: 172.6 kB / 290.3 MB, free: 2.133 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03292/0.03292, allocations: 8.781 MB / 350.1 MB, free: 4.652 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0006032/0.0006034, allocations: 9.375 kB / 413.3 MB, free: 43 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1208, allocations: 52.56 MB / 465.8 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve3): time 0.02321/0.144, allocations: 22.23 MB / 488.1 MB, free: 7.07 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01583/0.1599, allocations: 7.324 MB / 495.4 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004902/0.1649, allocations: 159.6 kB / 495.5 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005539/0.1704, allocations: 1.426 MB / 497 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008488/0.1789, allocations: 2.506 MB / 499.5 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004445/0.1834, allocations: 1.311 MB / 0.489 GB, free: 10.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01472/0.1981, allocations: 10.81 MB / 0.4996 GB, free: 15.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02676/0.2249, allocations: 13.8 MB / 0.5131 GB, free: 1.586 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00705/0.232, allocations: 3.512 MB / 0.5165 GB, free: 14.06 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00737/0.2394, allocations: 3.977 MB / 0.5204 GB, free: 10.07 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002613/0.2421, allocations: 0.5195 MB / 0.5209 GB, free: 9.551 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004395/0.2465, allocations: 0.8707 MB / 0.5218 GB, free: 8.68 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003443/0.25, allocations: 1.666 MB / 0.5234 GB, free: 7.008 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004894/0.2549, allocations: 1.709 MB / 0.5251 GB, free: 5.289 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.239/0.4939, allocations: 15.31 MB / 0.54 GB, free: 21.86 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.494, allocations: 0 / 0.54 GB, free: 21.86 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.584e-06/0.494, allocations: 0 / 0.54 GB, free: 21.86 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004794/0.4945, allocations: 1.406 kB / 0.54 GB, free: 21.86 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.0277/0.5222, allocations: 9.137 MB / 0.5489 GB, free: 17.38 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.372e-05/0.5223, allocations: 10.06 kB / 0.5489 GB, free: 17.38 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00604/0.5283, allocations: 1.27 MB / 0.5502 GB, free: 17.06 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03104/0.5594, allocations: 5.66 MB / 0.5557 GB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01411/0.5735, allocations: 5.597 MB / 0.5612 GB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008184/0.5744, allocations: 0.5864 MB / 0.5617 GB, free: 13.37 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003427/0.5778, allocations: 0.77 MB / 0.5625 GB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03065/0.6085, allocations: 12.72 MB / 0.5749 GB, free: 10.63 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000386/0.6089, allocations: 22.28 kB / 0.5749 GB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002453/0.6114, allocations: 327.5 kB / 0.5752 GB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006116/0.612, allocations: 0.4905 MB / 0.5757 GB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0274/0.6394, allocations: 12.19 MB / 0.5876 GB, free: 4.988 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07923/0.7187, allocations: 43.83 MB / 0.6304 GB, free: 9.812 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02176/0.7405, allocations: 25.14 MB / 0.655 GB, free: 13.79 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005197/0.7457, allocations: 2.967 MB / 0.6579 GB, free: 10.82 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000529/0.7463, allocations: 240.5 kB / 0.6581 GB, free: 10.56 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005124/0.7514, allocations: 2.578 MB / 0.6606 GB, free: 7.91 MB / 446.1 MB Notification: Performance of pre-optimization done (n=391): time 1.334e-05/0.7515, allocations: 0 / 0.6606 GB, free: 7.91 MB / 446.1 MB Notification: Performance of matching and sorting (n=397): time 0.04833/0.7998, allocations: 19.68 MB / 0.6799 GB, free: 4.129 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001519/0.8, allocations: 355.5 kB / 0.6802 GB, free: 3.707 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006182/0.8062, allocations: 3.499 MB / 0.6836 GB, free: 208 kB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007561/0.807, allocations: 85.7 kB / 0.6837 GB, free: 116 kB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002783/0.8097, allocations: 3.384 MB / 0.687 GB, free: 12.71 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001926/0.8117, allocations: 1.352 MB / 0.6883 GB, free: 11.38 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006954/0.8124, allocations: 108 kB / 0.6884 GB, free: 11.27 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0004932/0.8129, allocations: 0.5297 MB / 0.6889 GB, free: 10.73 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005161/0.8181, allocations: 2.537 MB / 0.6914 GB, free: 8.191 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00642/0.8245, allocations: 4.499 MB / 0.6958 GB, free: 2.848 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006328/0.8309, allocations: 3.536 MB / 0.6993 GB, free: 15.36 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.268e-05/0.831, allocations: 16 kB / 0.6993 GB, free: 15.34 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01586/0.8468, allocations: 8.237 MB / 0.7073 GB, free: 7.465 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001367/0.847, allocations: 57.7 kB / 0.7074 GB, free: 7.402 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000146/0.8472, allocations: 60 kB / 0.7074 GB, free: 7.344 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002833/0.85, allocations: 1.006 MB / 0.7084 GB, free: 6.34 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005121/0.8551, allocations: 1.262 MB / 0.7097 GB, free: 5.164 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2287/1.084, allocations: 8.212 MB / 0.7177 GB, free: 167.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00471/1.089, allocations: 360 kB / 0.718 GB, free: 167.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001052/1.09, allocations: 264.9 kB / 0.7183 GB, free: 167.6 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,53.0%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006729/1.096, allocations: 2.902 MB / 0.7211 GB, free: 167.4 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0013/1.098, allocations: 391.1 kB / 0.7215 GB, free: 167.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01071/1.108, allocations: 6.171 MB / 0.7275 GB, free: 165.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.517e-05/1.109, allocations: 42.16 kB / 0.7275 GB, free: 165.8 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.717e-05/1.109, allocations: 16.06 kB / 0.7276 GB, free: 165.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.658e-05/1.109, allocations: 20.39 kB / 0.7276 GB, free: 165.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02092/1.13, allocations: 14.91 MB / 0.7421 GB, free: 159.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.38e-05/1.13, allocations: 3.938 kB / 0.7421 GB, free: 159.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002279/1.132, allocations: 0.6869 MB / 0.7428 GB, free: 159.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002006/1.134, allocations: 0.8841 MB / 0.7437 GB, free: 159.1 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002109/1.134, allocations: 81.78 kB / 0.7438 GB, free: 159.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008316/1.142, allocations: 7.178 MB / 0.7508 GB, free: 155.1 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/1.142, allocations: 6.062 kB / 0.7508 GB, free: 155.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01117/1.154, allocations: 8.754 MB / 0.7593 GB, free: 150 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001969/1.156, allocations: 0.936 MB / 0.7602 GB, free: 149.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000546/1.156, allocations: 76 kB / 0.7603 GB, free: 149.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001675/1.158, allocations: 201.5 kB / 0.7605 GB, free: 148.9 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004421/1.158, allocations: 272.2 kB / 0.7608 GB, free: 148.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001922/1.159, allocations: 114.3 kB / 0.7609 GB, free: 148.7 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002943/1.162, allocations: 2.333 MB / 0.7631 GB, free: 146.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 8.71e-07/1.162, allocations: 0 / 0.7631 GB, free: 146.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004448/1.166, allocations: 1.453 MB / 0.7646 GB, free: 145.3 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,50.0%) 46} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01072/1.177, allocations: 9.473 MB / 0.7738 GB, free: 135.7 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008493/1.185, allocations: 6.435 MB / 0.7801 GB, free: 129.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.813e-06/1.185, allocations: 5.656 kB / 0.7801 GB, free: 129.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003985/1.189, allocations: 3.073 MB / 0.7831 GB, free: 126.1 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003816/1.193, allocations: 0.7948 MB / 0.7839 GB, free: 125.3 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0781/1.271, allocations: 40.6 MB / 0.8235 GB, free: 82.64 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006335/1.278, allocations: 5.005 MB / 0.8284 GB, free: 77.59 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005297/1.283, allocations: 1.59 MB / 0.83 GB, free: 76 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004711/1.288, allocations: 2.76 MB / 0.8327 GB, free: 73.23 MB / 494.1 MB Notification: Performance of SimCode: time 2.104e-06/1.288, allocations: 0 / 0.8327 GB, free: 73.23 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3526/1.64, allocations: 108.1 MB / 0.9383 GB, free: 142.4 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000138/1.64, allocations: 200.4 kB / 0.9385 GB, free: 142.2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.209/5.849, allocations: 1.969 kB / 0.9385 GB, free: 142.2 MB / 494.1 MB (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/linux/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) Environment - environmentSimulation: