Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.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.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_3.2.3_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_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002352/0.002352, allocations: 178.3 kB / 17.41 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.4/4.4, allocations: 205.4 MB / 223.6 MB, free: 9.016 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.00133/0.00133, allocations: 89.94 kB / 271.9 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006142/0.0006143, allocations: 12 kB / 328.2 MB, free: 15.94 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6472/0.6479, allocations: 47.57 MB / 375.7 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.204/0.852, allocations: 80.49 MB / 456.2 MB, free: 140 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005339/0.8526, allocations: 75.95 kB / 456.3 MB, free: 64 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0493/0.902, allocations: 8.568 MB / 464.9 MB, free: 7.445 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.829e-06/0.902, allocations: 0 / 464.9 MB, free: 7.445 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.562e-05/0.9021, allocations: 16 kB / 464.9 MB, free: 7.43 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.004593/0.9067, allocations: 0.8913 MB / 465.8 MB, free: 6.484 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.035e-05/0.9069, allocations: 12.03 kB / 465.8 MB, free: 6.473 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004611/0.9073, allocations: 64.17 kB / 465.8 MB, free: 6.41 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001484/0.9089, allocations: 398.4 kB / 466.2 MB, free: 5.98 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001194/0.909, allocations: 29.38 kB / 466.3 MB, free: 5.953 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002204/0.9092, allocations: 32.38 kB / 466.3 MB, free: 5.922 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003168/0.9124, allocations: 0.5987 MB / 466.9 MB, free: 5.301 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.095e-05/0.9125, allocations: 3.938 kB / 466.9 MB, free: 5.297 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.93e-05/0.9126, allocations: 15.94 kB / 466.9 MB, free: 5.281 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.589e-05/0.9127, allocations: 8 kB / 466.9 MB, free: 5.273 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003657/0.9163, allocations: 0.6402 MB / 467.6 MB, free: 4.637 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008973/0.9253, allocations: 2.064 MB / 469.6 MB, free: 2.477 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005832/0.9312, allocations: 0.9592 MB / 470.6 MB, free: 1.504 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00169/0.933, allocations: 400.8 kB / 471 MB, free: 1.113 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.711e-05/0.9331, allocations: 12 kB / 471 MB, free: 1.102 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006211/0.9393, allocations: 435.6 kB / 471.4 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of pre-optimization done (n=39): time 6.202e-06/0.9394, allocations: 0 / 471.4 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of matching and sorting (n=39): time 0.01961/0.959, allocations: 1.982 MB / 473.4 MB, free: 14.65 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/0.9592, allocations: 85.09 kB / 473.5 MB, free: 14.55 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001053/0.9602, allocations: 377.7 kB / 473.8 MB, free: 14.17 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001347/0.9604, allocations: 37.7 kB / 473.9 MB, free: 14.13 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003095/0.9607, allocations: 232.5 kB / 474.1 MB, free: 13.9 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002861/0.961, allocations: 126.1 kB / 474.2 MB, free: 13.77 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.228e-05/0.9611, allocations: 8 kB / 474.2 MB, free: 13.77 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002762/0.9614, allocations: 354.7 kB / 474.6 MB, free: 13.41 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01795/0.9794, allocations: 304.6 kB / 474.9 MB, free: 13.11 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001789/0.9812, allocations: 353.9 kB / 475.2 MB, free: 12.75 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003363/0.9847, allocations: 0.6071 MB / 475.8 MB, free: 12.14 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.611e-06/0.9847, allocations: 0 / 475.8 MB, free: 12.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.01771/1.002, allocations: 0.9202 MB / 476.7 MB, free: 11.2 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.412e-05/1.003, allocations: 33.7 kB / 476.8 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.599e-05/1.003, allocations: 0 / 476.8 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002368/1.005, allocations: 424.5 kB / 477.2 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009112/1.006, allocations: 95.88 kB / 477.3 MB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02897/1.035, allocations: 3.498 MB / 480.8 MB, free: 7.016 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00156/1.037, allocations: 107.6 kB / 480.9 MB, free: 6.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000326/1.037, allocations: 8 kB / 480.9 MB, free: 6.902 MB / 362.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.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.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.001081/1.038, allocations: 169.8 kB / 481.1 MB, free: 6.727 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002486/1.038, allocations: 43.47 kB / 481.1 MB, free: 6.684 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000264/1.039, allocations: 60.36 kB / 481.2 MB, free: 6.625 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.36e-05/1.039, allocations: 4 kB / 481.2 MB, free: 6.621 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/1.039, allocations: 0 / 481.2 MB, free: 6.621 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.16e-05/1.039, allocations: 0 / 481.2 MB, free: 6.621 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001585/1.04, allocations: 0.5872 MB / 481.8 MB, free: 5.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.376e-05/1.04, allocations: 11.88 kB / 481.8 MB, free: 5.969 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008433/1.041, allocations: 83.92 kB / 481.9 MB, free: 5.887 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002224/1.043, allocations: 416.6 kB / 482.3 MB, free: 5.477 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000106/1.044, allocations: 11.98 kB / 482.3 MB, free: 5.465 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02618/1.07, allocations: 3.489 MB / 485.8 MB, free: 1.848 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.98e-05/1.07, allocations: 3.938 kB / 485.8 MB, free: 1.844 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005857/1.076, allocations: 1.279 MB / 487 MB, free: 0.543 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005955/1.076, allocations: 172.5 kB / 487.2 MB, free: 364 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000265/1.077, allocations: 12 kB / 487.2 MB, free: 352 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001552/1.078, allocations: 83.92 kB / 487.3 MB, free: 268 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003044/1.079, allocations: 51.86 kB / 487.4 MB, free: 216 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.258e-05/1.079, allocations: 15.98 kB / 487.4 MB, free: 200 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008087/1.08, allocations: 275.2 kB / 487.6 MB, free: 15.93 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.08, allocations: 0 / 487.6 MB, free: 15.93 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001396/1.081, allocations: 171.7 kB / 487.8 MB, free: 15.76 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,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * 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.0003867/1.081, allocations: 119 kB / 487.9 MB, free: 15.64 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005074/1.087, allocations: 0.9458 MB / 488.9 MB, free: 14.67 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.654e-06/1.087, allocations: 0 / 488.9 MB, free: 14.67 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002241/1.089, allocations: 0.5762 MB / 489.4 MB, free: 14.08 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005461/1.094, allocations: 75.23 kB / 489.5 MB, free: 14.01 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005924/1.1, allocations: 1.405 MB / 490.9 MB, free: 12.57 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000878/1.101, allocations: 0.8358 MB / 491.8 MB, free: 11.71 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003138/1.102, allocations: 31.42 kB / 491.8 MB, free: 11.68 MB / 378.7 MB Notification: Performance of SimCode: time 2.935e-06/1.102, allocations: 0 / 491.8 MB, free: 11.68 MB / 378.7 MB Notification: Performance of Templates: time 0.03487/1.137, allocations: 8.819 MB / 0.4889 GB, free: 2.863 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches