Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001565/0.001565, allocations: 180.9 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.07/2.07, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001062/0.001061, allocations: 78.72 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.607e-05/3.625e-05, allocations: 4 kB / 321.5 MB, free: 17.85 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0996/0.09966, allocations: 47.58 MB / 369.1 MB, free: 2.207 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3999/0.4996, allocations: 78.24 MB / 447.3 MB, free: 14.96 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002653/0.4999, allocations: 66.41 kB / 447.4 MB, free: 14.93 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02057/0.5205, allocations: 4.959 MB / 452.3 MB, free: 10.74 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.5206, allocations: 0 / 452.3 MB, free: 10.74 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.669e-05/0.5206, allocations: 8 kB / 452.4 MB, free: 10.73 MB / 330.7 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.001201/0.5218, allocations: 0.5332 MB / 452.9 MB, free: 10.18 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.533e-05/0.5219, allocations: 12.03 kB / 452.9 MB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001143/0.522, allocations: 39.47 kB / 452.9 MB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004561/0.5225, allocations: 277 kB / 453.2 MB, free: 9.844 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.3e-05/0.5225, allocations: 24.08 kB / 453.2 MB, free: 9.828 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.833e-05/0.5226, allocations: 27.56 kB / 453.3 MB, free: 9.809 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006739/0.5233, allocations: 276.8 kB / 453.5 MB, free: 9.609 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.5233, allocations: 0 / 453.5 MB, free: 9.609 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.59e-05/0.5234, allocations: 11.5 kB / 453.5 MB, free: 9.605 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.5234, allocations: 4 kB / 453.5 MB, free: 9.602 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005382/0.524, allocations: 191.7 kB / 453.7 MB, free: 9.48 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002462/0.5264, allocations: 1.15 MB / 454.9 MB, free: 8.473 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006888/0.5272, allocations: 207.2 kB / 455.1 MB, free: 8.34 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004059/0.5276, allocations: 139 kB / 455.2 MB, free: 8.246 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.359e-05/0.5277, allocations: 8.125 kB / 455.2 MB, free: 8.238 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003637/0.528, allocations: 165.8 kB / 455.4 MB, free: 8.086 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 2.465e-06/0.528, allocations: 0 / 455.4 MB, free: 8.086 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0008796/0.5289, allocations: 262.1 kB / 455.6 MB, free: 7.887 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.286e-05/0.529, allocations: 132.5 kB / 455.8 MB, free: 7.727 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003408/0.5294, allocations: 214.1 kB / 456 MB, free: 7.547 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.186e-05/0.5294, allocations: 32.7 kB / 456 MB, free: 7.512 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001512/0.5296, allocations: 221.8 kB / 456.2 MB, free: 7.316 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.108e-05/0.5297, allocations: 79.48 kB / 456.3 MB, free: 7.25 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.002e-05/0.5297, allocations: 3.25 kB / 456.3 MB, free: 7.25 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.5299, allocations: 318.8 kB / 456.6 MB, free: 6.934 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001951/0.5301, allocations: 68.06 kB / 456.7 MB, free: 6.895 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002442/0.5303, allocations: 117.1 kB / 456.8 MB, free: 6.793 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002127/0.5306, allocations: 68.61 kB / 456.9 MB, free: 6.754 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.5306, allocations: 3.938 kB / 456.9 MB, free: 6.75 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006774/0.5313, allocations: 272.2 kB / 457.1 MB, free: 6.551 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.5313, allocations: 4 kB / 457.1 MB, free: 6.547 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.5313, allocations: 0 / 457.1 MB, free: 6.547 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005375/0.5319, allocations: 108 kB / 457.3 MB, free: 6.465 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002446/0.5321, allocations: 27.98 kB / 457.3 MB, free: 6.438 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003333/0.5355, allocations: 1.983 MB / 459.3 MB, free: 4.602 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004294/0.536, allocations: 31.86 kB / 459.3 MB, free: 4.57 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.08e-05/0.536, allocations: 8 kB / 459.3 MB, free: 4.562 MB / 330.7 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,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.idealTriac.idealThyristor.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * 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 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.0001571/0.5362, allocations: 121.9 kB / 459.4 MB, free: 4.438 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.768e-05/0.5363, allocations: 27.72 kB / 459.4 MB, free: 4.41 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001055/0.5364, allocations: 29.95 kB / 459.5 MB, free: 4.375 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.525e-06/0.5364, allocations: 4 kB / 459.5 MB, free: 4.371 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.5364, allocations: 0 / 459.5 MB, free: 4.371 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.381e-06/0.5364, allocations: 0 / 459.5 MB, free: 4.371 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00154/0.538, allocations: 0.7881 MB / 460.3 MB, free: 3.52 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.628e-06/0.538, allocations: 0 / 460.3 MB, free: 3.52 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000215/0.5382, allocations: 27.92 kB / 460.3 MB, free: 3.492 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004341/0.5387, allocations: 89.41 kB / 460.4 MB, free: 3.402 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.77e-05/0.5387, allocations: 4 kB / 460.4 MB, free: 3.398 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00317/0.5419, allocations: 1.948 MB / 462.3 MB, free: 1.32 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.542, allocations: 0 / 462.3 MB, free: 1.32 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009713/0.5429, allocations: 439 kB / 462.8 MB, free: 0.8633 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001834/0.5432, allocations: 124.8 kB / 462.9 MB, free: 0.7227 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.224e-05/0.5432, allocations: 12.08 kB / 462.9 MB, free: 0.7109 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003579/0.5436, allocations: 23.98 kB / 462.9 MB, free: 0.6875 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001567/0.5438, allocations: 31.94 kB / 463 MB, free: 0.6562 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.461e-05/0.5438, allocations: 4.109 kB / 463 MB, free: 0.6523 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002558/0.5441, allocations: 185.2 kB / 463.1 MB, free: 484 kB / 330.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5441, allocations: 0 / 463.1 MB, free: 484 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006591/0.5448, allocations: 91.84 kB / 463.2 MB, free: 392 kB / 330.7 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.y,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * Number of discrete states: 2 (idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * 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 (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 {2 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001973/0.545, allocations: 104 kB / 463.3 MB, free: 276 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009557/0.5459, allocations: 338.3 kB / 463.7 MB, free: 15.92 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.197e-06/0.546, allocations: 0 / 463.7 MB, free: 15.92 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005666/0.5465, allocations: 262.5 kB / 463.9 MB, free: 15.66 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005388/0.5471, allocations: 57.36 kB / 464 MB, free: 15.6 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001393/0.5485, allocations: 439.1 kB / 464.4 MB, free: 15.15 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003904/0.5489, allocations: 0.7755 MB / 465.2 MB, free: 14.34 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.044e-05/0.549, allocations: 19.44 kB / 465.2 MB, free: 14.32 MB / 346.7 MB Notification: Performance of SimCode: time 1.312e-06/0.549, allocations: 0 / 465.2 MB, free: 14.32 MB / 346.7 MB Notification: Performance of Templates: time 0.01017/0.5592, allocations: 4.481 MB / 469.7 MB, free: 9.844 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches