Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008999/0.0008999, allocations: 89.88 kB / 17.31 MB, free: 5.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001089/0.001089, allocations: 176.1 kB / 18.21 MB, free: 5.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.287/1.287, allocations: 223.3 MB / 242.3 MB, free: 96 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002236/0.0002237, allocations: 13.94 kB / 302.1 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07359/0.07383, allocations: 50.41 MB / 352.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.002607/0.07647, allocations: 2.588 MB / 355.1 MB, free: 1.094 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000918/0.0774, allocations: 0.7051 MB / 355.8 MB, free: 392 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001085/0.07752, allocations: 12 kB / 355.8 MB, free: 380 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001091/0.07764, allocations: 35.7 kB / 355.8 MB, free: 344 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001626/0.07781, allocations: 83.3 kB / 355.9 MB, free: 260 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000239/0.07805, allocations: 83.94 kB / 356 MB, free: 176 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003596/0.07842, allocations: 382.3 kB / 356.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002095/0.07864, allocations: 119.9 kB / 356.5 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001629/0.07881, allocations: 131.4 kB / 356.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001687/0.07899, allocations: 139.3 kB / 356.8 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.755e-05/0.07904, allocations: 16 kB / 356.8 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.146e-05/0.07909, allocations: 16 kB / 356.8 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.879e-05/0.07914, allocations: 47.77 kB / 356.8 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001388/0.07928, allocations: 176.8 kB / 357 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002511/0.07954, allocations: 323.3 kB / 357.3 MB, free: 14.83 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.796e-06/0.07955, allocations: 3.938 kB / 357.3 MB, free: 14.83 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.07956, allocations: 0 / 357.3 MB, free: 14.83 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.07957, allocations: 0 / 357.3 MB, free: 14.83 MB / 302.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.0008188/0.08039, allocations: 0.5701 MB / 357.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.186e-05/0.08043, allocations: 8.031 kB / 357.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.844e-05/0.08051, allocations: 40.56 kB / 357.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002777/0.08079, allocations: 283.5 kB / 358.2 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.285e-05/0.08082, allocations: 24.92 kB / 358.2 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.397e-05/0.08087, allocations: 24.38 kB / 358.3 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000483/0.08136, allocations: 284.9 kB / 358.5 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.08138, allocations: 7.938 kB / 358.6 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.861e-05/0.08142, allocations: 8 kB / 358.6 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.08143, allocations: 12 kB / 358.6 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000402/0.08184, allocations: 210.1 kB / 358.8 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001561/0.08341, allocations: 1.164 MB / 359.9 MB, free: 12.03 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004678/0.08389, allocations: 218.6 kB / 360.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002968/0.0842, allocations: 148.8 kB / 360.3 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.942e-05/0.08423, allocations: 4 kB / 360.3 MB, free: 11.65 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000283/0.08452, allocations: 170.7 kB / 360.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.593e-06/0.08453, allocations: 0 / 360.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001375/0.08591, allocations: 0.52 MB / 361 MB, free: 10.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.638e-05/0.08598, allocations: 132.5 kB / 361.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002248/0.08622, allocations: 245 kB / 361.4 MB, free: 10.51 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.12e-05/0.08626, allocations: 33.7 kB / 361.4 MB, free: 10.47 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.38e-05/0.08635, allocations: 168.4 kB / 361.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.798e-05/0.08642, allocations: 70.98 kB / 361.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.253e-05/0.08647, allocations: 25.72 kB / 361.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.08657, allocations: 338.8 kB / 362 MB, free: 9.859 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001595/0.08674, allocations: 71.97 kB / 362.1 MB, free: 9.789 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001855/0.08693, allocations: 129 kB / 362.2 MB, free: 9.645 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002947/0.08724, allocations: 171.4 kB / 362.3 MB, free: 9.465 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.08725, allocations: 3.938 kB / 362.3 MB, free: 9.461 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005032/0.08776, allocations: 298 kB / 362.6 MB, free: 9.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.258e-05/0.08778, allocations: 8 kB / 362.6 MB, free: 9.152 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.08779, allocations: 3.938 kB / 362.7 MB, free: 9.148 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003074/0.0881, allocations: 96.89 kB / 362.7 MB, free: 9.051 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001315/0.08825, allocations: 27.92 kB / 362.8 MB, free: 9.023 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001974/0.09023, allocations: 1.948 MB / 364.7 MB, free: 6.941 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002107/0.09045, allocations: 31.89 kB / 364.8 MB, free: 6.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.552e-05/0.09048, allocations: 8 kB / 364.8 MB, free: 6.902 MB / 302.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,idealTriac.fire1,idealTriac.idealThyristor1.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001357/0.09062, allocations: 142.8 kB / 364.9 MB, free: 6.754 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.843e-05/0.09067, allocations: 31.66 kB / 364.9 MB, free: 6.723 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.723e-05/0.09074, allocations: 38.11 kB / 365 MB, free: 6.688 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.09075, allocations: 8.047 kB / 365 MB, free: 6.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.09076, allocations: 3.938 kB / 365 MB, free: 6.676 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.09077, allocations: 0 / 365 MB, free: 6.676 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008941/0.09167, allocations: 0.778 MB / 365.8 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.09168, allocations: 0 / 365.8 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001123/0.0918, allocations: 23.92 kB / 365.8 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002498/0.09206, allocations: 88.8 kB / 365.9 MB, free: 5.723 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.681e-05/0.09209, allocations: 4.031 kB / 365.9 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001909/0.094, allocations: 1.94 MB / 367.8 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.09402, allocations: 0 / 367.8 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006494/0.09467, allocations: 466.7 kB / 368.3 MB, free: 3.168 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001009/0.09479, allocations: 124.8 kB / 368.4 MB, free: 3.027 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.982e-05/0.09483, allocations: 4 kB / 368.4 MB, free: 3.023 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002166/0.09506, allocations: 31.86 kB / 368.4 MB, free: 2.992 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.593e-05/0.09515, allocations: 27.95 kB / 368.5 MB, free: 2.965 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.41e-05/0.09517, allocations: 12.06 kB / 368.5 MB, free: 2.953 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001508/0.09533, allocations: 176.5 kB / 368.6 MB, free: 2.781 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.09534, allocations: 0 / 368.6 MB, free: 2.781 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004351/0.09578, allocations: 91.78 kB / 368.7 MB, free: 2.691 MB / 302.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.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 2 (idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000106/0.09589, allocations: 107.2 kB / 368.8 MB, free: 2.578 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006075/0.0965, allocations: 362.3 kB / 369.2 MB, free: 2.211 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.09652, allocations: 0 / 369.2 MB, free: 2.211 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003785/0.0969, allocations: 265.5 kB / 369.4 MB, free: 1.941 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004262/0.09734, allocations: 59.86 kB / 369.5 MB, free: 1.887 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001042/0.09839, allocations: 0.7668 MB / 370.3 MB, free: 1.086 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002694/0.09867, allocations: 0.7677 MB / 371 MB, free: 300 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.477e-05/0.09874, allocations: 23.42 kB / 371.1 MB, free: 276 kB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.09874, allocations: 0 / 371.1 MB, free: 276 kB / 302.1 MB Notification: Performance of Templates: time 0.1404/0.2392, allocations: 4.588 MB / 375.6 MB, free: 23.41 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches