Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.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 4.0.0+maint.om/package.mo", uses=false) 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) 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.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001041/0.00104, allocations: 94.86 kB / 16.3 MB, free: 5.992 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.001299/0.001299, allocations: 181.4 kB / 17.2 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.441/1.441, allocations: 223.2 MB / 241.1 MB, free: 5.363 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002932/0.0002934, allocations: 7.656 kB / 300.7 MB, free: 6.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1288, allocations: 50.42 MB / 351.1 MB, free: 11.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004076/0.1329, allocations: 3.286 MB / 354.4 MB, free: 8.383 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002407/0.1354, allocations: 1.002 MB / 355.4 MB, free: 7.375 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003393/0.1357, allocations: 7.938 kB / 355.4 MB, free: 7.367 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001645/0.1359, allocations: 59.58 kB / 355.5 MB, free: 7.309 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004896/0.1364, allocations: 211.3 kB / 355.7 MB, free: 7.102 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004166/0.1368, allocations: 139.7 kB / 355.8 MB, free: 6.965 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005711/0.1374, allocations: 499 kB / 356.3 MB, free: 6.477 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002657/0.1377, allocations: 140 kB / 356.5 MB, free: 6.332 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002956/0.138, allocations: 251.2 kB / 356.7 MB, free: 6.086 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003408/0.1383, allocations: 298.8 kB / 357 MB, free: 5.793 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.441e-05/0.1384, allocations: 36 kB / 357 MB, free: 5.758 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.655e-05/0.1385, allocations: 32 kB / 357.1 MB, free: 5.727 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001062/0.1386, allocations: 111.6 kB / 357.2 MB, free: 5.617 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000121/0.1387, allocations: 125.4 kB / 357.3 MB, free: 5.488 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000475/0.1392, allocations: 0.6154 MB / 357.9 MB, free: 4.871 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.706e-06/0.1392, allocations: 0 / 357.9 MB, free: 4.871 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.1392, allocations: 0 / 357.9 MB, free: 4.871 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.1393, allocations: 4 kB / 357.9 MB, free: 4.867 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002424/0.1417, allocations: 0.9992 MB / 358.9 MB, free: 3.809 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.1417, allocations: 12.03 kB / 358.9 MB, free: 3.797 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000112/0.1419, allocations: 59.28 kB / 359 MB, free: 3.738 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004943/0.1424, allocations: 389 kB / 359.4 MB, free: 3.32 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.581e-05/0.1424, allocations: 32.94 kB / 359.4 MB, free: 3.285 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.363e-05/0.1425, allocations: 39.91 kB / 359.4 MB, free: 3.246 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001439/0.1439, allocations: 0.6341 MB / 360.1 MB, free: 2.59 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.144, allocations: 0 / 360.1 MB, free: 2.59 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.295e-05/0.144, allocations: 23.95 kB / 360.1 MB, free: 2.566 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.144, allocations: 8 kB / 360.1 MB, free: 2.559 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001867/0.1459, allocations: 0.7026 MB / 360.8 MB, free: 1.852 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003632/0.1496, allocations: 2.219 MB / 363 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003803/0.1534, allocations: 0.9843 MB / 364 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.673e-05/0.1534, allocations: 4.328 kB / 364 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001253/0.1547, allocations: 473.5 kB / 364.5 MB, free: 14.06 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.154e-06/0.1547, allocations: 0 / 364.5 MB, free: 14.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.0143/0.169, allocations: 2.626 MB / 367.1 MB, free: 11.4 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.112e-05/0.1692, allocations: 89.03 kB / 367.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005293/0.1697, allocations: 406 kB / 367.6 MB, free: 10.89 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.535e-05/0.1698, allocations: 41.69 kB / 367.6 MB, free: 10.85 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001856/0.17, allocations: 228.6 kB / 367.8 MB, free: 10.62 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001455/0.1701, allocations: 130.1 kB / 368 MB, free: 10.49 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.544e-05/0.1702, allocations: 12 kB / 368 MB, free: 10.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.1703, allocations: 354.7 kB / 368.3 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009673/0.1713, allocations: 336.6 kB / 368.7 MB, free: 9.789 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009448/0.1722, allocations: 370.1 kB / 369 MB, free: 9.422 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009327/0.1732, allocations: 351.6 kB / 369.4 MB, free: 9.074 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.1732, allocations: 0 / 369.4 MB, free: 9.074 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002537/0.1757, allocations: 0.9716 MB / 370.3 MB, free: 8.086 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.519e-05/0.1758, allocations: 33.7 kB / 370.4 MB, free: 8.047 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.829e-06/0.1758, allocations: 3.984 kB / 370.4 MB, free: 8.043 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001201/0.177, allocations: 427.1 kB / 370.8 MB, free: 7.625 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004838/0.1775, allocations: 103.9 kB / 370.9 MB, free: 7.523 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008105/0.1856, allocations: 3.621 MB / 374.5 MB, free: 3.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007515/0.1864, allocations: 115.6 kB / 374.6 MB, free: 3.656 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.262e-05/0.1865, allocations: 12 kB / 374.6 MB, free: 3.645 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,$PRE.trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of prepare postOptimizeDAE: time 0.0003352/0.1868, allocations: 165.8 kB / 374.8 MB, free: 3.473 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.316e-05/0.1869, allocations: 47.44 kB / 374.8 MB, free: 3.426 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001182/0.187, allocations: 60.41 kB / 374.9 MB, free: 3.367 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.014e-06/0.187, allocations: 7.953 kB / 374.9 MB, free: 3.359 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.187, allocations: 0 / 374.9 MB, free: 3.359 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.186e-06/0.1871, allocations: 11.92 kB / 374.9 MB, free: 3.348 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007614/0.1878, allocations: 0.6068 MB / 375.5 MB, free: 2.691 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.1878, allocations: 0 / 375.5 MB, free: 2.691 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000505/0.1883, allocations: 91.92 kB / 375.6 MB, free: 2.602 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001218/0.1896, allocations: 428.5 kB / 376 MB, free: 2.18 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.666e-05/0.1896, allocations: 4 kB / 376 MB, free: 2.176 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008026/0.1977, allocations: 3.635 MB / 379.7 MB, free: 14.41 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.1977, allocations: 0 / 379.7 MB, free: 14.41 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005787/0.2035, allocations: 1.648 MB / 381.3 MB, free: 12.74 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002755/0.2038, allocations: 180.5 kB / 381.5 MB, free: 12.54 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.882e-05/0.2039, allocations: 8 kB / 381.5 MB, free: 12.54 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005902/0.2045, allocations: 95.91 kB / 381.6 MB, free: 12.44 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001491/0.2046, allocations: 51.88 kB / 381.6 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.213e-05/0.2047, allocations: 15.98 kB / 381.7 MB, free: 12.38 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003453/0.205, allocations: 287.2 kB / 381.9 MB, free: 12.1 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.205, allocations: 4 kB / 381.9 MB, free: 12.09 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006525/0.2057, allocations: 175.7 kB / 382.1 MB, free: 11.92 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,simpleTriac.thyristor.vControl,simpleTriac.thyristor1.vControl) * Number of discrete variables: 5 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.count) * Number of discrete states: 1 (trapezoidCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001747/0.2059, allocations: 114.3 kB / 382.2 MB, free: 11.8 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002704/0.2086, allocations: 0.9943 MB / 383.2 MB, free: 10.78 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.2086, allocations: 8 kB / 383.2 MB, free: 10.77 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001515/0.2101, allocations: 0.6039 MB / 383.8 MB, free: 10.16 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004055/0.2105, allocations: 69.7 kB / 383.9 MB, free: 10.09 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003031/0.2136, allocations: 1.413 MB / 385.3 MB, free: 8.656 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004027/0.214, allocations: 0.8514 MB / 386.2 MB, free: 7.781 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002294/0.2142, allocations: 47.39 kB / 386.2 MB, free: 7.73 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.806e-05/0.2143, allocations: 27.38 kB / 386.2 MB, free: 7.707 MB / 318.1 MB Notification: Performance of SimCode: time 1.843e-06/0.2143, allocations: 0 / 386.2 MB, free: 7.707 MB / 318.1 MB Notification: Performance of Templates: time 0.01854/0.2329, allocations: 12.37 MB / 398.6 MB, free: 11.42 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches