Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007555/0.007561, allocations: 96.48 kB / 15.73 MB, free: 6.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001751/0.001751, allocations: 191.4 kB / 16.67 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.84/1.84, allocations: 205.1 MB / 222.5 MB, free: 4.531 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 49.77 kB / 326.6 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1154, allocations: 46.63 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.005622/0.1211, allocations: 3.908 MB / 377.1 MB, free: 13.38 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002623/0.1237, allocations: 1.36 MB / 378.4 MB, free: 12.01 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002877/0.1241, allocations: 11.94 kB / 378.5 MB, free: 12 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008021/0.1249, allocations: 250.8 kB / 378.7 MB, free: 11.75 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0005829/0.1255, allocations: 254.4 kB / 379 MB, free: 11.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006841/0.1262, allocations: 255.5 kB / 379.2 MB, free: 11.25 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000792/0.127, allocations: 0.7201 MB / 379.9 MB, free: 10.53 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003003/0.1273, allocations: 172.9 kB / 380.1 MB, free: 10.36 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003688/0.1277, allocations: 267 kB / 380.4 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003537/0.128, allocations: 298.8 kB / 380.6 MB, free: 9.805 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.765e-05/0.1281, allocations: 52 kB / 380.7 MB, free: 9.754 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002506/0.1284, allocations: 107.9 kB / 380.8 MB, free: 9.648 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001523/0.1285, allocations: 135.6 kB / 380.9 MB, free: 9.516 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003068/0.1289, allocations: 310.4 kB / 381.2 MB, free: 9.211 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008479/0.1297, allocations: 0.7041 MB / 381.9 MB, free: 8.504 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.1297, allocations: 0 / 381.9 MB, free: 8.504 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1297, allocations: 0 / 381.9 MB, free: 8.504 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.062e-05/0.1298, allocations: 0 / 381.9 MB, free: 8.504 MB / 318.1 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.001751/0.1315, allocations: 0.9525 MB / 382.9 MB, free: 7.496 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/0.1316, allocations: 8.031 kB / 382.9 MB, free: 7.488 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001299/0.1317, allocations: 68.52 kB / 383 MB, free: 7.422 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005774/0.1323, allocations: 427.1 kB / 383.4 MB, free: 6.965 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.69e-05/0.1323, allocations: 33.38 kB / 383.4 MB, free: 6.93 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.072e-05/0.1324, allocations: 44.06 kB / 383.5 MB, free: 6.887 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007533/0.1332, allocations: 441.5 kB / 383.9 MB, free: 6.43 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.1332, allocations: 4 kB / 383.9 MB, free: 6.426 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.962e-05/0.1332, allocations: 20 kB / 383.9 MB, free: 6.406 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.329e-05/0.1333, allocations: 8 kB / 383.9 MB, free: 6.398 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000585/0.1339, allocations: 311.8 kB / 384.2 MB, free: 6.094 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002296/0.1362, allocations: 1.703 MB / 385.9 MB, free: 4.293 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006688/0.1368, allocations: 375 kB / 386.3 MB, free: 3.918 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003051/0.1372, allocations: 184.8 kB / 386.5 MB, free: 3.734 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.951e-05/0.1373, allocations: 4 kB / 386.5 MB, free: 3.73 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004659/0.1377, allocations: 258.4 kB / 386.7 MB, free: 3.449 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 1.713e-06/0.1378, allocations: 0 / 386.7 MB, free: 3.449 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.00209/0.1399, allocations: 1.017 MB / 387.7 MB, free: 2.34 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/0.14, allocations: 195.8 kB / 387.9 MB, free: 2.105 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005578/0.1405, allocations: 0.4902 MB / 388.4 MB, free: 1.613 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.272e-05/0.1406, allocations: 37.7 kB / 388.5 MB, free: 1.57 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001913/0.1408, allocations: 260.8 kB / 388.7 MB, free: 1.309 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.279e-05/0.1409, allocations: 126.9 kB / 388.8 MB, free: 1.184 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001352/0.141, allocations: 78.12 kB / 388.9 MB, free: 1.102 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.1412, allocations: 358.8 kB / 389.3 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002494/0.1414, allocations: 116.8 kB / 389.4 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003154/0.1418, allocations: 221.2 kB / 389.6 MB, free: 384 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004627/0.1422, allocations: 277.1 kB / 389.9 MB, free: 96 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.1423, allocations: 4 kB / 389.9 MB, free: 92 kB / 318.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.000822/0.1431, allocations: 477.1 kB / 390.3 MB, free: 15.6 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.1431, allocations: 4 kB / 390.3 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.1431, allocations: 7.984 kB / 390.4 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000514/0.1436, allocations: 163.4 kB / 390.5 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002054/0.1439, allocations: 39.92 kB / 390.6 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004807/0.1487, allocations: 6.659 MB / 397.2 MB, free: 8.164 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004138/0.1491, allocations: 51.78 kB / 397.3 MB, free: 8.113 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.823e-05/0.1492, allocations: 12 kB / 397.3 MB, free: 8.102 MB / 334.1 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 ($PRE.booleanStep1.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,IdealGTOThyristor2.off,IdealThyristor2.off,$PRE.IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEventScaled,$PRE.booleanStep1.combiTimeTable.nextTimeEventScaled,booleanStep1.combiTimeTable.nextTimeEvent,IdealGTOThyristor1.off,IdealThyristor1.fire,IdealThyristor1.off,$PRE.IdealThyristor1.off) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002788/0.1494, allocations: 192.1 kB / 397.5 MB, free: 7.902 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.108e-05/0.1495, allocations: 55.61 kB / 397.5 MB, free: 7.848 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001084/0.1496, allocations: 60.75 kB / 397.6 MB, free: 7.785 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.1497, allocations: 4 kB / 397.6 MB, free: 7.781 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.1497, allocations: 0 / 397.6 MB, free: 7.781 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.1497, allocations: 0 / 397.6 MB, free: 7.781 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000535/0.1502, allocations: 497 kB / 398.1 MB, free: 7.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-06/0.1502, allocations: 4 kB / 398.1 MB, free: 7.246 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001308/0.1504, allocations: 31.92 kB / 398.1 MB, free: 7.215 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004228/0.1508, allocations: 167.4 kB / 398.3 MB, free: 7.039 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.616e-05/0.1508, allocations: 8 kB / 398.3 MB, free: 7.031 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004538/0.1554, allocations: 6.352 MB / 404.6 MB, free: 128 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.267e-06/0.1554, allocations: 3.984 kB / 404.6 MB, free: 124 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009725/0.1564, allocations: 0.5089 MB / 405.1 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000188/0.1566, allocations: 160.6 kB / 405.3 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.14e-05/0.1567, allocations: 8 kB / 405.3 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002685/0.1569, allocations: 35.97 kB / 405.3 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001379/0.1571, allocations: 51.92 kB / 405.4 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.215e-05/0.1571, allocations: 12 kB / 405.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004074/0.1575, allocations: 359.1 kB / 405.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1575, allocations: 0 / 405.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007701/0.1583, allocations: 175.7 kB / 405.9 MB, free: 14.78 MB / 350.1 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,IdealThyristor1.fire,IdealGTOThyristor1.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,IdealGTOThyristor2.off,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 4 (IdealThyristor1.off,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000964/0.1593, allocations: 444.1 kB / 406.4 MB, free: 14.33 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001104/0.1604, allocations: 0.803 MB / 407.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.1604, allocations: 4.188 kB / 407.2 MB, free: 13.47 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006866/0.1611, allocations: 0.6547 MB / 407.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005395/0.1617, allocations: 121.8 kB / 407.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001811/0.1635, allocations: 0.97 MB / 408.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003962/0.1639, allocations: 0.8673 MB / 409.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001773/0.1641, allocations: 48.16 kB / 409.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.413e-05/0.1642, allocations: 31.44 kB / 409.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1642, allocations: 0 / 409.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of Templates: time 0.01628/0.1805, allocations: 9.603 MB / 419.5 MB, free: 1.055 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1)