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.001141/0.001141, allocations: 117.3 kB / 17.98 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001349/0.001349, allocations: 201.8 kB / 18.92 MB, free: 4.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.4 MB / 247.1 MB, free: 10.7 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002194/0.002195, allocations: 63.95 kB / 307.1 MB, free: 0.9531 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1256/0.1278, allocations: 50.53 MB / 357.6 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004095/0.132, allocations: 2.983 MB / 360.6 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001324/0.1333, allocations: 0.7985 MB / 361.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001384/0.1335, allocations: 7.938 kB / 361.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001522/0.1337, allocations: 31.75 kB / 361.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001759/0.1339, allocations: 91.25 kB / 361.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003161/0.1342, allocations: 91.92 kB / 361.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003739/0.1346, allocations: 414.2 kB / 362 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000226/0.1348, allocations: 131.2 kB / 362.2 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002433/0.1351, allocations: 159.4 kB / 362.3 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000187/0.1353, allocations: 159.3 kB / 362.5 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.807e-05/0.1353, allocations: 40 kB / 362.5 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.464e-05/0.1354, allocations: 48 kB / 362.6 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.094e-05/0.1355, allocations: 79.69 kB / 362.6 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001854/0.1357, allocations: 175.2 kB / 362.8 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000331/0.136, allocations: 331.5 kB / 363.1 MB, free: 8.891 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.136, allocations: 0 / 363.1 MB, free: 8.891 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1361, allocations: 4 kB / 363.1 MB, free: 8.887 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.006e-05/0.1361, allocations: 0 / 363.1 MB, free: 8.887 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.001011/0.1371, allocations: 0.6206 MB / 363.8 MB, free: 8.215 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.1371, allocations: 12.03 kB / 363.8 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001796/0.1373, allocations: 40.55 kB / 363.8 MB, free: 8.164 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003219/0.1377, allocations: 288.7 kB / 364.1 MB, free: 7.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.174e-05/0.1377, allocations: 20.94 kB / 364.1 MB, free: 7.816 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.621e-05/0.1377, allocations: 28.31 kB / 364.1 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004947/0.1382, allocations: 292.9 kB / 364.4 MB, free: 7.492 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.1383, allocations: 0 / 364.4 MB, free: 7.492 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.93e-05/0.1383, allocations: 12 kB / 364.4 MB, free: 7.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.408e-06/0.1383, allocations: 4 kB / 364.4 MB, free: 7.477 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003848/0.1387, allocations: 206.1 kB / 364.7 MB, free: 7.273 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001608/0.1403, allocations: 1.148 MB / 365.8 MB, free: 6.047 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004655/0.1408, allocations: 226.6 kB / 366 MB, free: 5.816 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002838/0.1411, allocations: 147.2 kB / 366.2 MB, free: 5.672 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.229e-05/0.1411, allocations: 0 / 366.2 MB, free: 5.672 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003259/0.1415, allocations: 170.7 kB / 366.3 MB, free: 5.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.313e-06/0.1415, allocations: 4 kB / 366.3 MB, free: 5.477 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001332/0.1428, allocations: 0.5101 MB / 366.8 MB, free: 4.941 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.449e-05/0.1429, allocations: 140.5 kB / 367 MB, free: 4.773 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002271/0.1431, allocations: 241 kB / 367.2 MB, free: 4.527 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.794e-05/0.1432, allocations: 33.7 kB / 367.3 MB, free: 4.488 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001029/0.1433, allocations: 172.4 kB / 367.4 MB, free: 4.316 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.132e-05/0.1433, allocations: 71.05 kB / 367.5 MB, free: 4.246 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.646e-05/0.1434, allocations: 49.61 kB / 367.5 MB, free: 4.191 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.1436, allocations: 330.8 kB / 367.9 MB, free: 3.859 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001639/0.1437, allocations: 71.97 kB / 367.9 MB, free: 3.789 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000177/0.1439, allocations: 133 kB / 368.1 MB, free: 3.641 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002851/0.1442, allocations: 177.1 kB / 368.2 MB, free: 3.457 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.1442, allocations: 0 / 368.2 MB, free: 3.457 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004744/0.1447, allocations: 294 kB / 368.5 MB, free: 3.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.1447, allocations: 12.09 kB / 368.5 MB, free: 3.148 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.1447, allocations: 0 / 368.5 MB, free: 3.148 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003408/0.1451, allocations: 92.8 kB / 368.6 MB, free: 3.055 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001534/0.1453, allocations: 31.92 kB / 368.7 MB, free: 3.023 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002219/0.1475, allocations: 2.131 MB / 370.8 MB, free: 0.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002151/0.1477, allocations: 31.73 kB / 370.8 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.003e-05/0.1477, allocations: 11.98 kB / 370.8 MB, free: 0.707 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.0001539/0.1479, allocations: 149.8 kB / 371 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.362e-05/0.148, allocations: 27.77 kB / 371 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.027e-05/0.148, allocations: 38.11 kB / 371 MB, free: 496 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.818e-06/0.148, allocations: 4 kB / 371 MB, free: 492 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.864e-06/0.148, allocations: 0 / 371 MB, free: 492 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.148, allocations: 0 / 371 MB, free: 492 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1685/0.3165, allocations: 0.7616 MB / 371.8 MB, free: 20.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.3166, allocations: 0.7188 kB / 371.8 MB, free: 20.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001469/0.3167, allocations: 24.11 kB / 371.8 MB, free: 20.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003333/0.3171, allocations: 86.59 kB / 371.9 MB, free: 20.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.202e-05/0.3171, allocations: 6.453 kB / 371.9 MB, free: 20.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001979/0.3191, allocations: 2.147 MB / 374.1 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.3191, allocations: 1.094 kB / 374.1 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006662/0.3198, allocations: 452 kB / 374.5 MB, free: 18.76 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001045/0.3199, allocations: 126 kB / 374.6 MB, free: 18.65 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.047e-05/0.32, allocations: 2.984 kB / 374.6 MB, free: 18.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002046/0.3202, allocations: 18.77 kB / 374.7 MB, free: 18.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001049/0.3203, allocations: 43.67 kB / 374.7 MB, free: 18.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.726e-05/0.3203, allocations: 8.172 kB / 374.7 MB, free: 18.63 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001709/0.3205, allocations: 179.1 kB / 374.9 MB, free: 18.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3205, allocations: 0 / 374.9 MB, free: 18.52 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004876/0.321, allocations: 90.08 kB / 375 MB, free: 18.52 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.0001232/0.3211, allocations: 108.2 kB / 375.1 MB, free: 18.42 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006446/0.3218, allocations: 360.2 kB / 375.4 MB, free: 18.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3218, allocations: 0 / 375.4 MB, free: 18.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003706/0.3222, allocations: 268.6 kB / 375.7 MB, free: 18.05 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004504/0.3226, allocations: 61.09 kB / 375.7 MB, free: 18.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001148/0.3238, allocations: 0.7323 MB / 376.5 MB, free: 17.58 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002038/0.324, allocations: 0.765 MB / 377.2 MB, free: 16.88 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.275e-05/0.324, allocations: 19.81 kB / 377.3 MB, free: 16.88 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3241, allocations: 0 / 377.3 MB, free: 16.88 MB / 302.1 MB Notification: Performance of Templates: time 0.007868/0.3319, allocations: 4.688 MB / 381.9 MB, free: 16.51 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 -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