Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001273/0.001273, allocations: 118.2 kB / 17.79 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001337/0.001337, allocations: 197.2 kB / 18.73 MB, free: 4.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.386/1.386, allocations: 227.7 MB / 247.2 MB, free: 10.21 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001854/0.001854, allocations: 71.88 kB / 358.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2469/0.2487, allocations: 50.55 MB / 409.1 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.004349/0.2531, allocations: 2.761 MB / 411.8 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001434/0.2546, allocations: 0.7439 MB / 412.6 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001218/0.2548, allocations: 11.94 kB / 412.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000158/0.2549, allocations: 43.58 kB / 412.6 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001652/0.2551, allocations: 79.27 kB / 412.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003539/0.2555, allocations: 115.7 kB / 412.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004675/0.2559, allocations: 386.5 kB / 413.2 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002042/0.2561, allocations: 92.67 kB / 413.3 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002917/0.2564, allocations: 147.5 kB / 413.4 MB, free: 13 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002431/0.2567, allocations: 175.3 kB / 413.6 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.193e-05/0.2568, allocations: 36 kB / 413.6 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.296e-05/0.2569, allocations: 40 kB / 413.7 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.727e-05/0.257, allocations: 71.69 kB / 413.7 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001561/0.2571, allocations: 159.2 kB / 413.9 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004288/0.2576, allocations: 377.5 kB / 414.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.2576, allocations: 0 / 414.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2576, allocations: 3.938 kB / 414.3 MB, free: 12.15 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.262e-06/0.2576, allocations: 0 / 414.3 MB, free: 12.15 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.00154/0.2591, allocations: 0.6879 MB / 415 MB, free: 11.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.2592, allocations: 12.03 kB / 415 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.647e-05/0.2592, allocations: 54.73 kB / 415 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001807/0.2594, allocations: 40.73 kB / 415.1 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003918/0.2598, allocations: 274.9 kB / 415.3 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.805e-05/0.2599, allocations: 20.75 kB / 415.3 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.479e-05/0.2599, allocations: 20.38 kB / 415.4 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007684/0.2607, allocations: 309.9 kB / 415.7 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.2607, allocations: 0 / 415.7 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.621e-05/0.2608, allocations: 12 kB / 415.7 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.2608, allocations: 4 kB / 415.7 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009601/0.2617, allocations: 305.5 kB / 416 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00186/0.2636, allocations: 0.9611 MB / 416.9 MB, free: 9.293 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002914/0.2665, allocations: 0.5059 MB / 417.5 MB, free: 8.777 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006583/0.2672, allocations: 208.7 kB / 417.7 MB, free: 8.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.764e-05/0.2673, allocations: 4 kB / 417.7 MB, free: 8.566 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007348/0.268, allocations: 247 kB / 417.9 MB, free: 8.305 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.833e-06/0.268, allocations: 0 / 417.9 MB, free: 8.305 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001679/0.2697, allocations: 477.5 kB / 418.4 MB, free: 7.832 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/0.2698, allocations: 106.8 kB / 418.5 MB, free: 7.703 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002983/0.2701, allocations: 237 kB / 418.7 MB, free: 7.465 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.263e-05/0.2702, allocations: 33.7 kB / 418.7 MB, free: 7.426 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001502/0.2703, allocations: 160.3 kB / 418.9 MB, free: 7.266 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.379e-05/0.2704, allocations: 79.3 kB / 419 MB, free: 7.188 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001219/0.2706, allocations: 45.94 kB / 419 MB, free: 7.137 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001749/0.2707, allocations: 338.8 kB / 419.3 MB, free: 6.797 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005085/0.2713, allocations: 144.3 kB / 419.5 MB, free: 6.656 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005121/0.2718, allocations: 180.2 kB / 419.7 MB, free: 6.469 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009647/0.2727, allocations: 320.7 kB / 420 MB, free: 6.141 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.2728, allocations: 4 kB / 420 MB, free: 6.137 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001154/0.2739, allocations: 414.9 kB / 420.4 MB, free: 5.719 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.697e-05/0.274, allocations: 29.7 kB / 420.4 MB, free: 5.684 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.274, allocations: 4 kB / 420.4 MB, free: 5.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.274, allocations: 0 / 420.4 MB, free: 5.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001765/0.2758, allocations: 271.6 kB / 420.7 MB, free: 5.414 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005107/0.2809, allocations: 3.439 MB / 424.1 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004243/0.2813, allocations: 59.98 kB / 424.2 MB, free: 1.641 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.809e-05/0.2814, allocations: 11.94 kB / 424.2 MB, free: 1.629 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 (pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002002/0.2816, allocations: 141.8 kB / 424.3 MB, free: 1.48 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.998e-05/0.2816, allocations: 27.81 kB / 424.4 MB, free: 1.453 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.574e-05/0.2817, allocations: 34.11 kB / 424.4 MB, free: 1.418 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.2817, allocations: 11.94 kB / 424.4 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.504e-06/0.2817, allocations: 0 / 424.4 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.2818, allocations: 3.984 kB / 424.4 MB, free: 1.402 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001889/0.2836, allocations: 0.9036 MB / 425.3 MB, free: 448 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.95e-06/0.2837, allocations: 4 kB / 425.3 MB, free: 444 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001695/0.2854, allocations: 251.7 kB / 425.6 MB, free: 192 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.568e-06/0.2854, allocations: 0 / 425.6 MB, free: 192 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.72e-05/0.2854, allocations: 12 kB / 425.6 MB, free: 180 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004969/0.2904, allocations: 3.448 MB / 429 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2904, allocations: 0 / 429 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001603/0.292, allocations: 0.6133 MB / 429.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.664e-05/0.2921, allocations: 101 kB / 429.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.49e-05/0.2922, allocations: 8 kB / 429.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00035/0.2925, allocations: 43.94 kB / 429.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.817e-05/0.2926, allocations: 23.97 kB / 429.8 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.318e-05/0.2927, allocations: 4 kB / 429.8 MB, free: 11.63 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001761/0.2929, allocations: 176.5 kB / 430 MB, free: 11.46 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.2929, allocations: 0 / 430 MB, free: 11.46 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004807/0.2933, allocations: 83.89 kB / 430.1 MB, free: 11.38 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (thyristor_v4_1.vControl,inductor.i) * Number of discrete variables: 3 ($whenCondition1,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00195/0.2953, allocations: 1.158 MB / 431.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002663/0.298, allocations: 0.573 MB / 431.8 MB, free: 9.598 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.298, allocations: 4 kB / 431.8 MB, free: 9.594 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002085/0.3001, allocations: 379.8 kB / 432.2 MB, free: 9.223 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004386/0.3005, allocations: 40.41 kB / 432.2 MB, free: 9.184 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005929/0.3065, allocations: 3.166 MB / 435.4 MB, free: 5.906 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000372/0.3069, allocations: 0.7558 MB / 436.1 MB, free: 5.125 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001388/0.307, allocations: 25.89 kB / 436.2 MB, free: 5.098 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001451/0.3072, allocations: 83.41 kB / 436.2 MB, free: 5.016 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3072, allocations: 0 / 436.2 MB, free: 5.016 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03292/0.3401, allocations: 6.489 MB / 442.7 MB, free: 14.74 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.68/13.02, allocations: 11.7 kB / 442.7 MB, free: 14.73 MB / 366.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest_fmu --startTime=0 --stopTime=0.0002 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe 2>&1)