Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.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_Synchronization1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1",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.00878/0.008785, allocations: 100.8 kB / 15.73 MB, free: 6.016 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.577/1.577, allocations: 222.9 MB / 239.4 MB, free: 4.555 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.001718/0.001718, allocations: 199.3 kB / 289.7 MB, free: 2.277 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03454/0.03454, allocations: 8.805 MB / 348.7 MB, free: 4.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 83.88 kB / 463.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1204, allocations: 51.56 MB / 0.5029 GB, free: 10.01 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.01828/0.1388, allocations: 15.79 MB / 0.5184 GB, free: 10.14 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0119/0.1507, allocations: 5.286 MB / 0.5235 GB, free: 4.836 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003575/0.1543, allocations: 91.69 kB / 0.5236 GB, free: 4.746 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004079/0.1584, allocations: 1.204 MB / 0.5248 GB, free: 3.535 MB / 366.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.005482/0.164, allocations: 1.549 MB / 0.5263 GB, free: 1.977 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002812/0.1668, allocations: 0.9702 MB / 0.5272 GB, free: 1.008 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2698/0.4366, allocations: 4.69 MB / 0.5318 GB, free: 5.629 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00447/0.4411, allocations: 3.521 MB / 0.5353 GB, free: 5.023 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003695/0.4448, allocations: 2.102 MB / 0.5373 GB, free: 4.766 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004315/0.4492, allocations: 2.441 MB / 0.5397 GB, free: 4.34 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001467/0.4506, allocations: 0.5708 MB / 0.5403 GB, free: 4.34 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002706/0.4534, allocations: 0.7767 MB / 0.541 GB, free: 4.34 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001649/0.455, allocations: 1.29 MB / 0.5423 GB, free: 4.191 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005577/0.4606, allocations: 2.442 MB / 0.5447 GB, free: 3.59 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01034/0.471, allocations: 7.502 MB / 0.552 GB, free: 2.758 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.585e-06/0.471, allocations: 5.781 kB / 0.552 GB, free: 2.754 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.471, allocations: 1.156 kB / 0.552 GB, free: 2.754 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002581/0.4713, allocations: 0 / 0.552 GB, free: 2.754 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: 965 * Number of variables: 965 Notification: Performance of Generate backend data structure: time 0.0172/0.4885, allocations: 4.984 MB / 0.5569 GB, free: 15.74 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.24e-05/0.4886, allocations: 8.25 kB / 0.5569 GB, free: 15.74 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00142/0.49, allocations: 0.554 MB / 0.5574 GB, free: 15.36 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005741/0.4958, allocations: 0.9557 MB / 0.5583 GB, free: 14.9 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007131/0.5029, allocations: 2.831 MB / 0.5611 GB, free: 13 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002121/0.5031, allocations: 278 kB / 0.5614 GB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008196/0.504, allocations: 364.5 kB / 0.5617 GB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00948/0.5135, allocations: 4.782 MB / 0.5664 GB, free: 9.945 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.837e-05/0.5136, allocations: 4 kB / 0.5664 GB, free: 9.941 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003817/0.514, allocations: 148.8 kB / 0.5665 GB, free: 9.828 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001475/0.5141, allocations: 161.3 kB / 0.5667 GB, free: 9.805 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007282/0.5214, allocations: 4.045 MB / 0.5706 GB, free: 6.793 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02825/0.5497, allocations: 15.56 MB / 0.5858 GB, free: 7.055 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006984/0.5567, allocations: 6.937 MB / 0.5926 GB, free: 15.25 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002926/0.5597, allocations: 1.503 MB / 0.5941 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009988/0.5697, allocations: 4.149 MB / 0.5981 GB, free: 9.535 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.192e-05/0.5698, allocations: 47.88 kB / 0.5982 GB, free: 9.477 MB / 414.1 MB Notification: Performance of pre-optimization done (n=137): time 5.671e-06/0.5698, allocations: 3.984 kB / 0.5982 GB, free: 9.473 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.01644/0.5862, allocations: 6.373 MB / 0.6044 GB, free: 2.973 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.571e-05/0.5863, allocations: 68.72 kB / 0.6045 GB, free: 2.895 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004111/0.5905, allocations: 2.191 MB / 0.6066 GB, free: 0.6719 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002005/0.5907, allocations: 49.7 kB / 0.6067 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001364/0.5921, allocations: 1.728 MB / 0.6083 GB, free: 14.88 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000594/0.5927, allocations: 0.5447 MB / 0.6089 GB, free: 14.34 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006726/0.5934, allocations: 407.8 kB / 0.6093 GB, free: 13.93 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.5935, allocations: 305.1 kB / 0.6095 GB, free: 13.63 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001351/0.5949, allocations: 0.832 MB / 0.6104 GB, free: 12.79 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002182/0.5971, allocations: 1.586 MB / 0.6119 GB, free: 10.86 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003415/0.6005, allocations: 2.59 MB / 0.6144 GB, free: 8.039 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.118e-05/0.6005, allocations: 8 kB / 0.6144 GB, free: 8.031 MB / 430.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.005345/0.6059, allocations: 3.032 MB / 0.6174 GB, free: 5.117 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.844e-05/0.6059, allocations: 19.94 kB / 0.6174 GB, free: 5.098 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.329e-05/0.606, allocations: 24 kB / 0.6175 GB, free: 5.074 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008407/0.6068, allocations: 299.8 kB / 0.6177 GB, free: 4.773 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001781/0.6086, allocations: 0.4989 MB / 0.6182 GB, free: 4.309 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005354/0.614, allocations: 4.879 MB / 0.623 GB, free: 15.19 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002428/0.6164, allocations: 95.78 kB / 0.6231 GB, free: 15.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001685/0.6166, allocations: 108 kB / 0.6232 GB, free: 14.99 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 111 * 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 (264): * Single equations (assignments): 261 * 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.0026/0.6192, allocations: 1.129 MB / 0.6243 GB, free: 13.88 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005325/0.6197, allocations: 233.1 kB / 0.6245 GB, free: 13.65 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004015/0.6238, allocations: 2.399 MB / 0.6269 GB, free: 11.21 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.504e-05/0.6238, allocations: 16 kB / 0.6269 GB, free: 11.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.959e-06/0.6238, allocations: 7.984 kB / 0.6269 GB, free: 11.19 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.539e-05/0.6238, allocations: 7.969 kB / 0.6269 GB, free: 11.18 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009664/0.6335, allocations: 5.693 MB / 0.6324 GB, free: 5.41 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.374e-06/0.6335, allocations: 128 / 0.6324 GB, free: 5.41 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001189/0.6347, allocations: 285.9 kB / 0.6327 GB, free: 5.145 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008461/0.6356, allocations: 321.8 kB / 0.633 GB, free: 4.828 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001012/0.6357, allocations: 35.98 kB / 0.6331 GB, free: 4.793 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006676/0.6424, allocations: 7.01 MB / 0.6399 GB, free: 13.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.6424, allocations: 0 / 0.6399 GB, free: 13.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005536/0.648, allocations: 3.489 MB / 0.6433 GB, free: 9.844 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001521/0.6495, allocations: 490.2 kB / 0.6438 GB, free: 9.344 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003168/0.6498, allocations: 32 kB / 0.6438 GB, free: 9.312 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001058/0.6509, allocations: 71.89 kB / 0.6439 GB, free: 9.242 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002599/0.6512, allocations: 116.9 kB / 0.644 GB, free: 9.133 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.167e-05/0.6513, allocations: 47.98 kB / 0.644 GB, free: 9.086 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002297/0.6536, allocations: 1.468 MB / 0.6455 GB, free: 7.602 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.844e-06/0.6536, allocations: 0 / 0.6455 GB, free: 7.602 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002512/0.6561, allocations: 0.6562 MB / 0.6461 GB, free: 6.945 MB / 462.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.005453/0.6615, allocations: 4.106 MB / 0.6501 GB, free: 2.777 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004082/0.6656, allocations: 2.465 MB / 0.6525 GB, free: 356 kB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.93e-06/0.6657, allocations: 0 / 0.6525 GB, free: 356 kB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002252/0.6679, allocations: 1.415 MB / 0.6539 GB, free: 14.92 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003001/0.6709, allocations: 0.5697 MB / 0.6545 GB, free: 14.36 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03859/0.7095, allocations: 23.58 MB / 0.6775 GB, free: 5.832 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002341/0.7119, allocations: 2.523 MB / 0.6799 GB, free: 3.277 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001847/0.7138, allocations: 0.5157 MB / 0.6805 GB, free: 2.758 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001746/0.7155, allocations: 1.351 MB / 0.6818 GB, free: 1.406 MB / 494.1 MB Notification: Performance of SimCode: time 1.253e-06/0.7156, allocations: 0 / 0.6818 GB, free: 1.406 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.372/1.088, allocations: 56.36 MB / 0.7368 GB, free: 178.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.24/15.33, allocations: 9.391 kB / 0.7368 GB, free: 178.6 MB / 0.5294 GB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1_fmu --startTime=0 --stopTime=0.3 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe 2>&1)