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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001464/0.001464, allocations: 175.9 kB / 17.39 MB, free: 4.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.671/1.671, allocations: 223.3 MB / 241.4 MB, free: 11.69 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008961/0.000896, allocations: 94.83 kB / 292.6 MB, free: 10.75 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000402/0.0004021, allocations: 11.94 kB / 352.3 MB, free: 14.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3307/0.3311, allocations: 50.41 MB / 402.8 MB, free: 32.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.118/0.4492, allocations: 83.09 MB / 485.8 MB, free: 13.21 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002887/0.4495, allocations: 72.56 kB / 485.9 MB, free: 13.14 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02796/0.4775, allocations: 9.296 MB / 495.2 MB, free: 3.801 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.116e-06/0.4776, allocations: 0 / 495.2 MB, free: 3.801 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.97e-05/0.4776, allocations: 8 kB / 495.2 MB, free: 3.793 MB / 362.7 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.002766/0.4804, allocations: 0.9457 MB / 496.2 MB, free: 2.785 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.207e-05/0.4805, allocations: 8.031 kB / 496.2 MB, free: 2.777 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002952/0.4808, allocations: 60.28 kB / 496.2 MB, free: 2.719 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008775/0.4816, allocations: 413.9 kB / 496.6 MB, free: 2.277 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.98e-05/0.4817, allocations: 33.31 kB / 496.7 MB, free: 2.242 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001504/0.4819, allocations: 40.31 kB / 496.7 MB, free: 2.203 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001688/0.4836, allocations: 0.6347 MB / 497.3 MB, free: 1.547 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/0.4836, allocations: 192 / 497.3 MB, free: 1.547 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.079e-05/0.4837, allocations: 19.92 kB / 497.4 MB, free: 1.527 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.611e-05/0.4837, allocations: 8 kB / 497.4 MB, free: 1.52 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002073/0.4858, allocations: 0.7065 MB / 498.1 MB, free: 0.8125 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004727/0.4905, allocations: 2.204 MB / 0.4886 GB, free: 14.51 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004297/0.4949, allocations: 1.019 MB / 0.4896 GB, free: 13.48 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001051/0.4959, allocations: 436.3 kB / 0.49 GB, free: 13.05 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.924e-05/0.496, allocations: 4.328 kB / 0.49 GB, free: 13.05 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001199/0.4972, allocations: 471.5 kB / 0.4904 GB, free: 12.57 MB / 378.7 MB Notification: Performance of pre-optimization done (n=40): time 3.897e-06/0.4972, allocations: 0 / 0.4904 GB, free: 12.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.01052/0.5078, allocations: 2.262 MB / 0.4926 GB, free: 10.28 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.627e-05/0.5079, allocations: 81.11 kB / 0.4927 GB, free: 10.18 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005664/0.5084, allocations: 406 kB / 0.4931 GB, free: 9.777 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.938e-05/0.5085, allocations: 37.7 kB / 0.4931 GB, free: 9.734 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001943/0.5087, allocations: 228.6 kB / 0.4933 GB, free: 9.508 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001508/0.5089, allocations: 130.1 kB / 0.4935 GB, free: 9.379 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.032e-05/0.5089, allocations: 4 kB / 0.4935 GB, free: 9.375 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001835/0.5091, allocations: 362.8 kB / 0.4938 GB, free: 9.012 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009566/0.5101, allocations: 328.6 kB / 0.4941 GB, free: 8.688 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009957/0.5111, allocations: 378.1 kB / 0.4945 GB, free: 8.309 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00182/0.5129, allocations: 0.6694 MB / 0.4951 GB, free: 7.629 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/0.5129, allocations: 0 / 0.4951 GB, free: 7.629 MB / 378.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002655/0.5156, allocations: 0.971 MB / 0.4961 GB, free: 6.641 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.201e-05/0.5157, allocations: 29.7 kB / 0.4961 GB, free: 6.605 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.118e-05/0.5157, allocations: 4 kB / 0.4961 GB, free: 6.602 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001232/0.5169, allocations: 424.5 kB / 0.4965 GB, free: 6.184 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005036/0.5174, allocations: 111.8 kB / 0.4966 GB, free: 6.074 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008869/0.5263, allocations: 3.494 MB / 0.5001 GB, free: 2.449 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009681/0.5273, allocations: 119.6 kB / 0.5002 GB, free: 2.332 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001321/0.5275, allocations: 16 kB / 0.5002 GB, free: 2.316 MB / 378.7 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.0004772/0.528, allocations: 169.9 kB / 0.5003 GB, free: 2.141 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001713/0.5282, allocations: 51.38 kB / 0.5004 GB, free: 2.09 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001666/0.5283, allocations: 56.45 kB / 0.5004 GB, free: 2.035 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.5283, allocations: 7.938 kB / 0.5005 GB, free: 2.027 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.5284, allocations: 0 / 0.5005 GB, free: 2.027 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.5284, allocations: 4 kB / 0.5005 GB, free: 2.023 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001196/0.5296, allocations: 0.6029 MB / 0.501 GB, free: 1.371 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.317e-05/0.5296, allocations: 11.92 kB / 0.5011 GB, free: 1.359 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005123/0.5301, allocations: 99.86 kB / 0.5012 GB, free: 1.262 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001196/0.5313, allocations: 416.5 kB / 0.5016 GB, free: 0.8516 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.713e-05/0.5314, allocations: 12 kB / 0.5016 GB, free: 0.8398 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2315/0.763, allocations: 3.459 MB / 0.5049 GB, free: 98.49 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.763, allocations: 3.906 kB / 0.5049 GB, free: 98.49 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003815/0.7668, allocations: 1.382 MB / 0.5063 GB, free: 98.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002583/0.7671, allocations: 181.9 kB / 0.5065 GB, free: 98.32 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.132e-05/0.7672, allocations: 8.312 kB / 0.5065 GB, free: 98.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006432/0.7678, allocations: 96.58 kB / 0.5066 GB, free: 98.32 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001744/0.768, allocations: 52.06 kB / 0.5066 GB, free: 98.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.122e-05/0.7681, allocations: 10.84 kB / 0.5066 GB, free: 98.32 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003952/0.7685, allocations: 294.6 kB / 0.5069 GB, free: 98.23 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7685, allocations: 0 / 0.5069 GB, free: 98.23 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006634/0.7692, allocations: 180.2 kB / 0.5071 GB, free: 98.22 MB / 378.7 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.0001832/0.7693, allocations: 120.6 kB / 0.5072 GB, free: 98.14 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002317/0.7717, allocations: 0.996 MB / 0.5082 GB, free: 97.95 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.7717, allocations: 3.938 kB / 0.5082 GB, free: 97.95 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001268/0.773, allocations: 0.604 MB / 0.5088 GB, free: 97.81 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004547/0.7734, allocations: 77.52 kB / 0.5088 GB, free: 97.81 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002719/0.7762, allocations: 1.419 MB / 0.5102 GB, free: 97.16 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002241/0.7764, allocations: 0.8401 MB / 0.511 GB, free: 96.46 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002269/0.7766, allocations: 46.78 kB / 0.5111 GB, free: 96.45 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.248e-05/0.7767, allocations: 25.34 kB / 0.5111 GB, free: 96.44 MB / 378.7 MB Notification: Performance of SimCode: time 5.91e-07/0.7767, allocations: 2.25 kB / 0.5111 GB, free: 96.44 MB / 378.7 MB Notification: Performance of Templates: time 0.01375/0.7905, allocations: 11.33 MB / 0.5222 GB, free: 90.31 MB / 378.7 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/jenkins1/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