Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.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 trunk/package.mo", uses=false) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001282/0.001282, allocations: 116.9 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001579/0.001579, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.667/1.667, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001891/0.001891, allocations: 61.09 kB / 308.4 MB, free: 15.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.1306, allocations: 50.52 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004966/0.1357, allocations: 2.945 MB / 361.8 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001344/0.137, allocations: 0.7907 MB / 362.6 MB, free: 9.57 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001302/0.1372, allocations: 4 kB / 362.6 MB, free: 9.566 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001621/0.1374, allocations: 51.5 kB / 362.7 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001763/0.1376, allocations: 103 kB / 362.8 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003181/0.1379, allocations: 111.8 kB / 362.9 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004084/0.1383, allocations: 418.2 kB / 363.3 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003012/0.1386, allocations: 135.2 kB / 363.4 MB, free: 8.762 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002209/0.1388, allocations: 155.4 kB / 363.6 MB, free: 8.609 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002068/0.1391, allocations: 163.3 kB / 363.7 MB, free: 8.449 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.942e-05/0.1391, allocations: 36 kB / 363.8 MB, free: 8.414 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.648e-05/0.1392, allocations: 40 kB / 363.8 MB, free: 8.375 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.617e-05/0.1393, allocations: 79.69 kB / 363.9 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001639/0.1395, allocations: 175.2 kB / 364.1 MB, free: 8.125 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004092/0.1399, allocations: 438.5 kB / 364.5 MB, free: 7.695 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1399, allocations: 0 / 364.5 MB, free: 7.695 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1399, allocations: 4 kB / 364.5 MB, free: 7.691 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.144e-05/0.1399, allocations: 0 / 364.5 MB, free: 7.691 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001033/0.141, allocations: 0.6129 MB / 365.1 MB, free: 7.027 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.141, allocations: 12.03 kB / 365.1 MB, free: 7.016 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001802/0.1412, allocations: 48.55 kB / 365.2 MB, free: 6.969 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004027/0.1416, allocations: 300.6 kB / 365.5 MB, free: 6.633 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.193e-05/0.1416, allocations: 20.88 kB / 365.5 MB, free: 6.609 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.495e-05/0.1417, allocations: 24.38 kB / 365.5 MB, free: 6.586 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004874/0.1422, allocations: 288.9 kB / 365.8 MB, free: 6.289 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.1422, allocations: 0 / 365.8 MB, free: 6.289 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.287e-05/0.1422, allocations: 12 kB / 365.8 MB, free: 6.277 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.1422, allocations: 11.94 kB / 365.8 MB, free: 6.266 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004103/0.1427, allocations: 202.2 kB / 366 MB, free: 6.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001782/0.1445, allocations: 1.144 MB / 367.2 MB, free: 4.848 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005604/0.145, allocations: 230.6 kB / 367.4 MB, free: 4.613 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000316/0.1454, allocations: 148.3 kB / 367.5 MB, free: 4.469 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.887e-05/0.1454, allocations: 4 kB / 367.5 MB, free: 4.465 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002881/0.1457, allocations: 166.7 kB / 367.7 MB, free: 4.277 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.593e-06/0.1457, allocations: 0 / 367.7 MB, free: 4.277 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001394/0.1471, allocations: 0.5146 MB / 368.2 MB, free: 3.734 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/0.1472, allocations: 128.5 kB / 368.3 MB, free: 3.578 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002695/0.1475, allocations: 245 kB / 368.6 MB, free: 3.328 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.672e-05/0.1475, allocations: 33.7 kB / 368.6 MB, free: 3.289 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001183/0.1477, allocations: 168.4 kB / 368.8 MB, free: 3.121 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.25e-05/0.1477, allocations: 75.11 kB / 368.8 MB, free: 3.047 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.128e-05/0.1478, allocations: 49.61 kB / 368.9 MB, free: 2.992 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.148, allocations: 338.8 kB / 369.2 MB, free: 2.652 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001495/0.1481, allocations: 71.97 kB / 369.3 MB, free: 2.582 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001772/0.1483, allocations: 125.1 kB / 369.4 MB, free: 2.441 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003053/0.1486, allocations: 173.1 kB / 369.6 MB, free: 2.262 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1486, allocations: 0 / 369.6 MB, free: 2.262 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004533/0.1491, allocations: 294 kB / 369.9 MB, free: 1.965 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/0.1491, allocations: 8.078 kB / 369.9 MB, free: 1.957 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.1491, allocations: 4 kB / 369.9 MB, free: 1.953 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003219/0.1494, allocations: 84.81 kB / 370 MB, free: 1.867 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001313/0.1496, allocations: 35.92 kB / 370 MB, free: 1.832 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2571/0.4067, allocations: 2.121 MB / 372.1 MB, free: 19.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003523/0.4071, allocations: 30.17 kB / 372.2 MB, free: 19.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.741e-05/0.4071, allocations: 6.344 kB / 372.2 MB, free: 19.13 MB / 302.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: 8 ($whenCondition1,idealTriac.fire1,idealTriac.idealThyristor1.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0002398/0.4073, allocations: 158.5 kB / 372.3 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.43e-05/0.4074, allocations: 27.81 kB / 372.3 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.039e-05/0.4075, allocations: 35.11 kB / 372.4 MB, free: 19.01 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.4075, allocations: 3.375 kB / 372.4 MB, free: 19.01 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/0.4075, allocations: 4.219 kB / 372.4 MB, free: 19.01 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.453e-06/0.4075, allocations: 2.312 kB / 372.4 MB, free: 19.01 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001302/0.4088, allocations: 0.7761 MB / 373.2 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.4089, allocations: 1.891 kB / 373.2 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001278/0.409, allocations: 18.09 kB / 373.2 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003462/0.4094, allocations: 90.11 kB / 373.3 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.153e-05/0.4094, allocations: 6.469 kB / 373.3 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002479/0.4119, allocations: 2.135 MB / 375.4 MB, free: 17.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.4119, allocations: 3.938 kB / 375.4 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008396/0.4127, allocations: 449.4 kB / 375.9 MB, free: 16.9 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000125/0.4129, allocations: 125.7 kB / 376 MB, free: 16.8 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.98e-05/0.4129, allocations: 10.89 kB / 376 MB, free: 16.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002091/0.4131, allocations: 17.77 kB / 376 MB, free: 16.79 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001594/0.4133, allocations: 38.94 kB / 376 MB, free: 16.78 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.119e-05/0.4133, allocations: 7.719 kB / 376 MB, free: 16.78 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002514/0.4136, allocations: 182.9 kB / 376.2 MB, free: 16.67 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4136, allocations: 0 / 376.2 MB, free: 16.67 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005844/0.4142, allocations: 89.7 kB / 376.3 MB, free: 16.66 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 2 (idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(2,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001643/0.4144, allocations: 106.6 kB / 376.4 MB, free: 16.57 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000875/0.4153, allocations: 362.1 kB / 376.8 MB, free: 16.38 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.4153, allocations: 0.7188 kB / 376.8 MB, free: 16.38 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005076/0.4158, allocations: 268.9 kB / 377 MB, free: 16.21 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004653/0.4163, allocations: 65.22 kB / 377.1 MB, free: 16.19 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001342/0.4176, allocations: 0.5918 MB / 377.7 MB, free: 15.88 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002851/0.4179, allocations: 0.7646 MB / 378.5 MB, free: 15.18 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001018/0.418, allocations: 19.59 kB / 378.5 MB, free: 15.18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.905e-05/0.4181, allocations: 19.14 kB / 378.5 MB, free: 15.18 MB / 302.1 MB Notification: Performance of SimCode: time 8.31e-07/0.4181, allocations: 0 / 378.5 MB, free: 15.18 MB / 302.1 MB Notification: Performance of Templates: time 0.01365/0.4317, allocations: 4.853 MB / 383.3 MB, free: 14.86 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches