Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.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_Synchronization2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2",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.001569/0.001568, 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.369/1.369, allocations: 222.9 MB / 239.3 MB, free: 4.598 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.001397/0.001397, allocations: 196.4 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.03552/0.03552, allocations: 8.798 MB / 348.5 MB, free: 4.707 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001741/0.001741, allocations: 82.5 kB / 411.2 MB, free: 42.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08178/0.08354, allocations: 51.56 MB / 462.8 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.01722/0.1008, allocations: 15.81 MB / 478.6 MB, free: 14.38 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009463/0.1103, allocations: 5.282 MB / 483.8 MB, free: 9.074 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00241/0.1128, allocations: 91.69 kB / 483.9 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003567/0.1164, allocations: 1.215 MB / 485.1 MB, free: 7.762 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.005095/0.1215, allocations: 1.549 MB / 486.7 MB, free: 6.203 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002587/0.1241, allocations: 0.9651 MB / 487.7 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00697/0.1311, allocations: 4.682 MB / 492.3 MB, free: 0.543 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005766/0.1369, allocations: 3.52 MB / 495.9 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003369/0.1403, allocations: 2.095 MB / 498 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004767/0.1451, allocations: 2.432 MB / 0.4887 GB, free: 8.41 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001403/0.1465, allocations: 0.5703 MB / 0.4892 GB, free: 7.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002272/0.1488, allocations: 0.7849 MB / 0.49 GB, free: 7.055 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001463/0.1503, allocations: 1.297 MB / 0.4913 GB, free: 5.754 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003736/0.154, allocations: 2.443 MB / 0.4936 GB, free: 3.301 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00722/0.1612, allocations: 7.447 MB / 0.5009 GB, free: 11.83 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1613, allocations: 0 / 0.5009 GB, free: 11.83 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1613, allocations: 0 / 0.5009 GB, free: 11.83 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001104/0.1614, allocations: 4 kB / 0.5009 GB, free: 11.83 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.01086/0.1723, allocations: 4.974 MB / 0.5058 GB, free: 6.781 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.1723, allocations: 8.031 kB / 0.5058 GB, free: 6.773 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000824/0.1731, allocations: 0.557 MB / 0.5063 GB, free: 6.207 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004948/0.1781, allocations: 0.9522 MB / 0.5073 GB, free: 5.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005816/0.1839, allocations: 2.762 MB / 0.51 GB, free: 2.434 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003171/0.1843, allocations: 283.8 kB / 0.5102 GB, free: 2.156 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009687/0.1853, allocations: 367.9 kB / 0.5106 GB, free: 1.797 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009014/0.1943, allocations: 4.765 MB / 0.5152 GB, free: 12.99 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.455e-05/0.1944, allocations: 15.91 kB / 0.5152 GB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004442/0.1948, allocations: 148 kB / 0.5154 GB, free: 12.83 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001402/0.195, allocations: 159.3 kB / 0.5155 GB, free: 12.67 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006893/0.2019, allocations: 4.05 MB / 0.5195 GB, free: 8.617 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2096/0.4115, allocations: 15.73 MB / 0.5349 GB, free: 56.2 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005669/0.4172, allocations: 6.923 MB / 0.5416 GB, free: 51.08 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002525/0.4197, allocations: 1.518 MB / 0.5431 GB, free: 51.06 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0076/0.4274, allocations: 4.171 MB / 0.5472 GB, free: 50.28 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.219e-05/0.4274, allocations: 48.84 kB / 0.5472 GB, free: 50.24 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 5.731e-06/0.4275, allocations: 0 / 0.5472 GB, free: 50.24 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01188/0.4393, allocations: 6.373 MB / 0.5534 GB, free: 47.89 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.053e-05/0.4394, allocations: 67.72 kB / 0.5535 GB, free: 47.82 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003376/0.4428, allocations: 2.186 MB / 0.5556 GB, free: 46.96 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001256/0.443, allocations: 53.67 kB / 0.5557 GB, free: 46.9 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008479/0.4438, allocations: 1.734 MB / 0.5574 GB, free: 45.57 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003313/0.4441, allocations: 0.5457 MB / 0.5579 GB, free: 45.1 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004995/0.4447, allocations: 405.7 kB / 0.5583 GB, free: 44.86 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.513e-05/0.4447, allocations: 305.1 kB / 0.5586 GB, free: 44.56 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001112/0.4458, allocations: 0.8232 MB / 0.5594 GB, free: 44.13 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001369/0.4472, allocations: 1.596 MB / 0.561 GB, free: 42.68 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002651/0.4499, allocations: 2.583 MB / 0.5635 GB, free: 40.75 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.86e-05/0.4499, allocations: 7.938 kB / 0.5635 GB, free: 40.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.004212/0.4541, allocations: 3.041 MB / 0.5665 GB, free: 39.09 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.772e-05/0.4542, allocations: 15.22 kB / 0.5665 GB, free: 39.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.547e-05/0.4542, allocations: 22.62 kB / 0.5665 GB, free: 39.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007477/0.455, allocations: 301.5 kB / 0.5668 GB, free: 38.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001592/0.4566, allocations: 0.5025 MB / 0.5673 GB, free: 38.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003611/0.4602, allocations: 4.87 MB / 0.572 GB, free: 34.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001919/0.4621, allocations: 100.1 kB / 0.5721 GB, free: 34.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001543/0.4623, allocations: 106 kB / 0.5722 GB, free: 34.42 MB / 366.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.001571/0.4639, allocations: 1.139 MB / 0.5733 GB, free: 33.65 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003931/0.4643, allocations: 236.5 kB / 0.5736 GB, free: 33.53 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003297/0.4676, allocations: 2.402 MB / 0.5759 GB, free: 32.03 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.129e-05/0.4676, allocations: 21.38 kB / 0.5759 GB, free: 32.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.4676, allocations: 3.438 kB / 0.5759 GB, free: 32.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.306e-05/0.4676, allocations: 11.97 kB / 0.5759 GB, free: 32.01 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007149/0.4748, allocations: 5.702 MB / 0.5815 GB, free: 26.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.083e-06/0.4748, allocations: 8.188 kB / 0.5815 GB, free: 26.26 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001075/0.4759, allocations: 268.7 kB / 0.5818 GB, free: 26 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006865/0.4766, allocations: 319.5 kB / 0.5821 GB, free: 25.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.698e-05/0.4767, allocations: 35.98 kB / 0.5821 GB, free: 25.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004891/0.4816, allocations: 7.036 MB / 0.589 GB, free: 18.23 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.4816, allocations: 0 / 0.589 GB, free: 18.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004409/0.486, allocations: 3.486 MB / 0.5924 GB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00108/0.4871, allocations: 490.2 kB / 0.5929 GB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005456/0.4877, allocations: 32 kB / 0.5929 GB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001173/0.4889, allocations: 67.95 kB / 0.5929 GB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002452/0.4891, allocations: 121 kB / 0.5931 GB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.323e-05/0.4892, allocations: 47.98 kB / 0.5931 GB, free: 13.89 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001792/0.491, allocations: 1.468 MB / 0.5945 GB, free: 12.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.491, allocations: 0 / 0.5945 GB, free: 12.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002281/0.4933, allocations: 0.6525 MB / 0.5952 GB, free: 11.76 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.004502/0.4978, allocations: 4.117 MB / 0.5992 GB, free: 7.551 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005954/0.5038, allocations: 3.032 MB / 0.6022 GB, free: 4.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.592e-06/0.5039, allocations: 1.938 kB / 0.6022 GB, free: 4.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001881/0.5057, allocations: 1.409 MB / 0.6035 GB, free: 3.051 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003071/0.5088, allocations: 0.5735 MB / 0.6041 GB, free: 2.492 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03968/0.5485, allocations: 27.04 MB / 0.6305 GB, free: 4.926 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002843/0.5514, allocations: 2.519 MB / 0.633 GB, free: 2.375 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002012/0.5535, allocations: 0.5157 MB / 0.6335 GB, free: 1.855 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001844/0.5553, allocations: 1.355 MB / 0.6348 GB, free: 0.5 MB / 398.1 MB Notification: Performance of SimCode: time 7.41e-07/0.5553, allocations: 0 / 0.6348 GB, free: 0.5 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1417/0.697, allocations: 58.43 MB / 0.6918 GB, free: 6.473 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.32/11.02, allocations: 11.94 kB / 0.6919 GB, free: 6.461 MB / 462.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2_fmu --startTime=0 --stopTime=0.3 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe 2>&1)