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/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_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"}) [: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.008848/0.008848, allocations: 185.2 kB / 7.461 MB, free: 2.238 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0795/0.0795, allocations: 8.704 MB / 16.58 MB, free: 404 kB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.526/2.526, allocations: 221.4 MB / 240.5 MB, free: 8.191 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.001668/0.001668, allocations: 88.75 kB / 293.5 MB, free: 7.438 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2545/0.2562, allocations: 58.67 MB / 352.2 MB, free: 12.72 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6347/0.891, allocations: 52.55 MB / 404.7 MB, free: 26.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6898/1.581, allocations: 116.2 MB / 0.5087 GB, free: 98.35 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004461/1.581, allocations: 75.42 kB / 0.5088 GB, free: 98.35 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.644/2.225, allocations: 159.4 MB / 0.6645 GB, free: 2.68 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.985e-05/2.225, allocations: 12 kB / 0.6645 GB, free: 2.668 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01127/2.237, allocations: 0.8966 MB / 0.6653 GB, free: 1.766 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4738/2.711, allocations: 3.619 MB / 0.6689 GB, free: 96.79 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005479/2.711, allocations: 122.4 kB / 0.669 GB, free: 96.79 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002948/2.714, allocations: 218.5 kB / 0.6692 GB, free: 96.79 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01758/2.732, allocations: 3.532 MB / 0.6726 GB, free: 96.77 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02594/2.758, allocations: 4.106 MB / 0.6767 GB, free: 96.36 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003988/2.758, allocations: 7.562 kB / 0.6767 GB, free: 96.36 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00205/2.76, allocations: 7.844 kB / 0.6767 GB, free: 96.36 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002725/2.761, allocations: 157.9 kB / 0.6768 GB, free: 96.35 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05745/2.818, allocations: 15.16 MB / 0.6916 GB, free: 92.84 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003539/2.822, allocations: 1.142 MB / 0.6927 GB, free: 92.82 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004889/2.827, allocations: 1.556 MB / 0.6943 GB, free: 92.8 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01654/2.843, allocations: 4.342 MB / 0.6985 GB, free: 92.04 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001214/2.844, allocations: 53.59 kB / 0.6986 GB, free: 92 MB / 442.7 MB Notification: Performance of pre-optimization done (n=167): time 1.196e-05/2.844, allocations: 0 / 0.6986 GB, free: 92 MB / 442.7 MB Notification: Performance of matching and sorting (n=189): time 0.02268/2.866, allocations: 5.658 MB / 0.7041 GB, free: 90.85 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.739e-05/2.867, allocations: 71.5 kB / 0.7042 GB, free: 90.79 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004688/2.871, allocations: 1.569 MB / 0.7057 GB, free: 90.55 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005551/2.872, allocations: 31.14 kB / 0.7057 GB, free: 90.52 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001313/2.873, allocations: 1.402 MB / 0.7071 GB, free: 89.67 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001006/2.874, allocations: 0.6161 MB / 0.7077 GB, free: 89.26 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00016/2.874, allocations: 3.781 kB / 0.7077 GB, free: 89.26 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002382/2.875, allocations: 397.2 kB / 0.7081 GB, free: 88.96 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001985/2.877, allocations: 0.8717 MB / 0.7089 GB, free: 88.95 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002498/2.879, allocations: 1.594 MB / 0.7105 GB, free: 88.07 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003179/2.882, allocations: 1.225 MB / 0.7117 GB, free: 88.05 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.532e-05/2.882, allocations: 7.75 kB / 0.7117 GB, free: 88.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=309) (initialization): time 0.008682/2.891, allocations: 2.991 MB / 0.7146 GB, free: 87.74 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.253e-05/2.891, allocations: 10.72 kB / 0.7146 GB, free: 87.74 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.611e-05/2.891, allocations: 25.78 kB / 0.7146 GB, free: 87.74 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0013/2.893, allocations: 303.1 kB / 0.7149 GB, free: 87.71 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003736/2.896, allocations: 0.5456 MB / 0.7155 GB, free: 87.71 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006841/2.903, allocations: 4.165 MB / 0.7195 GB, free: 85.14 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004001/2.907, allocations: 60.78 kB / 0.7196 GB, free: 85.13 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007848/2.908, allocations: 110.9 kB / 0.7197 GB, free: 85.13 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.0008392/2.909, allocations: 168 kB / 0.7198 GB, free: 85.02 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001148/2.91, allocations: 224.1 kB / 0.7201 GB, free: 84.9 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007498/2.918, allocations: 2.567 MB / 0.7226 GB, free: 84.56 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.44e-05/2.918, allocations: 24.09 kB / 0.7226 GB, free: 84.56 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.065e-05/2.918, allocations: 3.625 kB / 0.7226 GB, free: 84.56 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.163e-05/2.918, allocations: 11.27 kB / 0.7226 GB, free: 84.55 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01982/2.938, allocations: 5.784 MB / 0.7283 GB, free: 83.75 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.121e-05/2.938, allocations: 0 / 0.7283 GB, free: 83.75 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002295/2.94, allocations: 332.8 kB / 0.7286 GB, free: 83.75 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001277/2.942, allocations: 309.2 kB / 0.7289 GB, free: 83.72 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002218/2.942, allocations: 18.83 kB / 0.7289 GB, free: 83.72 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008109/2.95, allocations: 5.97 MB / 0.7347 GB, free: 79.89 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.656e-06/2.95, allocations: 0 / 0.7347 GB, free: 79.89 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009506/2.959, allocations: 3.93 MB / 0.7386 GB, free: 78.57 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01684/2.976, allocations: 8.083 MB / 0.7464 GB, free: 74.49 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002852/2.979, allocations: 0.4913 MB / 0.7469 GB, free: 74.15 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001422/2.981, allocations: 7.938 kB / 0.7469 GB, free: 74.14 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002714/2.984, allocations: 45.44 kB / 0.747 GB, free: 74.14 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000408/2.984, allocations: 108.1 kB / 0.7471 GB, free: 74.13 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001981/2.984, allocations: 54.86 kB / 0.7471 GB, free: 74.11 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.003716/2.988, allocations: 1.159 MB / 0.7483 GB, free: 73.59 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007173/2.995, allocations: 0.6389 MB / 0.7489 GB, free: 73.56 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.001025/2.996, allocations: 352.5 kB / 0.7492 GB, free: 73.45 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006772/3.003, allocations: 2.52 MB / 0.7517 GB, free: 72.36 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.325e-05/3.003, allocations: 0 / 0.7517 GB, free: 72.36 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004702/3.008, allocations: 1.413 MB / 0.7531 GB, free: 71.66 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005689/3.014, allocations: 388.7 kB / 0.7534 GB, free: 71.55 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02888/3.043, allocations: 5.386 MB / 0.7587 GB, free: 69.54 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008169/3.051, allocations: 2.777 MB / 0.7614 GB, free: 68.46 MB / 442.7 MB Notification: Performance of SimCode: time 7.554e-06/3.051, allocations: 0 / 0.7614 GB, free: 68.46 MB / 442.7 MB (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/linux/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)