Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.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/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",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.001058/0.001058, allocations: 181.4 kB / 8.136 MB, free: 2.211 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.124/1.124, allocations: 221.4 MB / 229.9 MB, free: 3 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009376/0.0009379, allocations: 97.41 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08908/0.09005, allocations: 55.82 MB / 336.6 MB, free: 9.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1727/0.2628, allocations: 50.38 MB / 387 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08122/0.344, allocations: 83.3 MB / 470.3 MB, free: 3.469 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001768/0.3442, allocations: 72.73 kB / 470.4 MB, free: 3.398 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.03033/0.3746, allocations: 11.78 MB / 482.1 MB, free: 7.594 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.3746, allocations: 12 kB / 482.2 MB, free: 7.582 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001728/0.3748, allocations: 63.25 kB / 482.2 MB, free: 7.52 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006816/0.3755, allocations: 409.6 kB / 482.6 MB, free: 7.078 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.775e-05/0.3756, allocations: 12 kB / 482.6 MB, free: 7.066 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.335e-05/0.3756, allocations: 20 kB / 482.6 MB, free: 7.047 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005152/0.3762, allocations: 269.7 kB / 482.9 MB, free: 6.781 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005932/0.3768, allocations: 372.7 kB / 483.3 MB, free: 6.395 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.3768, allocations: 3.938 kB / 483.3 MB, free: 6.391 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.623e-05/0.3768, allocations: 0.75 kB / 483.3 MB, free: 6.391 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.133e-05/0.3768, allocations: 8 kB / 483.3 MB, free: 6.383 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002495/0.3793, allocations: 1.666 MB / 484.9 MB, free: 4.629 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004399/0.3798, allocations: 301.3 kB / 485.2 MB, free: 4.324 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002409/0.38, allocations: 168.1 kB / 485.4 MB, free: 4.16 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.433e-05/0.3801, allocations: 4 kB / 485.4 MB, free: 4.156 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003179/0.3804, allocations: 230.1 kB / 485.6 MB, free: 3.902 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 4.067e-06/0.3804, allocations: 8 kB / 485.6 MB, free: 3.895 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.0008708/0.3813, allocations: 402.5 kB / 486 MB, free: 3.484 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.921e-05/0.3814, allocations: 191.9 kB / 486.2 MB, free: 3.254 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005038/0.3819, allocations: 413 kB / 486.6 MB, free: 2.84 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.226e-05/0.3819, allocations: 25.7 kB / 486.7 MB, free: 2.809 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/0.3821, allocations: 208.3 kB / 486.9 MB, free: 2.602 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.405e-05/0.3822, allocations: 114.3 kB / 487 MB, free: 2.488 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.773e-05/0.3822, allocations: 0 / 487 MB, free: 2.488 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.3823, allocations: 358.8 kB / 487.3 MB, free: 2.129 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001865/0.3825, allocations: 108.9 kB / 487.4 MB, free: 2.023 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002406/0.3827, allocations: 196.4 kB / 487.6 MB, free: 1.801 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001928/0.3829, allocations: 113.5 kB / 487.7 MB, free: 1.691 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3829, allocations: 3.938 kB / 487.7 MB, free: 1.688 MB / 362.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0006422/0.3836, allocations: 417.5 kB / 488.1 MB, free: 1.262 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.228e-05/0.3836, allocations: 4 kB / 488.1 MB, free: 1.258 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.3836, allocations: 4 kB / 488.1 MB, free: 1.254 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004936/0.3841, allocations: 151.3 kB / 488.3 MB, free: 1.094 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002469/0.3844, allocations: 43.91 kB / 488.3 MB, free: 1.051 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004033/0.3884, allocations: 5.327 MB / 493.7 MB, free: 11.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003663/0.3888, allocations: 55.72 kB / 493.7 MB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.078e-05/0.3889, allocations: 12.06 kB / 493.7 MB, free: 11.2 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.booleanStep1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.IdealThyristor1.off,IdealThyristor1.off,IdealGTOThyristor1.off,IdealGTOThyristor1.fire,booleanStep1.combiTimeTable.nextTimeEvent,$PRE.booleanStep1.combiTimeTable.nextTimeEventScaled,booleanStep1.combiTimeTable.nextTimeEventScaled,$PRE.IdealThyristor2.off,IdealThyristor2.off,IdealGTOThyristor2.off,IdealGTOThyristor2.fire,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 30 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001265/0.389, allocations: 123 kB / 493.9 MB, free: 11.07 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.521e-05/0.3891, allocations: 47.44 kB / 493.9 MB, free: 11.03 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008694/0.3899, allocations: 445 kB / 494.3 MB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.151e-06/0.39, allocations: 8 kB / 494.3 MB, free: 10.56 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/0.39, allocations: 3.906 kB / 494.3 MB, free: 10.56 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.39, allocations: 4.031 kB / 494.3 MB, free: 10.55 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004922/0.3905, allocations: 441.7 kB / 494.8 MB, free: 10.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.3905, allocations: 0 / 494.8 MB, free: 10.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001476/0.3907, allocations: 35.92 kB / 494.8 MB, free: 10.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004073/0.3911, allocations: 143.3 kB / 495 MB, free: 9.898 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.837e-05/0.3911, allocations: 8 kB / 495 MB, free: 9.891 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00417/0.3953, allocations: 5.317 MB / 0.4886 GB, free: 4.113 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/0.3953, allocations: 3.938 kB / 0.4886 GB, free: 4.109 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008162/0.3961, allocations: 459.5 kB / 0.489 GB, free: 3.629 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008697/0.397, allocations: 0.8203 MB / 0.4898 GB, free: 2.773 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000265/0.3973, allocations: 164.4 kB / 0.49 GB, free: 2.594 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.583e-05/0.3974, allocations: 7.891 kB / 0.49 GB, free: 2.586 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003329/0.3977, allocations: 35.92 kB / 0.49 GB, free: 2.551 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.215e-05/0.3978, allocations: 35.94 kB / 0.49 GB, free: 2.516 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.677e-05/0.3979, allocations: 11.98 kB / 0.49 GB, free: 2.504 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003518/0.3982, allocations: 315.2 kB / 0.4903 GB, free: 2.199 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001123/0.3994, allocations: 167.5 kB / 0.4905 GB, free: 2.035 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,IdealThyristor1.off,IdealGTOThyristor1.off,IdealGTOThyristor1.fire,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,IdealGTOThyristor2.off,IdealGTOThyristor2.fire,booleanPulse.pulseStart) * Number of discrete states: 4 (IdealThyristor1.off,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007186/0.4001, allocations: 322.5 kB / 0.4908 GB, free: 1.801 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009807/0.4011, allocations: 0.7056 MB / 0.4915 GB, free: 1.055 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.4011, allocations: 192 / 0.4915 GB, free: 1.055 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005831/0.4017, allocations: 0.5652 MB / 0.492 GB, free: 460 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005129/0.4022, allocations: 90.08 kB / 0.4921 GB, free: 376 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1017/0.5039, allocations: 0.6443 MB / 0.4928 GB, free: 134.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003849/0.5043, allocations: 0.8895 MB / 0.4936 GB, free: 134.1 MB / 378.7 MB Notification: Performance of SimCode: time 9.12e-07/0.5043, allocations: 0 / 0.4936 GB, free: 134.1 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1)