Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.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_DOL,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_DOL,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL",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.001152/0.001152, 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.382/1.382, allocations: 222.9 MB / 239.3 MB, free: 4.586 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.001886/0.001886, allocations: 188.5 kB / 289.6 MB, free: 2.324 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0347/0.0347, allocations: 8.804 MB / 348.5 MB, free: 4.695 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00198/0.001981, allocations: 78.5 kB / 411.2 MB, free: 41.96 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09277/0.09478, allocations: 51.58 MB / 462.8 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_DOL): time 0.019/0.1138, allocations: 16.7 MB / 479.5 MB, free: 13.45 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01287/0.1267, allocations: 5.445 MB / 484.9 MB, free: 7.984 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003494/0.1303, allocations: 99.62 kB / 485 MB, free: 7.887 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004592/0.1349, allocations: 1.27 MB / 486.3 MB, free: 6.613 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/SMEE_DOL.mo:12:3-13:30:writable] Warning: Conditional component 'ir' is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.00658/0.1416, allocations: 1.618 MB / 487.9 MB, free: 4.988 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003606/0.1452, allocations: 1.041 MB / 488.9 MB, free: 3.949 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008009/0.1532, allocations: 4.981 MB / 493.9 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006932/0.1602, allocations: 4.307 MB / 498.2 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004717/0.1649, allocations: 2.262 MB / 0.4888 GB, free: 8.285 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004821/0.1698, allocations: 2.646 MB / 0.4913 GB, free: 5.629 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001597/0.1714, allocations: 0.6211 MB / 0.4919 GB, free: 5.008 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002979/0.1744, allocations: 0.8474 MB / 0.4928 GB, free: 4.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002214/0.1766, allocations: 1.433 MB / 0.4942 GB, free: 2.723 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005518/0.1821, allocations: 2.645 MB / 0.4968 GB, free: 68 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01099/0.1932, allocations: 8.058 MB / 0.5046 GB, free: 7.984 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.606e-06/0.1932, allocations: 4 kB / 0.5046 GB, free: 7.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.061e-06/0.1932, allocations: 4 kB / 0.5046 GB, free: 7.977 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002903/0.1935, allocations: 0 / 0.5046 GB, free: 7.977 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: 1052 * Number of variables: 1052 Notification: Performance of Generate backend data structure: time 0.02372/0.2173, allocations: 5.386 MB / 0.5099 GB, free: 2.512 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.135e-05/0.2174, allocations: 15.97 kB / 0.5099 GB, free: 2.496 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002097/0.2195, allocations: 0.5558 MB / 0.5105 GB, free: 1.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009579/0.2291, allocations: 0.9947 MB / 0.5114 GB, free: 0.9297 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007974/0.2371, allocations: 2.96 MB / 0.5143 GB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003779/0.2375, allocations: 312.3 kB / 0.5146 GB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00121/0.2387, allocations: 399.9 kB / 0.515 GB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01292/0.2516, allocations: 5.221 MB / 0.5201 GB, free: 7.906 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001333/0.2518, allocations: 4 kB / 0.5201 GB, free: 7.902 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007759/0.2526, allocations: 160 kB / 0.5202 GB, free: 7.746 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001709/0.2528, allocations: 180 kB / 0.5204 GB, free: 7.566 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01036/0.2631, allocations: 4.458 MB / 0.5248 GB, free: 3.09 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1814/0.4445, allocations: 16.81 MB / 0.5412 GB, free: 58.88 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00636/0.4509, allocations: 8.442 MB / 0.5494 GB, free: 51.94 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002613/0.4536, allocations: 1.712 MB / 0.5511 GB, free: 51.16 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0076/0.4612, allocations: 4.989 MB / 0.556 GB, free: 47.46 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.811e-05/0.4613, allocations: 50.19 kB / 0.556 GB, free: 47.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=158): time 3.557e-06/0.4613, allocations: 0.625 kB / 0.556 GB, free: 47.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=161): time 0.009677/0.471, allocations: 6.153 MB / 0.562 GB, free: 43.6 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.624e-05/0.471, allocations: 72.44 kB / 0.5621 GB, free: 43.54 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002407/0.4734, allocations: 2.295 MB / 0.5643 GB, free: 42.29 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.359e-05/0.4735, allocations: 53.52 kB / 0.5644 GB, free: 42.24 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007324/0.4742, allocations: 1.847 MB / 0.5662 GB, free: 40.62 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002597/0.4745, allocations: 0.546 MB / 0.5667 GB, free: 40.15 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004819/0.475, allocations: 390.8 kB / 0.5671 GB, free: 39.92 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.05e-05/0.475, allocations: 305.8 kB / 0.5674 GB, free: 39.62 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001226/0.4763, allocations: 0.8513 MB / 0.5682 GB, free: 39.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001358/0.4776, allocations: 1.561 MB / 0.5698 GB, free: 37.79 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002614/0.4803, allocations: 2.57 MB / 0.5723 GB, free: 35.85 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.967e-06/0.4803, allocations: 3.812 kB / 0.5723 GB, free: 35.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=276) (initialization): time 0.00366/0.484, allocations: 2.894 MB / 0.5751 GB, free: 33.28 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.52e-05/0.484, allocations: 20.61 kB / 0.5751 GB, free: 33.26 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.139e-05/0.484, allocations: 24 kB / 0.5751 GB, free: 33.24 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002906/0.4843, allocations: 125.7 kB / 0.5753 GB, free: 33.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001818/0.4861, allocations: 0.5344 MB / 0.5758 GB, free: 32.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001593/0.4877, allocations: 2.013 MB / 0.5777 GB, free: 30.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001819/0.4896, allocations: 115.9 kB / 0.5779 GB, free: 30.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001246/0.4897, allocations: 100 kB / 0.5779 GB, free: 30.21 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * 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 (270): * Single equations (assignments): 268 * 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 {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001703/0.4914, allocations: 1.213 MB / 0.5791 GB, free: 28.99 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002915/0.4917, allocations: 241.1 kB / 0.5794 GB, free: 28.75 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003405/0.4951, allocations: 2.456 MB / 0.5818 GB, free: 26.24 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.4952, allocations: 16 kB / 0.5818 GB, free: 26.22 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.4952, allocations: 6.844 kB / 0.5818 GB, free: 26.22 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/0.4952, allocations: 7.969 kB / 0.5818 GB, free: 26.21 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007407/0.5026, allocations: 5.804 MB / 0.5875 GB, free: 20.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.5026, allocations: 0 / 0.5875 GB, free: 20.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001162/0.5038, allocations: 291.6 kB / 0.5877 GB, free: 20.03 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006979/0.5045, allocations: 308.3 kB / 0.588 GB, free: 19.72 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001161/0.5046, allocations: 39.98 kB / 0.5881 GB, free: 19.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004865/0.5095, allocations: 6.988 MB / 0.5949 GB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.5095, allocations: 4.062 kB / 0.5949 GB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004678/0.5142, allocations: 3.567 MB / 0.5984 GB, free: 8.641 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001057/0.5153, allocations: 0.4941 MB / 0.5989 GB, free: 8.125 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004435/0.5157, allocations: 32 kB / 0.5989 GB, free: 8.094 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001172/0.5169, allocations: 83.92 kB / 0.599 GB, free: 8.012 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002496/0.5172, allocations: 121.3 kB / 0.5991 GB, free: 7.895 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.623e-05/0.5173, allocations: 47.98 kB / 0.5991 GB, free: 7.848 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002034/0.5193, allocations: 1.552 MB / 0.6006 GB, free: 6.281 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5193, allocations: 0 / 0.6006 GB, free: 6.281 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002036/0.5214, allocations: 0.6696 MB / 0.6013 GB, free: 5.613 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smee.excitation.electroMagneticConverter.Phi.re,mechanicalSensor.flange_a.phi) * 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 (133): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,8,100.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004706/0.5261, allocations: 4.197 MB / 0.6054 GB, free: 1.328 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005562/0.5317, allocations: 2.922 MB / 0.6083 GB, free: 14.4 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/0.5317, allocations: 4 kB / 0.6083 GB, free: 14.39 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002156/0.5338, allocations: 1.442 MB / 0.6097 GB, free: 12.92 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002702/0.5366, allocations: 0.6 MB / 0.6103 GB, free: 12.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04243/0.579, allocations: 27.73 MB / 0.6373 GB, free: 14.12 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003171/0.5822, allocations: 2.669 MB / 0.6399 GB, free: 11.43 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002077/0.5843, allocations: 0.5591 MB / 0.6405 GB, free: 10.86 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002127/0.5864, allocations: 1.476 MB / 0.6419 GB, free: 9.387 MB / 414.1 MB Notification: Performance of SimCode: time 8.52e-07/0.5865, allocations: 0 / 0.6419 GB, free: 9.387 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2893/0.8758, allocations: 60.16 MB / 0.7007 GB, free: 137.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.38/11.26, allocations: 4.688 kB / 0.7007 GB, free: 137.6 MB / 462.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe 2>&1)