Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",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 trunk/package.mo): time 0.001233/0.001233, allocations: 195.4 kB / 8.539 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.114/1.114, allocations: 225.5 MB / 234.4 MB, free: 3.434 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000858/0.0008581, allocations: 93.56 kB / 286.3 MB, free: 5.246 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09102/0.0919, allocations: 56.9 MB / 343.2 MB, free: 8.656 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08096/0.1729, allocations: 51.47 MB / 394.7 MB, free: 5.133 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2157/0.3887, allocations: 104.3 MB / 499 MB, free: 5.031 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001832/0.3889, allocations: 68.78 kB / 499.1 MB, free: 5 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.3858/0.7747, allocations: 141.9 MB / 0.6259 GB, free: 78.01 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.054e-05/0.7747, allocations: 11.88 kB / 0.6259 GB, free: 78.01 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002877/0.775, allocations: 415 kB / 0.6263 GB, free: 77.8 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002829/0.7778, allocations: 2.413 MB / 0.6287 GB, free: 77.13 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.979e-05/0.7779, allocations: 19.14 kB / 0.6287 GB, free: 77.13 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001054/0.778, allocations: 40.47 kB / 0.6287 GB, free: 77.12 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008887/0.7789, allocations: 0.6822 MB / 0.6294 GB, free: 77.12 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008871/0.7798, allocations: 0.7183 MB / 0.6301 GB, free: 77 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.536e-05/0.7798, allocations: 0 / 0.6301 GB, free: 77 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.58e-05/0.7799, allocations: 0 / 0.6301 GB, free: 77 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.91e-05/0.7799, allocations: 23 kB / 0.6301 GB, free: 77 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005145/0.785, allocations: 3.178 MB / 0.6332 GB, free: 75.85 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004576/0.7855, allocations: 355.3 kB / 0.6336 GB, free: 75.68 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000638/0.7862, allocations: 0.5331 MB / 0.6341 GB, free: 75.44 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02872/0.8149, allocations: 36.63 MB / 0.6698 GB, free: 45.81 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003762/0.8153, allocations: 286.4 kB / 0.6701 GB, free: 45.7 MB / 442.7 MB Notification: Performance of pre-optimization done (n=49): time 2.103e-06/0.8153, allocations: 4.938 kB / 0.6701 GB, free: 45.69 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.0009978/0.8163, allocations: 0.7935 MB / 0.6709 GB, free: 45.36 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.783e-05/0.8164, allocations: 269.9 kB / 0.6712 GB, free: 45.04 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002657/0.8191, allocations: 2.442 MB / 0.6735 GB, free: 44.09 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.727e-05/0.8191, allocations: 28.7 kB / 0.6736 GB, free: 44.05 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003511/0.8195, allocations: 0.6589 MB / 0.6742 GB, free: 43.64 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.208e-05/0.8196, allocations: 160.5 kB / 0.6744 GB, free: 43.52 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.874e-05/0.8196, allocations: 7.219 kB / 0.6744 GB, free: 43.51 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 5.237e-05/0.8197, allocations: 342.8 kB / 0.6747 GB, free: 43.19 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002592/0.8199, allocations: 171.1 kB / 0.6749 GB, free: 43.12 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000361/0.8203, allocations: 0.5801 MB / 0.6754 GB, free: 42.5 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003901/0.8207, allocations: 262.5 kB / 0.6757 GB, free: 42.4 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.8207, allocations: 3.469 kB / 0.6757 GB, free: 42.4 MB / 442.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001239/0.8219, allocations: 1.045 MB / 0.6767 GB, free: 41.98 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.149e-05/0.822, allocations: 3.188 kB / 0.6767 GB, free: 41.98 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001066/0.8221, allocations: 80.17 kB / 0.6768 GB, free: 41.98 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.363e-05/0.8221, allocations: 22.56 kB / 0.6768 GB, free: 41.97 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007008/0.8228, allocations: 228.3 kB / 0.677 GB, free: 41.94 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.555e-05/0.8228, allocations: 24.06 kB / 0.677 GB, free: 41.94 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001067/0.8239, allocations: 114.6 kB / 0.6772 GB, free: 41.89 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.7e-05/0.824, allocations: 70.03 kB / 0.6772 GB, free: 41.88 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001322/0.8242, allocations: 138.5 kB / 0.6774 GB, free: 41.74 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002628/0.8244, allocations: 403 kB / 0.6777 GB, free: 41.54 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003312/0.8277, allocations: 1.378 MB / 0.6791 GB, free: 41 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/0.8278, allocations: 9.938 kB / 0.6791 GB, free: 41 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.8278, allocations: 0 / 0.6791 GB, free: 41 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.8278, allocations: 3.906 kB / 0.6791 GB, free: 41 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00252/0.8303, allocations: 2.082 MB / 0.6811 GB, free: 40.07 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.633e-05/0.8304, allocations: 72.75 kB / 0.6812 GB, free: 40.07 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005013/0.8309, allocations: 107.5 kB / 0.6813 GB, free: 40.06 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.569e-06/0.8309, allocations: 3.219 kB / 0.6813 GB, free: 40.06 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.565e-05/0.831, allocations: 33.5 kB / 0.6813 GB, free: 40.05 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.831, allocations: 3.094 kB / 0.6813 GB, free: 40.05 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.831, allocations: 0 / 0.6813 GB, free: 40.05 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001199/0.8322, allocations: 1.188 MB / 0.6825 GB, free: 39.41 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001527/0.8338, allocations: 1.868 MB / 0.6843 GB, free: 38.27 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005642/0.8343, allocations: 0.512 MB / 0.6848 GB, free: 37.91 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003863/0.8347, allocations: 6.375 kB / 0.6848 GB, free: 37.91 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007699/0.8355, allocations: 39.5 kB / 0.6849 GB, free: 37.91 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000121/0.8356, allocations: 59.84 kB / 0.6849 GB, free: 37.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.187e-05/0.8357, allocations: 41.91 kB / 0.685 GB, free: 37.89 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001767/0.8375, allocations: 1.811 MB / 0.6867 GB, free: 37.14 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001739/0.8392, allocations: 0.6472 MB / 0.6874 GB, free: 37.04 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001018/0.8403, allocations: 0.9744 MB / 0.6883 GB, free: 36.75 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.000768/0.841, allocations: 0.6665 MB / 0.689 GB, free: 36.46 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.8411, allocations: 1.375 kB / 0.689 GB, free: 36.46 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004059/0.8415, allocations: 389.5 kB / 0.6893 GB, free: 36.25 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001887/0.8434, allocations: 0.5997 MB / 0.6899 GB, free: 36.04 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004374/0.8477, allocations: 3.27 MB / 0.6931 GB, free: 34.7 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001053/0.8488, allocations: 1.949 MB / 0.695 GB, free: 33.91 MB / 442.7 MB Notification: Performance of SimCode: time 2.71e-07/0.8488, allocations: 0 / 0.695 GB, free: 33.91 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1)