Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Machines.EquivalentCircuit.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.Machines.EquivalentCircuit,fileNamePrefix="HanserModelica_HanserModelica_Machines_EquivalentCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Machines.EquivalentCircuit,fileNamePrefix="HanserModelica_HanserModelica_Machines_EquivalentCircuit",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.009148/0.009148, allocations: 179.5 kB / 7.456 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05557/0.05557, allocations: 8.71 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.256/2.256, allocations: 221.4 MB / 240.5 MB, free: 8.148 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.001483/0.001483, allocations: 87.12 kB / 293.5 MB, free: 5.488 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2138/0.2154, allocations: 58.68 MB / 352.2 MB, free: 10.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5035/0.7189, allocations: 52.53 MB / 404.7 MB, free: 26.81 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2016/0.9206, allocations: 101.3 MB / 0.4941 GB, free: 5.371 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003305/0.921, allocations: 68.59 kB / 0.4942 GB, free: 5.305 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: 3006 * Number of variables: 3006 Notification: Performance of Generate backend data structure: time 2.515/3.436, allocations: 372.4 MB / 0.8579 GB, free: 38.67 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.904e-05/3.436, allocations: 10.97 kB / 0.8579 GB, free: 38.67 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06172/3.498, allocations: 4.914 MB / 0.8627 GB, free: 38.07 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03394/3.532, allocations: 7.021 MB / 0.8696 GB, free: 37.2 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001238/3.533, allocations: 340.5 kB / 0.8699 GB, free: 37.19 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009967/3.543, allocations: 0.5885 MB / 0.8705 GB, free: 37.19 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04961/3.593, allocations: 13.91 MB / 0.884 GB, free: 37.14 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06977/3.663, allocations: 15.9 MB / 0.8996 GB, free: 35.94 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007539/3.663, allocations: 11.19 kB / 0.8996 GB, free: 35.93 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006153/3.67, allocations: 7.25 kB / 0.8996 GB, free: 35.93 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001524/3.671, allocations: 0.8585 MB / 0.9004 GB, free: 35.9 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1822/3.853, allocations: 52.02 MB / 0.9512 GB, free: 18.52 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01958/3.873, allocations: 6.266 MB / 0.9573 GB, free: 16.59 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01104/3.884, allocations: 3.817 MB / 0.9611 GB, free: 14.82 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009516/3.885, allocations: 201.2 kB / 0.9613 GB, free: 14.64 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.953e-05/3.885, allocations: 91.92 kB / 0.9614 GB, free: 14.54 MB / 458.7 MB Notification: Performance of pre-optimization done (n=504): time 9.798e-06/3.885, allocations: 0 / 0.9614 GB, free: 14.54 MB / 458.7 MB Notification: Performance of matching and sorting (n=504): time 0.02283/3.908, allocations: 7.396 MB / 0.9686 GB, free: 8.234 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/3.908, allocations: 133.5 kB / 0.9687 GB, free: 8.082 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01128/3.92, allocations: 2.976 MB / 0.9716 GB, free: 5.492 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001638/3.921, allocations: 25.7 kB / 0.9716 GB, free: 5.461 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00373/3.925, allocations: 3.997 MB / 0.9755 GB, free: 1.941 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003128/3.928, allocations: 1.634 MB / 0.9771 GB, free: 448 kB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001099/3.929, allocations: 0 / 0.9771 GB, free: 448 kB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0007745/3.93, allocations: 0.5911 MB / 0.9777 GB, free: 15.92 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01212/3.942, allocations: 3.545 MB / 0.9812 GB, free: 12.82 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01663/3.959, allocations: 5.831 MB / 0.9869 GB, free: 6.527 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01488/3.974, allocations: 5.11 MB / 0.9919 GB, free: 2.355 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002982/3.974, allocations: 27.94 kB / 0.9919 GB, free: 2.328 MB / 474.7 MB Notification: Performance of matching and sorting (n=875) (initialization): time 0.0486/4.023, allocations: 10.58 MB / 1.002 GB, free: 9.633 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.721e-05/4.023, allocations: 7.797 kB / 1.002 GB, free: 9.629 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000349/4.024, allocations: 77.22 kB / 1.002 GB, free: 9.555 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006924/4.031, allocations: 1.109 MB / 1.003 GB, free: 8.668 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01422/4.045, allocations: 1.483 MB / 1.005 GB, free: 7.492 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.8192/4.864, allocations: 12.04 MB / 1.017 GB, free: 90.37 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01257/4.877, allocations: 0.687 MB / 1.017 GB, free: 90.37 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00361/4.88, allocations: 322.5 kB / 1.018 GB, free: 90.37 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 342 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (789): * Single equations (assignments): 777 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 15,(1,100.0%) 15,(1,100.0%) 15,(4,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005785/4.886, allocations: 316.4 kB / 1.018 GB, free: 90.27 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002712/4.889, allocations: 397.2 kB / 1.018 GB, free: 90.27 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04071/4.93, allocations: 8.721 MB / 1.027 GB, free: 90.04 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02827/4.958, allocations: 7.111 MB / 1.034 GB, free: 89.82 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000112/4.958, allocations: 20.12 kB / 1.034 GB, free: 89.82 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002762/4.959, allocations: 22.92 kB / 1.034 GB, free: 89.82 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08027/5.039, allocations: 17.32 MB / 1.051 GB, free: 88.23 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001102/5.039, allocations: 15.53 kB / 1.051 GB, free: 88.22 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009213/5.048, allocations: 0.9369 MB / 1.052 GB, free: 88.22 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005187/5.054, allocations: 0.9628 MB / 1.053 GB, free: 88.19 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002446/5.056, allocations: 58.3 kB / 1.053 GB, free: 88.19 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02176/5.078, allocations: 11.37 MB / 1.064 GB, free: 82.98 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.077e-05/5.078, allocations: 21.59 kB / 1.064 GB, free: 82.98 MB / 490.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04234/5.12, allocations: 14.67 MB / 1.078 GB, free: 79.67 MB / 490.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04938/5.17, allocations: 19.94 MB / 1.098 GB, free: 75.93 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005986/5.176, allocations: 1.193 MB / 1.099 GB, free: 75.62 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002788/5.179, allocations: 29.17 kB / 1.099 GB, free: 75.62 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007407/5.186, allocations: 209.9 kB / 1.099 GB, free: 75.62 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002359/5.189, allocations: 323.4 kB / 1.099 GB, free: 75.6 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009809/5.19, allocations: 167.2 kB / 1.099 GB, free: 75.6 MB / 490.8 MB Notification: Performance of sort global known variables: time 0.006225/5.196, allocations: 2.189 MB / 1.102 GB, free: 75.46 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.02253/5.218, allocations: 2.461 MB / 1.104 GB, free: 74.9 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 2 (main_e.plug_p.reference.gamma,converter_m.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (507): * Single equations (assignments): 495 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 13,(1,100.0%) 13,(1,100.0%) 13,(4,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003972/5.223, allocations: 258.5 kB / 1.104 GB, free: 74.8 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.03014/5.253, allocations: 8.87 MB / 1.113 GB, free: 74.22 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 3.651e-05/5.253, allocations: 2.469 kB / 1.113 GB, free: 74.22 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01473/5.268, allocations: 4.32 MB / 1.117 GB, free: 73.79 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009268/5.277, allocations: 0.6784 MB / 1.118 GB, free: 73.78 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07889/5.356, allocations: 16.45 MB / 1.134 GB, free: 69.51 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.03583/5.392, allocations: 7.569 MB / 1.141 GB, free: 65.31 MB / 490.8 MB Notification: Performance of SimCode: time 3.957e-06/5.392, allocations: 3.172 kB / 1.141 GB, free: 65.31 MB / 490.8 MB (rm -f HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe ; mkfifo HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe >> ../files/HanserModelica_HanserModelica.Machines.EquivalentCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Machines_EquivalentCircuit_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Machines_EquivalentCircuit.fmu > HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe 2>&1)