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/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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001354/0.001354, allocations: 175.2 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04129/0.04129, allocations: 8.7 MB / 21.96 MB, free: 3.367 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.408/1.408, allocations: 221.4 MB / 246 MB, free: 3.551 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001158/0.001158, allocations: 90.31 kB / 299.1 MB, free: 2.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.93e-05/3.949e-05, allocations: 4 kB / 359.6 MB, free: 6.414 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2907/0.2908, allocations: 52.53 MB / 412.2 MB, free: 22.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4769/0.7677, allocations: 117 MB / 0.5167 GB, free: 43.71 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003116/0.7681, allocations: 77.2 kB / 0.5168 GB, free: 43.71 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3512/1.119, allocations: 158 MB / 0.6711 GB, free: 1.621 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.354e-06/1.119, allocations: 3.938 kB / 0.6711 GB, free: 1.617 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003327/1.12, allocations: 87.94 kB / 0.6712 GB, free: 1.531 MB / 458.7 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.3222/1.442, allocations: 3.589 MB / 0.6747 GB, free: 74.62 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.404e-05/1.442, allocations: 10.41 kB / 0.6747 GB, free: 74.62 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002406/1.444, allocations: 0.5542 MB / 0.6752 GB, free: 74.55 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00658/1.451, allocations: 0.8769 MB / 0.6761 GB, free: 74.34 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01107/1.462, allocations: 3.619 MB / 0.6796 GB, free: 73.98 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003151/1.463, allocations: 283.3 kB / 0.6799 GB, free: 73.97 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001303/1.464, allocations: 366.5 kB / 0.6802 GB, free: 73.97 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01233/1.476, allocations: 4.598 MB / 0.6847 GB, free: 73.54 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001051/1.476, allocations: 12.73 kB / 0.6847 GB, free: 73.54 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004388/1.477, allocations: 156.2 kB / 0.6849 GB, free: 73.54 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001581/1.477, allocations: 153.7 kB / 0.685 GB, free: 73.53 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007356/1.484, allocations: 3.69 MB / 0.6886 GB, free: 73.5 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02563/1.51, allocations: 15.77 MB / 0.704 GB, free: 69.85 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005142/1.515, allocations: 6.934 MB / 0.7108 GB, free: 64.64 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002232/1.517, allocations: 1.479 MB / 0.7122 GB, free: 64.62 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007004/1.525, allocations: 4.04 MB / 0.7162 GB, free: 63.79 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.109e-05/1.525, allocations: 49.84 kB / 0.7162 GB, free: 63.74 MB / 458.7 MB Notification: Performance of pre-optimization done (n=135): time 4.879e-06/1.525, allocations: 0 / 0.7162 GB, free: 63.74 MB / 458.7 MB Notification: Performance of matching and sorting (n=157): time 0.01015/1.535, allocations: 5.086 MB / 0.7212 GB, free: 62.48 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.507e-05/1.535, allocations: 66.09 kB / 0.7213 GB, free: 62.42 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003002/1.538, allocations: 1.874 MB / 0.7231 GB, free: 62.17 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001271/1.538, allocations: 55.98 kB / 0.7231 GB, free: 62.14 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009466/1.539, allocations: 1.73 MB / 0.7248 GB, free: 61.31 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003478/1.539, allocations: 0.5388 MB / 0.7254 GB, free: 60.9 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.025e-05/1.539, allocations: 43.88 kB / 0.7254 GB, free: 60.86 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001288/1.54, allocations: 399.5 kB / 0.7258 GB, free: 60.52 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001011/1.541, allocations: 0.7565 MB / 0.7265 GB, free: 60.21 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001383/1.542, allocations: 1.489 MB / 0.728 GB, free: 58.97 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00139/1.543, allocations: 1.039 MB / 0.729 GB, free: 58.57 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.207e-05/1.543, allocations: 7.812 kB / 0.729 GB, free: 58.57 MB / 458.7 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.004248/1.548, allocations: 2.867 MB / 0.7318 GB, free: 57.47 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.054e-05/1.548, allocations: 15.34 kB / 0.7318 GB, free: 57.47 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.757e-05/1.548, allocations: 23.22 kB / 0.7318 GB, free: 57.47 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000727/1.548, allocations: 299 kB / 0.7321 GB, free: 57.38 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00166/1.55, allocations: 0.4915 MB / 0.7326 GB, free: 57.36 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003801/1.554, allocations: 4.445 MB / 0.7369 GB, free: 53.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002075/1.556, allocations: 106 kB / 0.737 GB, free: 53.66 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001909/1.556, allocations: 97.45 kB / 0.7371 GB, free: 53.64 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 107 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (257): * Single equations (assignments): 254 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003764/1.557, allocations: 248.6 kB / 0.7374 GB, free: 53.46 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004268/1.557, allocations: 232.7 kB / 0.7376 GB, free: 53.34 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003745/1.561, allocations: 2.295 MB / 0.7398 GB, free: 52.25 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.107e-05/1.561, allocations: 18.44 kB / 0.7398 GB, free: 52.25 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.866e-06/1.561, allocations: 3.906 kB / 0.7399 GB, free: 52.25 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.612e-05/1.561, allocations: 7.125 kB / 0.7399 GB, free: 52.25 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008184/1.569, allocations: 5.515 MB / 0.7452 GB, free: 49.69 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.037e-06/1.569, allocations: 3.312 kB / 0.7452 GB, free: 49.69 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001169/1.57, allocations: 272 kB / 0.7455 GB, free: 49.68 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007345/1.571, allocations: 311.3 kB / 0.7458 GB, free: 49.57 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001013/1.571, allocations: 34.34 kB / 0.7458 GB, free: 49.55 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004938/1.576, allocations: 6.377 MB / 0.7521 GB, free: 44.24 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/1.576, allocations: 0 / 0.7521 GB, free: 44.24 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004658/1.581, allocations: 3.413 MB / 0.7554 GB, free: 42.45 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001231/1.582, allocations: 488.8 kB / 0.7559 GB, free: 42.11 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003173/1.582, allocations: 34.84 kB / 0.7559 GB, free: 42.08 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001034/1.583, allocations: 66.81 kB / 0.756 GB, free: 42.06 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002646/1.584, allocations: 113.1 kB / 0.7561 GB, free: 42.05 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.061e-05/1.584, allocations: 49.08 kB / 0.7561 GB, free: 42.04 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002104/1.586, allocations: 1.42 MB / 0.7575 GB, free: 41.43 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.81e-07/1.586, allocations: 0 / 0.7575 GB, free: 41.43 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00264/1.589, allocations: 0.6961 MB / 0.7582 GB, free: 41.36 MB / 458.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (131): * Single equations (assignments): 128 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004887/1.593, allocations: 4.679 MB / 0.7627 GB, free: 38.63 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003253/1.597, allocations: 2.316 MB / 0.765 GB, free: 37.6 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/1.597, allocations: 0 / 0.765 GB, free: 37.6 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001737/1.599, allocations: 1.339 MB / 0.7663 GB, free: 36.87 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002707/1.601, allocations: 0.5377 MB / 0.7668 GB, free: 36.71 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01195/1.613, allocations: 6.134 MB / 0.7728 GB, free: 34.34 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001982/1.615, allocations: 2.587 MB / 0.7754 GB, free: 33.24 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002031/1.617, allocations: 0.5039 MB / 0.7759 GB, free: 33.17 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001478/1.619, allocations: 1.344 MB / 0.7772 GB, free: 32.06 MB / 458.7 MB Notification: Performance of SimCode: time 1.142e-06/1.619, allocations: 0 / 0.7772 GB, free: 32.06 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08872/1.708, allocations: 59.14 MB / 0.8349 GB, free: 11.27 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002018/1.708, allocations: 190.1 kB / 0.8351 GB, free: 11.03 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.967/5.675, allocations: 0 / 0.8351 GB, free: 11.03 MB / 474.7 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/linux/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)