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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005984/0.005984, allocations: 180.7 kB / 7.453 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.08781/0.08781, allocations: 8.699 MB / 16.57 MB, free: 0.4922 MB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.295/2.295, allocations: 221.4 MB / 240.5 MB, free: 8.152 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.001429/0.00143, allocations: 100.7 kB / 293.5 MB, free: 5.488 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2428/0.2443, allocations: 58.68 MB / 352.2 MB, free: 10.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6283/0.8726, allocations: 52.53 MB / 404.7 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7667/1.639, allocations: 116.2 MB / 0.5087 GB, free: 98.21 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005422/1.64, allocations: 75.95 kB / 0.5088 GB, free: 98.21 MB / 378.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.6405/2.281, allocations: 159.7 MB / 0.6648 GB, free: 2.109 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001117/2.281, allocations: 8 kB / 0.6648 GB, free: 2.102 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01323/2.294, allocations: 0.9005 MB / 0.6657 GB, free: 1.195 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4291/2.723, allocations: 3.617 MB / 0.6692 GB, free: 96.88 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005436/2.724, allocations: 119.4 kB / 0.6693 GB, free: 96.88 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002213/2.726, allocations: 218.4 kB / 0.6695 GB, free: 96.88 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01416/2.74, allocations: 3.532 MB / 0.673 GB, free: 96.86 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02164/2.762, allocations: 4.11 MB / 0.677 GB, free: 96.45 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002172/2.762, allocations: 3.906 kB / 0.677 GB, free: 96.44 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001144/2.763, allocations: 3.719 kB / 0.677 GB, free: 96.44 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002844/2.764, allocations: 160 kB / 0.6772 GB, free: 96.43 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04903/2.813, allocations: 15.17 MB / 0.692 GB, free: 92.93 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003584/2.816, allocations: 1.143 MB / 0.6931 GB, free: 92.9 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004522/2.821, allocations: 1.551 MB / 0.6946 GB, free: 92.89 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01549/2.837, allocations: 4.34 MB / 0.6988 GB, free: 92.12 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.229e-05/2.837, allocations: 53.97 kB / 0.6989 GB, free: 92.09 MB / 442.7 MB Notification: Performance of pre-optimization done (n=167): time 7.794e-06/2.837, allocations: 0 / 0.6989 GB, free: 92.09 MB / 442.7 MB Notification: Performance of matching and sorting (n=189): time 0.02152/2.858, allocations: 5.66 MB / 0.7044 GB, free: 90.92 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.774e-05/2.858, allocations: 72.72 kB / 0.7045 GB, free: 90.86 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005422/2.864, allocations: 1.571 MB / 0.706 GB, free: 90.62 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006515/2.865, allocations: 29.02 kB / 0.7061 GB, free: 90.59 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001333/2.866, allocations: 1.403 MB / 0.7074 GB, free: 89.73 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00121/2.867, allocations: 0.6165 MB / 0.708 GB, free: 89.33 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001577/2.867, allocations: 0 / 0.708 GB, free: 89.33 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002436/2.868, allocations: 398 kB / 0.7084 GB, free: 89.02 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002055/2.87, allocations: 0.8684 MB / 0.7093 GB, free: 89.02 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002663/2.872, allocations: 1.604 MB / 0.7108 GB, free: 88.14 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003802/2.876, allocations: 1.222 MB / 0.712 GB, free: 88.12 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-05/2.876, allocations: 7.625 kB / 0.712 GB, free: 88.12 MB / 442.7 MB Notification: Performance of matching and sorting (n=309) (initialization): time 0.01195/2.888, allocations: 2.998 MB / 0.7149 GB, free: 87.81 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.126e-05/2.888, allocations: 3.875 kB / 0.715 GB, free: 87.81 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-05/2.889, allocations: 22.41 kB / 0.715 GB, free: 87.81 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001348/2.89, allocations: 301.3 kB / 0.7153 GB, free: 87.78 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003895/2.894, allocations: 0.5436 MB / 0.7158 GB, free: 87.78 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006471/2.9, allocations: 4.173 MB / 0.7199 GB, free: 85.21 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003875/2.904, allocations: 58.09 kB / 0.7199 GB, free: 85.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007575/2.905, allocations: 102.5 kB / 0.72 GB, free: 85.2 MB / 442.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 (289): * Single equations (assignments): 286 * 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.000943/2.906, allocations: 171.1 kB / 0.7202 GB, free: 85.08 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001206/2.907, allocations: 225.8 kB / 0.7204 GB, free: 84.97 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00789/2.915, allocations: 2.571 MB / 0.7229 GB, free: 84.62 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.179e-05/2.915, allocations: 20.28 kB / 0.7229 GB, free: 84.62 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.53e-05/2.915, allocations: 2.969 kB / 0.7229 GB, free: 84.62 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-05/2.915, allocations: 20.7 kB / 0.723 GB, free: 84.62 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01304/2.928, allocations: 5.78 MB / 0.7286 GB, free: 83.82 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.264e-05/2.928, allocations: 2.656 kB / 0.7286 GB, free: 83.82 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001613/2.93, allocations: 327.9 kB / 0.7289 GB, free: 83.82 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001024/2.931, allocations: 308.4 kB / 0.7292 GB, free: 83.79 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001434/2.931, allocations: 18.23 kB / 0.7292 GB, free: 83.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007317/2.939, allocations: 5.971 MB / 0.7351 GB, free: 79.95 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.043e-05/2.939, allocations: 7.75 kB / 0.7351 GB, free: 79.95 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008238/2.947, allocations: 3.934 MB / 0.7389 GB, free: 78.53 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01383/2.961, allocations: 8.079 MB / 0.7468 GB, free: 74.45 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002963/2.964, allocations: 497.7 kB / 0.7473 GB, free: 74.11 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001027/2.965, allocations: 11.47 kB / 0.7473 GB, free: 74.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002305/2.967, allocations: 48.88 kB / 0.7473 GB, free: 74.1 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004435/2.968, allocations: 103.3 kB / 0.7474 GB, free: 74.09 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002069/2.968, allocations: 57.14 kB / 0.7475 GB, free: 74.07 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.003346/2.971, allocations: 1.155 MB / 0.7486 GB, free: 73.55 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007963/2.979, allocations: 0.6421 MB / 0.7492 GB, free: 73.52 MB / 442.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 (163): * Single equations (assignments): 160 * 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.001441/2.981, allocations: 351.5 kB / 0.7496 GB, free: 73.41 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0096/2.99, allocations: 2.518 MB / 0.752 GB, free: 72.32 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.838e-05/2.991, allocations: 1.938 kB / 0.752 GB, free: 72.32 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00539/2.996, allocations: 1.41 MB / 0.7534 GB, free: 71.62 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006431/3.002, allocations: 392.6 kB / 0.7538 GB, free: 71.51 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03735/3.04, allocations: 5.385 MB / 0.759 GB, free: 69.5 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009235/3.049, allocations: 2.779 MB / 0.7618 GB, free: 68.42 MB / 442.7 MB Notification: Performance of SimCode: time 2.625e-06/3.049, allocations: 1.375 kB / 0.7618 GB, free: 68.42 MB / 442.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)