Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.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_Synchronization3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3",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.00105/0.001051, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.31/1.31, allocations: 222.9 MB / 238.9 MB, free: 4.77 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.00139/0.00139, allocations: 184.5 kB / 289.1 MB, free: 2.512 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03385/0.03385, allocations: 8.79 MB / 348.1 MB, free: 4.883 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001521/0.001521, allocations: 75.92 kB / 410.5 MB, free: 42.39 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08554/0.08709, allocations: 51.57 MB / 462.1 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.0171/0.1042, allocations: 15.62 MB / 477.7 MB, free: 15.09 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01091/0.1152, allocations: 5.228 MB / 482.9 MB, free: 9.84 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002926/0.1182, allocations: 91.69 kB / 483 MB, free: 9.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004068/0.1223, allocations: 1.065 MB / 484.1 MB, free: 8.68 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/SMEE_Synchronization1.mo:18:3-19:30:writable] Warning: Conditional component ‘ir‘ is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.005838/0.1281, allocations: 1.41 MB / 485.5 MB, free: 7.266 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003076/0.1312, allocations: 0.9021 MB / 486.4 MB, free: 6.367 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007183/0.1384, allocations: 4.993 MB / 491.4 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004494/0.1429, allocations: 2.926 MB / 494.3 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003529/0.1465, allocations: 1.704 MB / 496 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003878/0.1504, allocations: 2.241 MB / 498.3 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009769/0.1514, allocations: 336 kB / 498.6 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001815/0.1532, allocations: 0.5506 MB / 499.1 MB, free: 9.516 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001002/0.1542, allocations: 1.047 MB / 0.4885 GB, free: 8.465 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003013/0.1573, allocations: 2.181 MB / 0.4906 GB, free: 6.273 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007199/0.1645, allocations: 7.255 MB / 0.4977 GB, free: 15 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.1645, allocations: 0 / 0.4977 GB, free: 15 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1645, allocations: 0 / 0.4977 GB, free: 15 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001844/0.1647, allocations: 0 / 0.4977 GB, free: 15 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: 965 * Number of variables: 965 Notification: Performance of Generate backend data structure: time 0.01331/0.178, allocations: 4.955 MB / 0.5025 GB, free: 9.969 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.024e-05/0.1781, allocations: 15.97 kB / 0.5025 GB, free: 9.953 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009442/0.1791, allocations: 0.557 MB / 0.5031 GB, free: 9.387 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005106/0.1842, allocations: 0.96 MB / 0.504 GB, free: 8.422 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005607/0.1898, allocations: 2.65 MB / 0.5066 GB, free: 5.719 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002237/0.1901, allocations: 279.8 kB / 0.5069 GB, free: 5.445 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007209/0.1908, allocations: 371.8 kB / 0.5072 GB, free: 5.082 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007834/0.1986, allocations: 4.772 MB / 0.5119 GB, free: 272 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.34e-05/0.1987, allocations: 4 kB / 0.5119 GB, free: 268 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003172/0.199, allocations: 156 kB / 0.512 GB, free: 112 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001466/0.1992, allocations: 159.4 kB / 0.5122 GB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006408/0.2056, allocations: 4.046 MB / 0.5161 GB, free: 11.9 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1809/0.3865, allocations: 15.81 MB / 0.5316 GB, free: 57.47 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004879/0.3914, allocations: 6.94 MB / 0.5383 GB, free: 52.36 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002221/0.3936, allocations: 1.538 MB / 0.5399 GB, free: 52.34 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006374/0.4, allocations: 4.231 MB / 0.544 GB, free: 51.55 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.507e-05/0.4001, allocations: 48.69 kB / 0.544 GB, free: 51.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 2.605e-06/0.4001, allocations: 0 / 0.544 GB, free: 51.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01092/0.411, allocations: 6.457 MB / 0.5503 GB, free: 49.84 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.23e-05/0.4111, allocations: 72 kB / 0.5504 GB, free: 49.77 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002941/0.414, allocations: 2.232 MB / 0.5526 GB, free: 48.89 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.114e-05/0.4141, allocations: 53.61 kB / 0.5526 GB, free: 48.84 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007197/0.4149, allocations: 1.707 MB / 0.5543 GB, free: 47.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002712/0.4151, allocations: 0.5426 MB / 0.5548 GB, free: 47.12 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004498/0.4156, allocations: 386.3 kB / 0.5552 GB, free: 46.92 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.629e-05/0.4156, allocations: 308.5 kB / 0.5555 GB, free: 46.62 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001035/0.4167, allocations: 0.8276 MB / 0.5563 GB, free: 46.3 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001257/0.4179, allocations: 1.475 MB / 0.5577 GB, free: 45.16 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002391/0.4203, allocations: 2.456 MB / 0.5601 GB, free: 43.39 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.666e-06/0.4204, allocations: 4.469 kB / 0.5601 GB, free: 43.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004038/0.4244, allocations: 2.951 MB / 0.563 GB, free: 41.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.841e-05/0.4244, allocations: 15.38 kB / 0.563 GB, free: 41.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.071e-05/0.4245, allocations: 23.25 kB / 0.5631 GB, free: 41.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007821/0.4253, allocations: 304 kB / 0.5634 GB, free: 41.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001501/0.4268, allocations: 486.4 kB / 0.5638 GB, free: 41.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003481/0.4303, allocations: 4.508 MB / 0.5682 GB, free: 37.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001686/0.432, allocations: 88.95 kB / 0.5683 GB, free: 37.47 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001263/0.4321, allocations: 93.06 kB / 0.5684 GB, free: 37.45 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * 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 (250): * Single equations (assignments): 247 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(2,13,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00171/0.4338, allocations: 1.128 MB / 0.5695 GB, free: 36.69 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004275/0.4342, allocations: 234 kB / 0.5697 GB, free: 36.57 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003378/0.4376, allocations: 2.423 MB / 0.5721 GB, free: 35.06 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.098e-05/0.4377, allocations: 14.69 kB / 0.5721 GB, free: 35.06 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.4377, allocations: 6.031 kB / 0.5721 GB, free: 35.06 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.372e-05/0.4377, allocations: 11.91 kB / 0.5721 GB, free: 35.05 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007156/0.4448, allocations: 5.789 MB / 0.5778 GB, free: 30.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.4449, allocations: 4 kB / 0.5778 GB, free: 30.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001071/0.446, allocations: 283.8 kB / 0.578 GB, free: 29.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00073/0.4467, allocations: 318.3 kB / 0.5783 GB, free: 29.54 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.515e-05/0.4468, allocations: 36.67 kB / 0.5784 GB, free: 29.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004331/0.4511, allocations: 6.447 MB / 0.5847 GB, free: 22.69 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.4512, allocations: 0 / 0.5847 GB, free: 22.69 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004263/0.4554, allocations: 3.514 MB / 0.5881 GB, free: 19.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009511/0.4564, allocations: 0.4942 MB / 0.5886 GB, free: 18.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003126/0.4567, allocations: 36 kB / 0.5886 GB, free: 18.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001043/0.4578, allocations: 63.95 kB / 0.5887 GB, free: 18.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002412/0.458, allocations: 125 kB / 0.5888 GB, free: 18.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.901e-05/0.4581, allocations: 39.98 kB / 0.5888 GB, free: 18.32 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00177/0.4599, allocations: 1.519 MB / 0.5903 GB, free: 16.78 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4599, allocations: 0 / 0.5903 GB, free: 16.78 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002152/0.462, allocations: 0.6562 MB / 0.591 GB, free: 16.12 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.stator.stray.Phi.re,smee.stator.stray.Phi.im,constantTorque.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 {(2,12,100.0%), (1,5,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004445/0.4665, allocations: 4.144 MB / 0.595 GB, free: 11.89 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003186/0.4697, allocations: 2.437 MB / 0.5974 GB, free: 9.418 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.4697, allocations: 0 / 0.5974 GB, free: 9.418 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001581/0.4713, allocations: 1.412 MB / 0.5988 GB, free: 7.969 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002456/0.4738, allocations: 0.5454 MB / 0.5993 GB, free: 7.445 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04619/0.52, allocations: 28.88 MB / 0.6275 GB, free: 7.984 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00256/0.5226, allocations: 2.519 MB / 0.63 GB, free: 5.434 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002043/0.5247, allocations: 0.5077 MB / 0.6305 GB, free: 4.922 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001782/0.5264, allocations: 1.355 MB / 0.6318 GB, free: 3.566 MB / 398.1 MB Notification: Performance of SimCode: time 1.432e-06/0.5265, allocations: 0 / 0.6318 GB, free: 3.566 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08983/0.6163, allocations: 57.6 MB / 0.688 GB, free: 10.37 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001728/0.6165, allocations: 228.1 kB / 0.6883 GB, free: 10.12 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.771/3.388, allocations: 0 / 0.6883 GB, free: 10.12 MB / 462.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3_fmu --startTime=0 --stopTime=0.3 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe 2>&1)