Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.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_ShortCircuit2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit2",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.001179/0.001179, 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.39/1.39, allocations: 222.9 MB / 239.3 MB, free: 4.59 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.001385/0.001385, allocations: 184.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.03551/0.03551, allocations: 8.797 MB / 348.5 MB, free: 4.684 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00169/0.00169, allocations: 84.53 kB / 411.2 MB, free: 41.95 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08648/0.08819, allocations: 51.57 MB / 462.8 MB, free: 14.22 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2): time 0.01721/0.1054, allocations: 15.92 MB / 478.7 MB, free: 14.21 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009515/0.115, allocations: 5.305 MB / 484 MB, free: 8.891 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002802/0.1178, allocations: 95.69 kB / 484.1 MB, free: 8.797 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003628/0.1215, allocations: 1.219 MB / 485.3 MB, free: 7.574 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.004846/0.1264, allocations: 1.517 MB / 486.8 MB, free: 6.051 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002841/0.1292, allocations: 0.9941 MB / 487.8 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005768/0.135, allocations: 4.567 MB / 492.4 MB, free: 488 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005157/0.1402, allocations: 3.485 MB / 495.9 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002844/0.143, allocations: 2.04 MB / 497.9 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003315/0.1464, allocations: 2.319 MB / 0.4885 GB, free: 8.543 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001316/0.1477, allocations: 0.5625 MB / 0.489 GB, free: 7.98 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002346/0.1501, allocations: 0.7771 MB / 0.4898 GB, free: 7.203 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001938/0.152, allocations: 1.235 MB / 0.491 GB, free: 5.965 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003658/0.1557, allocations: 2.38 MB / 0.4933 GB, free: 3.574 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006917/0.1626, allocations: 7.26 MB / 0.5004 GB, free: 12.29 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.742e-06/0.1627, allocations: 0 / 0.5004 GB, free: 12.29 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1627, allocations: 0 / 0.5004 GB, free: 12.29 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001549/0.1628, allocations: 0 / 0.5004 GB, free: 12.29 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.01307/0.1759, allocations: 4.834 MB / 0.5051 GB, free: 7.387 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.176, allocations: 8.031 kB / 0.5051 GB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001104/0.1771, allocations: 0.5568 MB / 0.5057 GB, free: 6.812 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005378/0.1825, allocations: 0.9368 MB / 0.5066 GB, free: 5.871 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005663/0.1881, allocations: 2.671 MB / 0.5092 GB, free: 3.145 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002604/0.1884, allocations: 275.8 kB / 0.5095 GB, free: 2.875 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000992/0.1894, allocations: 371.9 kB / 0.5098 GB, free: 2.512 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01045/0.1999, allocations: 4.68 MB / 0.5144 GB, free: 13.78 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.685e-05/0.2, allocations: 7.906 kB / 0.5144 GB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005012/0.2005, allocations: 155.9 kB / 0.5146 GB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001467/0.2007, allocations: 155.3 kB / 0.5147 GB, free: 13.47 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00789/0.2086, allocations: 3.905 MB / 0.5185 GB, free: 9.559 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1731/0.3816, allocations: 15.47 MB / 0.5336 GB, free: 56.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005382/0.3871, allocations: 6.13 MB / 0.5396 GB, free: 52.02 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002634/0.3897, allocations: 1.402 MB / 0.541 GB, free: 52 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00782/0.3976, allocations: 4.249 MB / 0.5451 GB, free: 50.85 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.871e-05/0.3976, allocations: 46.53 kB / 0.5452 GB, free: 50.81 MB / 366.1 MB Notification: Performance of pre-optimization done (n=125): time 3.837e-06/0.3977, allocations: 2.531 kB / 0.5452 GB, free: 50.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=156): time 0.0125/0.4102, allocations: 6.127 MB / 0.5512 GB, free: 49.52 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.262e-05/0.4102, allocations: 67.94 kB / 0.5512 GB, free: 49.46 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003397/0.4136, allocations: 2.07 MB / 0.5533 GB, free: 48.62 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001176/0.4138, allocations: 51.98 kB / 0.5533 GB, free: 48.57 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007963/0.4146, allocations: 1.695 MB / 0.555 GB, free: 47.27 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003182/0.4149, allocations: 0.5374 MB / 0.5555 GB, free: 46.86 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005201/0.4154, allocations: 402.8 kB / 0.5559 GB, free: 46.66 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.353e-05/0.4155, allocations: 301.1 kB / 0.5562 GB, free: 46.36 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001059/0.4165, allocations: 0.7773 MB / 0.5569 GB, free: 46.02 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001238/0.4178, allocations: 1.544 MB / 0.5584 GB, free: 44.6 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01174/0.4295, allocations: 4.814 MB / 0.5631 GB, free: 41.45 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.899e-05/0.4296, allocations: 12.94 kB / 0.5631 GB, free: 41.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.004142/0.4337, allocations: 2.866 MB / 0.5659 GB, free: 39.93 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.554e-05/0.4338, allocations: 18.69 kB / 0.566 GB, free: 39.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.211e-05/0.4338, allocations: 23.44 kB / 0.566 GB, free: 39.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008365/0.4346, allocations: 365.3 kB / 0.5663 GB, free: 39.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00149/0.4361, allocations: 481 kB / 0.5668 GB, free: 39.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004052/0.4402, allocations: 4.096 MB / 0.5708 GB, free: 36.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001707/0.4419, allocations: 93.48 kB / 0.5709 GB, free: 36.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001674/0.4421, allocations: 106 kB / 0.571 GB, free: 36.37 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[1] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 112 * 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 (256): * Single equations (assignments): 254 * 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 {(4,23,68.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002117/0.4442, allocations: 1.095 MB / 0.572 GB, free: 35.62 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007135/0.445, allocations: 230.8 kB / 0.5723 GB, free: 35.51 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003505/0.4485, allocations: 1.975 MB / 0.5742 GB, free: 34.28 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.331e-05/0.4485, allocations: 16 kB / 0.5742 GB, free: 34.26 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-05/0.4485, allocations: 4 kB / 0.5742 GB, free: 34.26 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.67e-05/0.4486, allocations: 11.97 kB / 0.5742 GB, free: 34.25 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008692/0.4573, allocations: 5.446 MB / 0.5795 GB, free: 28.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.4573, allocations: 4 kB / 0.5795 GB, free: 28.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001078/0.4584, allocations: 263.7 kB / 0.5798 GB, free: 28.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007026/0.4591, allocations: 289.5 kB / 0.5801 GB, free: 28.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.379e-05/0.4592, allocations: 39.98 kB / 0.5801 GB, free: 28.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003692/0.4629, allocations: 3.839 MB / 0.5839 GB, free: 24.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/0.4629, allocations: 11.94 kB / 0.5839 GB, free: 24.16 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003744/0.4667, allocations: 2.925 MB / 0.5867 GB, free: 21.19 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008639/0.4675, allocations: 462.3 kB / 0.5872 GB, free: 20.71 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004329/0.468, allocations: 36 kB / 0.5872 GB, free: 20.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001095/0.4691, allocations: 63.95 kB / 0.5873 GB, free: 20.62 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001886/0.4693, allocations: 105.7 kB / 0.5874 GB, free: 20.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.545e-05/0.4694, allocations: 47.98 kB / 0.5874 GB, free: 20.47 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001723/0.4711, allocations: 1.387 MB / 0.5888 GB, free: 19.06 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4711, allocations: 0 / 0.5888 GB, free: 19.06 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001931/0.4731, allocations: 0.6454 MB / 0.5894 GB, free: 18.42 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 5 (smee.phiMechanical,smee.is[2],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 (132): * Single equations (assignments): 131 * 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 {(3,22,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003826/0.4769, allocations: 3.54 MB / 0.5928 GB, free: 14.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004855/0.4818, allocations: 2.737 MB / 0.5955 GB, free: 12.08 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.4818, allocations: 0 / 0.5955 GB, free: 12.08 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001413/0.4832, allocations: 1.087 MB / 0.5966 GB, free: 10.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00232/0.4855, allocations: 0.5868 MB / 0.5972 GB, free: 10.42 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03109/0.5166, allocations: 25.12 MB / 0.6217 GB, free: 15.02 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002327/0.519, allocations: 2.435 MB / 0.6241 GB, free: 12.55 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001762/0.5208, allocations: 0.4958 MB / 0.6246 GB, free: 12.05 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001602/0.5224, allocations: 1.323 MB / 0.6258 GB, free: 10.73 MB / 398.1 MB Notification: Performance of SimCode: time 6.21e-07/0.5224, allocations: 0 / 0.6258 GB, free: 10.73 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09294/0.6153, allocations: 56.9 MB / 0.6814 GB, free: 2.219 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.18/10.8, allocations: 14.27 kB / 0.6814 GB, free: 2.207 MB / 446.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe 2>&1)