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.00146/0.00146, allocations: 180 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.017/2.017, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001109/0.001109, allocations: 89.94 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.383e-05/2.397e-05, allocations: 4 kB / 314.8 MB, free: 9.176 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3414/0.3414, allocations: 47.57 MB / 362.3 MB, free: 45.84 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1249/0.4664, allocations: 77.58 MB / 439.9 MB, free: 8.762 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002967/0.4668, allocations: 71.97 kB / 440 MB, free: 8.691 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02099/0.4878, allocations: 4.912 MB / 444.9 MB, free: 3.809 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.4879, allocations: 5.969 kB / 444.9 MB, free: 3.805 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.3e-05/0.4879, allocations: 4 kB / 444.9 MB, free: 3.801 MB / 331.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.001245/0.4891, allocations: 0.5376 MB / 445.4 MB, free: 3.219 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/0.4892, allocations: 8.031 kB / 445.4 MB, free: 3.211 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000123/0.4893, allocations: 35.53 kB / 445.5 MB, free: 3.176 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004956/0.4899, allocations: 277.3 kB / 445.8 MB, free: 2.867 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.506e-05/0.4899, allocations: 11.95 kB / 445.8 MB, free: 2.855 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001/0.49, allocations: 16 kB / 445.8 MB, free: 2.84 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005455/0.4906, allocations: 170.8 kB / 445.9 MB, free: 2.676 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006195/0.4912, allocations: 243.5 kB / 446.2 MB, free: 2.422 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.009e-05/0.4912, allocations: 4 kB / 446.2 MB, free: 2.418 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.032e-05/0.4913, allocations: 0 / 446.2 MB, free: 2.418 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.157e-05/0.4913, allocations: 4 kB / 446.2 MB, free: 2.414 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002544/0.4939, allocations: 1.085 MB / 447.3 MB, free: 1.254 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007054/0.4946, allocations: 207 kB / 447.5 MB, free: 1.043 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004045/0.495, allocations: 129.4 kB / 447.6 MB, free: 0.9141 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.055e-05/0.4951, allocations: 8.078 kB / 447.6 MB, free: 0.9062 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003589/0.4955, allocations: 156.5 kB / 447.8 MB, free: 0.7305 MB / 331.1 MB Notification: Performance of pre-optimization done (n=22): time 2.665e-06/0.4955, allocations: 3.938 kB / 447.8 MB, free: 0.7266 MB / 331.1 MB Notification: Performance of matching and sorting (n=22): time 0.0008317/0.4963, allocations: 239.6 kB / 448 MB, free: 496 kB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.704e-05/0.4964, allocations: 128.5 kB / 448.1 MB, free: 336 kB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003329/0.4968, allocations: 200.9 kB / 448.3 MB, free: 128 kB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 3.853e-05/0.4968, allocations: 25.7 kB / 448.4 MB, free: 96 kB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001881/0.497, allocations: 230.7 kB / 448.6 MB, free: 15.87 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.163e-05/0.4971, allocations: 67 kB / 448.6 MB, free: 15.8 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.869e-05/0.4972, allocations: 0 / 448.6 MB, free: 15.8 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.4973, allocations: 322.8 kB / 449 MB, free: 15.48 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001798/0.4975, allocations: 60 kB / 449 MB, free: 15.42 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002365/0.4978, allocations: 111.1 kB / 449.1 MB, free: 15.29 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002118/0.498, allocations: 60.02 kB / 449.2 MB, free: 15.23 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.498, allocations: 0 / 449.2 MB, free: 15.23 MB / 347.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006483/0.4987, allocations: 240.5 kB / 449.4 MB, free: 14.99 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.302e-05/0.4987, allocations: 8.938 kB / 449.4 MB, free: 14.98 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/0.4987, allocations: 0 / 449.4 MB, free: 14.98 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005411/0.4993, allocations: 96.84 kB / 449.5 MB, free: 14.89 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002374/0.4995, allocations: 27.92 kB / 449.5 MB, free: 14.86 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003326/0.5029, allocations: 1.924 MB / 451.5 MB, free: 12.82 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004168/0.5034, allocations: 35.83 kB / 451.5 MB, free: 12.79 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.612e-05/0.5034, allocations: 12 kB / 451.5 MB, free: 12.78 MB / 347.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,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.0001684/0.5036, allocations: 109.9 kB / 451.6 MB, free: 12.66 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.736e-05/0.5037, allocations: 23.77 kB / 451.6 MB, free: 12.64 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.671e-05/0.5038, allocations: 29.95 kB / 451.7 MB, free: 12.61 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.5038, allocations: 5.781 kB / 451.7 MB, free: 12.61 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.5038, allocations: 4 kB / 451.7 MB, free: 12.6 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.5038, allocations: 0 / 451.7 MB, free: 12.6 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001428/0.5053, allocations: 0.7283 MB / 452.4 MB, free: 11.82 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.104e-06/0.5053, allocations: 4 kB / 452.4 MB, free: 11.82 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002049/0.5055, allocations: 19.94 kB / 452.4 MB, free: 11.8 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004365/0.506, allocations: 94.19 kB / 452.5 MB, free: 11.71 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.48e-05/0.506, allocations: 4 kB / 452.5 MB, free: 11.7 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00293/0.5089, allocations: 1.857 MB / 454.4 MB, free: 9.73 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.509, allocations: 4 kB / 454.4 MB, free: 9.727 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008571/0.5098, allocations: 425 kB / 454.8 MB, free: 9.285 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001794/0.51, allocations: 116.8 kB / 454.9 MB, free: 9.152 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.605e-05/0.5101, allocations: 7.984 kB / 454.9 MB, free: 9.145 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003426/0.5105, allocations: 21.08 kB / 455 MB, free: 9.125 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001346/0.5106, allocations: 35.95 kB / 455 MB, free: 9.09 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.662e-05/0.5106, allocations: 11.94 kB / 455 MB, free: 9.078 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0002243/0.5109, allocations: 152.5 kB / 455.2 MB, free: 8.93 MB / 347.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.5109, allocations: 0 / 455.2 MB, free: 8.93 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0006796/0.5116, allocations: 83.78 kB / 455.2 MB, free: 8.848 MB / 347.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.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.0002006/0.5118, allocations: 103.3 kB / 455.3 MB, free: 8.738 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0008328/0.5127, allocations: 333.2 kB / 455.7 MB, free: 8.406 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.5127, allocations: 0 / 455.7 MB, free: 8.406 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005156/0.5132, allocations: 237.5 kB / 455.9 MB, free: 8.164 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004714/0.5137, allocations: 48.77 kB / 455.9 MB, free: 8.117 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001336/0.515, allocations: 424.9 kB / 456.4 MB, free: 7.672 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004508/0.5155, allocations: 0.7755 MB / 457.1 MB, free: 6.867 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.923e-05/0.5156, allocations: 19.42 kB / 457.1 MB, free: 6.848 MB / 347.1 MB Notification: Performance of SimCode: time 6.81e-07/0.5156, allocations: 4 kB / 457.2 MB, free: 6.844 MB / 347.1 MB Notification: Performance of Templates: time 0.009985/0.5256, allocations: 4.339 MB / 461.5 MB, free: 2.539 MB / 347.1 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