Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.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_ShortCircuit3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_ShortCircuit3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit3",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.007402/0.007402, allocations: 180 kB / 7.458 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.07218/0.07218, allocations: 8.703 MB / 16.58 MB, free: 436 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.139/2.139, allocations: 221.4 MB / 240.5 MB, free: 8.16 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.001753/0.001753, allocations: 108.5 kB / 293.5 MB, free: 5.488 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2303/0.2321, allocations: 58.66 MB / 352.2 MB, free: 10.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5152/0.7474, allocations: 52.54 MB / 404.7 MB, free: 26.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6882/1.436, allocations: 116.3 MB / 0.5088 GB, free: 98.13 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003476/1.436, allocations: 78.58 kB / 0.5088 GB, free: 98.13 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: 962 * Number of variables: 962 Notification: Performance of Generate backend data structure: time 0.5955/2.032, allocations: 157.6 MB / 0.6628 GB, free: 4.195 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.71e-05/2.032, allocations: 8 kB / 0.6628 GB, free: 4.188 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01066/2.043, allocations: 0.8735 MB / 0.6637 GB, free: 3.309 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4/2.443, allocations: 3.547 MB / 0.6671 GB, free: 97 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004937/2.443, allocations: 118 kB / 0.6672 GB, free: 97 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002233/2.445, allocations: 213.8 kB / 0.6674 GB, free: 97 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01298/2.458, allocations: 3.419 MB / 0.6708 GB, free: 96.98 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01847/2.477, allocations: 4.048 MB / 0.6747 GB, free: 96.55 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002211/2.477, allocations: 1.688 kB / 0.6747 GB, free: 96.55 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00136/2.479, allocations: 3.875 kB / 0.6747 GB, free: 96.55 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000281/2.479, allocations: 153.2 kB / 0.6749 GB, free: 96.54 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05532/2.534, allocations: 15.03 MB / 0.6896 GB, free: 93.05 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0029/2.537, allocations: 1.034 MB / 0.6906 GB, free: 93.04 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003737/2.541, allocations: 1.418 MB / 0.692 GB, free: 93.02 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01234/2.553, allocations: 4.219 MB / 0.6961 GB, free: 91.96 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.166e-05/2.554, allocations: 48.59 kB / 0.6961 GB, free: 91.93 MB / 442.7 MB Notification: Performance of pre-optimization done (n=149): time 7.013e-06/2.554, allocations: 0 / 0.6961 GB, free: 91.93 MB / 442.7 MB Notification: Performance of matching and sorting (n=153): time 0.01491/2.569, allocations: 4.101 MB / 0.7001 GB, free: 90.87 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.888e-05/2.569, allocations: 67.69 kB / 0.7002 GB, free: 90.8 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004106/2.573, allocations: 1.381 MB / 0.7015 GB, free: 90.64 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003661/2.573, allocations: 25.7 kB / 0.7016 GB, free: 90.61 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001489/2.575, allocations: 1.386 MB / 0.7029 GB, free: 89.95 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009497/2.576, allocations: 0.4994 MB / 0.7034 GB, free: 89.62 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001325/2.576, allocations: 2.781 kB / 0.7034 GB, free: 89.62 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002793/2.576, allocations: 385.6 kB / 0.7038 GB, free: 89.31 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00191/2.578, allocations: 0.6627 MB / 0.7044 GB, free: 89.3 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002351/2.58, allocations: 1.333 MB / 0.7057 GB, free: 88.48 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003237/2.584, allocations: 0.9576 MB / 0.7067 GB, free: 88.46 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-05/2.584, allocations: 7.688 kB / 0.7067 GB, free: 88.46 MB / 442.7 MB Notification: Performance of matching and sorting (n=262) (initialization): time 0.008154/2.592, allocations: 2.358 MB / 0.709 GB, free: 88.19 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.396e-05/2.592, allocations: 3.625 kB / 0.709 GB, free: 88.19 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.713e-05/2.592, allocations: 25.06 kB / 0.709 GB, free: 88.19 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007211/2.593, allocations: 150.9 kB / 0.7091 GB, free: 88.18 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003549/2.596, allocations: 487.3 kB / 0.7096 GB, free: 88.18 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003593/2.6, allocations: 1.884 MB / 0.7114 GB, free: 86.89 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004139/2.604, allocations: 46.44 kB / 0.7115 GB, free: 86.88 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007114/2.605, allocations: 91.03 kB / 0.7116 GB, free: 86.88 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (253): * Single equations (assignments): 251 * 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: 1 * 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: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001345/2.606, allocations: 172.8 kB / 0.7117 GB, free: 86.76 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00148/2.608, allocations: 196.2 kB / 0.7119 GB, free: 86.66 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007972/2.616, allocations: 2.059 MB / 0.7139 GB, free: 86.34 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.059e-05/2.616, allocations: 13.69 kB / 0.714 GB, free: 86.34 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-05/2.616, allocations: 7.5 kB / 0.714 GB, free: 86.34 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.639e-05/2.616, allocations: 6.609 kB / 0.714 GB, free: 86.34 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01696/2.633, allocations: 4.796 MB / 0.7186 GB, free: 85.54 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.621e-05/2.633, allocations: 5.344 kB / 0.7187 GB, free: 85.54 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001899/2.635, allocations: 229.1 kB / 0.7189 GB, free: 85.54 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001683/2.637, allocations: 323.1 kB / 0.7192 GB, free: 85.51 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002405/2.637, allocations: 20.91 kB / 0.7192 GB, free: 85.51 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009715/2.647, allocations: 6.139 MB / 0.7252 GB, free: 81.66 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-05/2.647, allocations: 10.88 kB / 0.7252 GB, free: 81.66 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008149/2.655, allocations: 3.075 MB / 0.7282 GB, free: 80.92 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01532/2.67, allocations: 6.074 MB / 0.7341 GB, free: 79.78 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002428/2.673, allocations: 428.3 kB / 0.7345 GB, free: 79.59 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007678/2.674, allocations: 3.938 kB / 0.7346 GB, free: 79.59 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001884/2.676, allocations: 41.03 kB / 0.7346 GB, free: 79.59 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003096/2.676, allocations: 81.06 kB / 0.7347 GB, free: 79.59 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001665/2.676, allocations: 38.22 kB / 0.7347 GB, free: 79.59 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.002872/2.679, allocations: 1.018 MB / 0.7357 GB, free: 79.48 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006762/2.686, allocations: 0.5819 MB / 0.7363 GB, free: 79.48 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (smee.phiMechanical,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 117 * 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 {(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00103/2.687, allocations: 345.8 kB / 0.7366 GB, free: 79.38 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005402/2.692, allocations: 1.855 MB / 0.7384 GB, free: 79.16 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.122e-05/2.692, allocations: 0 / 0.7384 GB, free: 79.16 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003008/2.696, allocations: 1.148 MB / 0.7395 GB, free: 78.6 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004591/2.7, allocations: 404.3 kB / 0.7399 GB, free: 78.5 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0257/2.726, allocations: 4.787 MB / 0.7446 GB, free: 76.68 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006776/2.733, allocations: 2.632 MB / 0.7472 GB, free: 75.62 MB / 442.7 MB Notification: Performance of SimCode: time 2.334e-06/2.733, allocations: 0 / 0.7472 GB, free: 75.62 MB / 442.7 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit3_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.pipe 2>&1)