Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.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_ShortCircuit1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_ShortCircuit1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit1",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.001433/0.001433, allocations: 108 kB / 15.61 MB, free: 152 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.427/1.427, allocations: 222.9 MB / 239.2 MB, free: 4.613 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.001476/0.001476, allocations: 192.5 kB / 289.6 MB, free: 2.332 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0349/0.0349, allocations: 8.789 MB / 348.5 MB, free: 4.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001661/0.001661, allocations: 77.03 kB / 411.2 MB, free: 42.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0897/0.09139, allocations: 51.57 MB / 462.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit1): time 0.01724/0.1087, allocations: 15.91 MB / 478.7 MB, free: 14.29 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01095/0.1197, allocations: 5.313 MB / 484 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002813/0.1225, allocations: 91.69 kB / 484.1 MB, free: 8.867 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004531/0.1271, allocations: 1.211 MB / 485.3 MB, free: 7.652 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/Templates/SMEE_ShortCircuit.mo:18:3-19:30:writable] Warning: Conditional component 'ir' is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.005582/0.1327, allocations: 1.532 MB / 486.8 MB, free: 6.113 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00287/0.1356, allocations: 0.9892 MB / 487.8 MB, free: 5.125 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005627/0.1412, allocations: 4.568 MB / 492.4 MB, free: 0.543 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004941/0.1462, allocations: 3.477 MB / 495.8 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002707/0.1489, allocations: 2.044 MB / 497.9 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00319/0.1521, allocations: 2.327 MB / 0.4885 GB, free: 8.605 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001315/0.1535, allocations: 0.5586 MB / 0.489 GB, free: 8.047 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002232/0.1557, allocations: 0.7771 MB / 0.4898 GB, free: 7.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001427/0.1572, allocations: 1.239 MB / 0.491 GB, free: 6.027 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003851/0.161, allocations: 2.373 MB / 0.4933 GB, free: 3.645 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008442/0.1695, allocations: 7.26 MB / 0.5004 GB, free: 12.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.1695, allocations: 3.938 kB / 0.5004 GB, free: 12.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1695, allocations: 4 kB / 0.5004 GB, free: 12.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002338/0.1698, allocations: 0 / 0.5004 GB, free: 12.36 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 962 * Number of variables: 962 Notification: Performance of Generate backend data structure: time 0.01514/0.1849, allocations: 4.83 MB / 0.5051 GB, free: 7.453 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.185, allocations: 8.031 kB / 0.5051 GB, free: 7.445 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001618/0.1866, allocations: 0.5529 MB / 0.5057 GB, free: 6.883 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006038/0.1927, allocations: 0.9368 MB / 0.5066 GB, free: 5.941 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00627/0.199, allocations: 2.674 MB / 0.5092 GB, free: 3.211 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002893/0.1993, allocations: 275.8 kB / 0.5095 GB, free: 2.941 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001141/0.2004, allocations: 367.9 kB / 0.5098 GB, free: 2.582 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009961/0.2104, allocations: 4.671 MB / 0.5144 GB, free: 13.87 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001134/0.2105, allocations: 7.906 kB / 0.5144 GB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006743/0.2112, allocations: 148 kB / 0.5145 GB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001502/0.2114, allocations: 159.3 kB / 0.5147 GB, free: 13.56 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008237/0.2196, allocations: 3.89 MB / 0.5185 GB, free: 9.664 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2017/0.4214, allocations: 15.33 MB / 0.5335 GB, free: 56.46 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005237/0.4266, allocations: 5.952 MB / 0.5393 GB, free: 52.09 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002089/0.4288, allocations: 1.257 MB / 0.5405 GB, free: 52.07 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006501/0.4353, allocations: 4.135 MB / 0.5445 GB, free: 50.86 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.578e-05/0.4353, allocations: 46.94 kB / 0.5446 GB, free: 50.82 MB / 366.1 MB Notification: Performance of pre-optimization done (n=118): time 3.156e-06/0.4353, allocations: 4.766 kB / 0.5446 GB, free: 50.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=144): time 0.01032/0.4457, allocations: 5.254 MB / 0.5497 GB, free: 49.74 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.935e-05/0.4457, allocations: 67.66 kB / 0.5498 GB, free: 49.68 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003089/0.4488, allocations: 2.148 MB / 0.5519 GB, free: 49.41 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.196e-05/0.4489, allocations: 51.33 kB / 0.5519 GB, free: 49.36 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008599/0.4498, allocations: 1.736 MB / 0.5536 GB, free: 48.03 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003542/0.4502, allocations: 0.4979 MB / 0.5541 GB, free: 47.65 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000631/0.4508, allocations: 413.6 kB / 0.5545 GB, free: 47.45 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.674e-05/0.4508, allocations: 301.6 kB / 0.5548 GB, free: 47.15 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001029/0.4519, allocations: 0.763 MB / 0.5555 GB, free: 46.85 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001216/0.4531, allocations: 1.539 MB / 0.557 GB, free: 45.56 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01142/0.4645, allocations: 4.752 MB / 0.5617 GB, free: 42.44 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-05/0.4646, allocations: 7.906 kB / 0.5617 GB, free: 42.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=282) (initialization): time 0.003984/0.4686, allocations: 2.786 MB / 0.5644 GB, free: 40.97 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.664e-05/0.4686, allocations: 19.48 kB / 0.5644 GB, free: 40.97 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.425e-05/0.4686, allocations: 26.47 kB / 0.5645 GB, free: 40.97 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000686/0.4693, allocations: 281.1 kB / 0.5647 GB, free: 40.83 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001507/0.4708, allocations: 497.3 kB / 0.5652 GB, free: 40.72 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003033/0.4739, allocations: 3.386 MB / 0.5685 GB, free: 37.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001918/0.4758, allocations: 100.7 kB / 0.5686 GB, free: 37.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001437/0.476, allocations: 110.7 kB / 0.5687 GB, free: 37.89 MB / 366.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: smee.is[2] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 114 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (261): * Single equations (assignments): 259 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00209/0.4781, allocations: 1.088 MB / 0.5698 GB, free: 37.15 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004468/0.4785, allocations: 223 kB / 0.57 GB, free: 37.04 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002755/0.4813, allocations: 1.763 MB / 0.5717 GB, free: 36.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/0.4813, allocations: 14.78 kB / 0.5717 GB, free: 36.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-05/0.4813, allocations: 4 kB / 0.5717 GB, free: 36.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.422e-05/0.4814, allocations: 9.188 kB / 0.5717 GB, free: 36.01 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006809/0.4882, allocations: 4.988 MB / 0.5766 GB, free: 31.78 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.095e-06/0.4882, allocations: 4.5 kB / 0.5766 GB, free: 31.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001032/0.4892, allocations: 263.9 kB / 0.5769 GB, free: 31.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005463/0.4898, allocations: 209.4 kB / 0.5771 GB, free: 31.31 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.316e-05/0.4899, allocations: 40.86 kB / 0.5771 GB, free: 31.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002738/0.4926, allocations: 3.262 MB / 0.5803 GB, free: 27.88 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.4926, allocations: 4 kB / 0.5803 GB, free: 27.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003162/0.4958, allocations: 2.657 MB / 0.5829 GB, free: 25.18 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006983/0.4965, allocations: 454.3 kB / 0.5833 GB, free: 24.71 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002649/0.4968, allocations: 28 kB / 0.5833 GB, free: 24.69 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009372/0.4977, allocations: 55.97 kB / 0.5834 GB, free: 24.63 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000173/0.4979, allocations: 105 kB / 0.5835 GB, free: 24.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.756e-05/0.498, allocations: 43.98 kB / 0.5835 GB, free: 24.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001548/0.4996, allocations: 1.443 MB / 0.5849 GB, free: 23.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4996, allocations: 0 / 0.5849 GB, free: 23.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001709/0.5013, allocations: 0.625 MB / 0.5856 GB, free: 22.4 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smee.phiMechanical,smee.stator.zeroInductor.i0,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (125): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003347/0.5046, allocations: 3.267 MB / 0.5887 GB, free: 19.08 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004314/0.509, allocations: 2.522 MB / 0.5912 GB, free: 16.55 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.509, allocations: 0.875 kB / 0.5912 GB, free: 16.55 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001138/0.5101, allocations: 0.9455 MB / 0.5921 GB, free: 15.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00208/0.5122, allocations: 0.5792 MB / 0.5927 GB, free: 15.04 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02791/0.5401, allocations: 24.76 MB / 0.6169 GB, free: 3.996 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002483/0.5427, allocations: 2.419 MB / 0.6192 GB, free: 1.547 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001796/0.5445, allocations: 0.4957 MB / 0.6197 GB, free: 1.047 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001769/0.5463, allocations: 1.335 MB / 0.621 GB, free: 15.76 MB / 398.1 MB Notification: Performance of SimCode: time 1.022e-06/0.5463, allocations: 4 kB / 0.621 GB, free: 15.76 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09284/0.6391, allocations: 55.77 MB / 0.6755 GB, free: 8.391 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.07/10.71, allocations: 11.94 kB / 0.6755 GB, free: 8.379 MB / 446.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit1_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe 2>&1)