Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Magnetic.TestTransformer.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.Magnetic.TestTransformer,fileNamePrefix="HanserModelica_HanserModelica_Magnetic_TestTransformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Magnetic.TestTransformer,fileNamePrefix="HanserModelica_HanserModelica_Magnetic_TestTransformer",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.006195/0.006194, allocations: 176.5 kB / 7.454 MB, free: 2.316 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0645/0.0645, allocations: 8.707 MB / 16.57 MB, free: 428 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.347/2.347, allocations: 221.4 MB / 240.5 MB, free: 8.195 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.002078/0.002078, allocations: 110.8 kB / 293.5 MB, free: 5.484 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2594/0.2616, allocations: 58.66 MB / 352.2 MB, free: 10.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6251/0.8867, allocations: 52.54 MB / 404.7 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1866/1.073, allocations: 82.59 MB / 487.3 MB, free: 7.992 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005082/1.074, allocations: 64.91 kB / 487.4 MB, free: 7.93 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.04358/1.118, allocations: 10.75 MB / 498.1 MB, free: 13.13 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.86e-05/1.118, allocations: 12 kB / 498.1 MB, free: 13.12 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004423/1.118, allocations: 63.23 kB / 498.2 MB, free: 13.06 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001255/1.12, allocations: 354.7 kB / 498.5 MB, free: 12.68 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.701e-05/1.12, allocations: 19.98 kB / 498.5 MB, free: 12.66 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002068/1.12, allocations: 31.98 kB / 498.6 MB, free: 12.62 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001462/1.121, allocations: 322.5 kB / 498.9 MB, free: 12.31 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00186/1.123, allocations: 416.5 kB / 499.3 MB, free: 11.89 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.125e-05/1.123, allocations: 0 / 499.3 MB, free: 11.89 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.367e-05/1.123, allocations: 0 / 499.3 MB, free: 11.89 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.731e-05/1.123, allocations: 16 kB / 499.3 MB, free: 11.87 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006954/1.13, allocations: 1.868 MB / 0.4894 GB, free: 9.895 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006053/1.131, allocations: 150.3 kB / 0.4896 GB, free: 9.742 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007999/1.132, allocations: 197.5 kB / 0.4898 GB, free: 9.547 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.027e-05/1.132, allocations: 288 / 0.4898 GB, free: 9.547 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.764e-05/1.132, allocations: 42.84 kB / 0.4898 GB, free: 9.496 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 6.372e-06/1.132, allocations: 0 / 0.4898 GB, free: 9.496 MB / 378.7 MB Notification: Performance of matching and sorting (n=49): time 0.005503/1.138, allocations: 1.219 MB / 0.491 GB, free: 8.219 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.802e-05/1.138, allocations: 55.84 kB / 0.4911 GB, free: 8.152 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006838/1.139, allocations: 239.4 kB / 0.4913 GB, free: 7.914 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.234e-05/1.139, allocations: 25.7 kB / 0.4913 GB, free: 7.883 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003101/1.139, allocations: 236.2 kB / 0.4915 GB, free: 7.648 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002523/1.139, allocations: 161.6 kB / 0.4917 GB, free: 7.488 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.41e-05/1.139, allocations: 0 / 0.4917 GB, free: 7.488 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003023/1.14, allocations: 350.8 kB / 0.492 GB, free: 7.137 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004174/1.14, allocations: 121 kB / 0.4921 GB, free: 7.02 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005323/1.141, allocations: 199.2 kB / 0.4923 GB, free: 6.793 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005469/1.141, allocations: 152.8 kB / 0.4925 GB, free: 6.648 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.064e-06/1.141, allocations: 0 / 0.4925 GB, free: 6.648 MB / 378.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001544/1.143, allocations: 480.4 kB / 0.4929 GB, free: 6.164 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.876e-05/1.143, allocations: 12.03 kB / 0.4929 GB, free: 6.152 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.587e-05/1.143, allocations: 0 / 0.4929 GB, free: 6.152 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004803/1.143, allocations: 97.61 kB / 0.493 GB, free: 6.051 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006384/1.144, allocations: 103.9 kB / 0.4931 GB, free: 5.949 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00475/1.149, allocations: 3.108 MB / 0.4962 GB, free: 2.605 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005326/1.149, allocations: 12.05 kB / 0.4962 GB, free: 2.594 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001184/1.149, allocations: 19.98 kB / 0.4962 GB, free: 2.574 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 48 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(2,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000368/1.15, allocations: 132.8 kB / 0.4963 GB, free: 2.438 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002916/1.15, allocations: 31.62 kB / 0.4964 GB, free: 2.406 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002332/1.15, allocations: 43.42 kB / 0.4964 GB, free: 2.355 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.546e-05/1.15, allocations: 4 kB / 0.4964 GB, free: 2.352 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.814e-05/1.15, allocations: 7.906 kB / 0.4964 GB, free: 2.344 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.21e-05/1.15, allocations: 0 / 0.4964 GB, free: 2.344 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005062/1.156, allocations: 1.039 MB / 0.4974 GB, free: 1.246 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.154e-05/1.156, allocations: 0 / 0.4974 GB, free: 1.246 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00103/1.157, allocations: 87.94 kB / 0.4975 GB, free: 1.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005299/1.157, allocations: 97.67 kB / 0.4976 GB, free: 1.059 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.327e-05/1.157, allocations: 4 kB / 0.4976 GB, free: 1.055 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3741/1.531, allocations: 3.099 MB / 0.5006 GB, free: 125.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.187e-06/1.532, allocations: 10.09 kB / 0.5006 GB, free: 125.7 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001359/1.533, allocations: 0.725 MB / 0.5014 GB, free: 125.5 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001622/1.535, allocations: 1.286 MB / 0.5026 GB, free: 124.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001787/1.535, allocations: 153 kB / 0.5028 GB, free: 124.8 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.604e-05/1.535, allocations: 3.281 kB / 0.5028 GB, free: 124.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004005/1.535, allocations: 25.69 kB / 0.5028 GB, free: 124.8 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001337/1.535, allocations: 29.38 kB / 0.5028 GB, free: 124.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.516e-05/1.535, allocations: 19.14 kB / 0.5028 GB, free: 124.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002182/1.536, allocations: 183.2 kB / 0.503 GB, free: 124.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001701/1.537, allocations: 98.38 kB / 0.5031 GB, free: 124.8 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (transformer.converter1.i,transformer.converter1.Phi) * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(2,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002554/1.538, allocations: 106.6 kB / 0.5032 GB, free: 124.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001505/1.539, allocations: 0.57 MB / 0.5038 GB, free: 124.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.553e-06/1.539, allocations: 3.906 kB / 0.5038 GB, free: 124.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009141/1.54, allocations: 426.8 kB / 0.5042 GB, free: 124.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005825/1.541, allocations: 32.39 kB / 0.5042 GB, free: 124.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003261/1.544, allocations: 0.7186 MB / 0.5049 GB, free: 124.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000807/1.545, allocations: 0.892 MB / 0.5058 GB, free: 123.4 MB / 378.7 MB Notification: Performance of SimCode: time 1.653e-06/1.545, allocations: 2.812 kB / 0.5058 GB, free: 123.4 MB / 378.7 MB (rm -f HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe ; mkfifo HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe >> ../files/HanserModelica_HanserModelica.Magnetic.TestTransformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Magnetic_TestTransformer_fmu --startTime=0 --stopTime=0.08 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Magnetic_TestTransformer.fmu > HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe 2>&1)