Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001112/0.001112, allocations: 199.4 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.251/1.251, allocations: 226.5 MB / 245.4 MB, free: 8.25 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007307/0.0007307, allocations: 102.5 kB / 297.4 MB, free: 6.938 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002236/0.0002237, allocations: 8 kB / 357.4 MB, free: 10.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1899/0.1901, allocations: 51.3 MB / 408.7 MB, free: 27.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08773/0.2779, allocations: 83.8 MB / 492.5 MB, free: 7.832 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002012/0.2781, allocations: 68.5 kB / 492.5 MB, free: 7.766 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0258/0.304, allocations: 9.382 MB / 0.4902 GB, free: 14.34 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.376e-06/0.304, allocations: 7.984 kB / 0.4902 GB, free: 14.34 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.656e-05/0.304, allocations: 16 kB / 0.4902 GB, free: 14.32 MB / 378.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.002044/0.3061, allocations: 0.9417 MB / 0.4911 GB, free: 13.32 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.3061, allocations: 8.031 kB / 0.4911 GB, free: 13.31 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002084/0.3063, allocations: 76.27 kB / 0.4912 GB, free: 13.23 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004991/0.3068, allocations: 414 kB / 0.4916 GB, free: 12.79 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.667e-05/0.3069, allocations: 29.38 kB / 0.4916 GB, free: 12.76 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.407e-05/0.307, allocations: 36.38 kB / 0.4916 GB, free: 12.73 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001377/0.3083, allocations: 0.6347 MB / 0.4923 GB, free: 12.07 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.301e-05/0.3084, allocations: 4.125 kB / 0.4923 GB, free: 12.07 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.299e-05/0.3084, allocations: 15.94 kB / 0.4923 GB, free: 12.05 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.3084, allocations: 8 kB / 0.4923 GB, free: 12.04 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001835/0.3103, allocations: 0.7104 MB / 0.493 GB, free: 11.33 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003613/0.3139, allocations: 2.204 MB / 0.4951 GB, free: 9.027 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00423/0.3182, allocations: 1.012 MB / 0.4961 GB, free: 8.004 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001033/0.3192, allocations: 444.5 kB / 0.4965 GB, free: 7.57 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.667e-05/0.3193, allocations: 4.328 kB / 0.4965 GB, free: 7.566 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001125/0.3204, allocations: 466.7 kB / 0.497 GB, free: 7.094 MB / 378.7 MB Notification: Performance of pre-optimization done (n=40): time 2.515e-06/0.3204, allocations: 0 / 0.497 GB, free: 7.094 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.01076/0.3312, allocations: 2.274 MB / 0.4992 GB, free: 4.789 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.542e-05/0.3313, allocations: 81.11 kB / 0.4993 GB, free: 4.691 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005497/0.3318, allocations: 402 kB / 0.4997 GB, free: 4.289 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.886e-05/0.3319, allocations: 33.7 kB / 0.4997 GB, free: 4.25 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001745/0.3321, allocations: 232.6 kB / 0.4999 GB, free: 4.02 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001336/0.3322, allocations: 134.1 kB / 0.5 GB, free: 3.887 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.591e-05/0.3323, allocations: 4 kB / 0.5001 GB, free: 3.883 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.3324, allocations: 358.7 kB / 0.5004 GB, free: 3.523 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009311/0.3334, allocations: 340.6 kB / 0.5007 GB, free: 3.188 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009502/0.3343, allocations: 374.1 kB / 0.5011 GB, free: 2.812 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001795/0.3361, allocations: 0.6693 MB / 0.5017 GB, free: 2.133 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.3361, allocations: 0 / 0.5017 GB, free: 2.133 MB / 378.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002619/0.3388, allocations: 0.971 MB / 0.5027 GB, free: 1.145 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.902e-05/0.3388, allocations: 29.7 kB / 0.5027 GB, free: 1.109 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.3388, allocations: 0 / 0.5027 GB, free: 1.109 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001202/0.34, allocations: 424.5 kB / 0.5031 GB, free: 0.6914 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000492/0.3405, allocations: 107.9 kB / 0.5032 GB, free: 0.5859 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.163/0.5036, allocations: 3.475 MB / 0.5066 GB, free: 94.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007751/0.5044, allocations: 117.6 kB / 0.5067 GB, free: 94.31 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.312e-05/0.5045, allocations: 18.17 kB / 0.5067 GB, free: 94.31 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.000233/0.5047, allocations: 171.9 kB / 0.5069 GB, free: 94.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.76e-05/0.5048, allocations: 47.27 kB / 0.5069 GB, free: 94.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001054/0.5049, allocations: 54.88 kB / 0.507 GB, free: 94.19 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.596e-06/0.5049, allocations: 4.062 kB / 0.507 GB, free: 94.19 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.5049, allocations: 0 / 0.507 GB, free: 94.19 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.5049, allocations: 7.453 kB / 0.507 GB, free: 94.19 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006174/0.5055, allocations: 0.6187 MB / 0.5076 GB, free: 94 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.205e-06/0.5055, allocations: 0 / 0.5076 GB, free: 94 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004762/0.506, allocations: 97.52 kB / 0.5077 GB, free: 94 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001074/0.5071, allocations: 429 kB / 0.5081 GB, free: 93.99 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.284e-05/0.5072, allocations: 9.219 kB / 0.5081 GB, free: 93.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007555/0.5147, allocations: 3.481 MB / 0.5115 GB, free: 92.4 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-06/0.5148, allocations: 0 / 0.5115 GB, free: 92.4 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003008/0.5178, allocations: 1.375 MB / 0.5129 GB, free: 91.94 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001776/0.518, allocations: 176.6 kB / 0.513 GB, free: 91.79 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.855e-05/0.518, allocations: 14.41 kB / 0.513 GB, free: 91.78 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005868/0.5186, allocations: 92.94 kB / 0.5131 GB, free: 91.77 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001238/0.5188, allocations: 48.53 kB / 0.5132 GB, free: 91.76 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.571e-05/0.5188, allocations: 16.81 kB / 0.5132 GB, free: 91.76 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002444/0.5191, allocations: 289.8 kB / 0.5135 GB, free: 91.61 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.5191, allocations: 0 / 0.5135 GB, free: 91.61 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000564/0.5196, allocations: 183.3 kB / 0.5137 GB, free: 91.59 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.0001584/0.5198, allocations: 127.4 kB / 0.5138 GB, free: 91.49 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002243/0.522, allocations: 1.005 MB / 0.5148 GB, free: 91.07 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.5221, allocations: 0 / 0.5148 GB, free: 91.07 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001299/0.5234, allocations: 0.5911 MB / 0.5153 GB, free: 90.82 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004401/0.5238, allocations: 89.36 kB / 0.5154 GB, free: 90.78 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002659/0.5265, allocations: 1.459 MB / 0.5168 GB, free: 90 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002099/0.5267, allocations: 0.8362 MB / 0.5177 GB, free: 89.29 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000134/0.5269, allocations: 26.91 kB / 0.5177 GB, free: 89.28 MB / 378.7 MB Notification: Performance of SimCode: time 3.2e-07/0.5269, allocations: 7.875 kB / 0.5177 GB, free: 89.28 MB / 378.7 MB Notification: Performance of Templates: time 0.008856/0.5357, allocations: 9.355 MB / 0.5268 GB, free: 83.01 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches